Skip to main content

RemovePlayerWeapon

Removes the specific weapon from the player.

C#​

void NAPI.Player.RemovePlayerWeapon(Player player, WeaponHash weapon);

Parameters​

  • player: Parameter input should be in Player type.
  • weapon: The weapon hash to remove. Parameter input should be in WeaponHash type.

Example​

NAPI.Player.RemovePlayerWeapon(player, WeaponHash.Carbinerifle);