GetAmmoOfMyWeapon
Revision as of 18:35, 8 May 2023 by Habi (talk | contribs) (Created page with "{{Welcome| desc=Returns the ammo of the weapon specified| params=<source lang="lua">(weaponid)</source> ::weaponid : The ID of the weapon possessed by npc whose ammo is to be determined.| retvals=If the weapon is possessed by npc, then this returns the available ammo of the weapon provided. Otherwise returns 0. Also returns 0 for fists/brass knuckles.| relfuncs= *SelectWeapon *GetAvailableWeapons| }}")
Description:
Returns the ammo of the weapon specified
Parameters:
(weaponid)
- weaponid : The ID of the weapon possessed by npc whose ammo is to be determined.
Return Values:
If the weapon is possessed by npc, then this returns the available ammo of the weapon provided. Otherwise returns 0. Also returns 0 for fists/brass knuckles.
Related Functions
The following functions may be helpful as they relate to this function in one way or another.