ped.getWeaponAmmunition: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Created page with "{{ScriptItem |endpoint = client |type = method |class = Ped |name = getWeaponAmmunition |parameters = int weaponSlot |parameter1 = int weaponSlot The weapon slot ID to fetch t...")
 
No edit summary
Line 8: Line 8:
|returnTypes = int
|returnTypes = int
|usage = fetch the total weapon ammunition for a weapon slot for the ped
|usage = fetch the total weapon ammunition for a weapon slot for the ped
|returnInfo = the total weapon ammunition for the ped's weapon slot
|returnInfo = the total weapon ammunition for the ped's specified weapon slot
|returnFail1 = void
|returnFail1 = void
}}
}}

Revision as of 07:32, 2 December 2020

getWeaponAmmunition

Signature: void getWeaponAmmunition(int weaponSlot)

Usage: fetch the total weapon ammunition for a weapon slot for the ped

Parameters

int weaponSlot The weapon slot ID to fetch the total ammunition for.

Return

void

On failure: void