Skip to main content

Player::setWeaponAmmo

Sets the amount of ammo for the selected weapon

Syntax

``` player.setWeaponAmmo(weaponHash, ammo); ```

Parameters

  • weaponHash:
  • ammo:

Examples

Gives you a weapon and lets you change the amount of ammo for that weapon. We use the assault rifle weapon has in this example.

See Also