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

RemovePlayerWeapon

Материал из RAGE MP Wiki Archive
Версия от 13:33, 23 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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>