Перейти к содержанию

RemovePlayerWeapon

Материал из RAGE MP Wiki Archive

Removes the specific weapon from the player.


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

<syntaxhighlight lang="csharp"> NAPI.Player.RemovePlayerWeapon(player, WeaponHash.Carbinerifle); </syntaxhighlight>