Skip to main content

SetPlayerCurrentWeaponAmmo

Sets the weapon ammo of the current weapon of the player (on the hand).

C#​

void NAPI.Player.SetPlayerCurrentWeaponAmmo(Player player, int ammo);

Parameters​

  • player: Parameter input should be in Player type.
  • ammo: Parameter input should be in int type.

Example​

NAPI.Player.SetPlayerCurrentWeaponAmmo(player, 9999);