- Documentation
- Server functions
- getWeaponClipAmmo
Function
getWeaponClipAmmo
Returns the number of rounds in a scripted weapon's clip.
Syntax
int getWeaponClipAmmo(weapon weapon)Arguments
weaponweapon- The scripted weapon.
Returns
Rounds in the clip or false.
Example
if getWeaponClipAmmo(turret) == 0 then
setWeaponState(turret, "reloading")
end