- Documentation
- Server functions
- setWeaponClipAmmo
Function
setWeaponClipAmmo
Sets the number of rounds in a scripted weapon's clip.
Syntax
bool setWeaponClipAmmo(weapon weapon, int clipAmmo)Arguments
weaponweapon- The scripted weapon.
clipAmmoint- Rounds in the clip.
Returns
true on success.
Example
setWeaponClipAmmo(turret, 30)