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

SetPlayerWeaponAmmo

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

Sets players weapon ammo.


void NAPI.Player.SetPlayerWeaponAmmo(Player player, WeaponHash weaponHash, int ammo);

Parameters

  • player: parameter input should be in Player type
  • weaponHash: parameter input should be in WeaponHash type
  • ammo: parameter input should be in int type

Example

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