SET_PED_AMMO
Hash
0x14E56BC5B5DB6A19Runtime name
SetPedAmmoNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x14E56BC5B5DB6A19Signature
void SET_PED_AMMO(Ped ped, Hash weaponHash, int ammo);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponHash | Hash | — |
ammo | int | — |
Returns void
Usage
SetPedAmmo(ped, weaponHash, ammo)
-- always works, by hash
Citizen.InvokeNative(0x14E56BC5B5DB6A19, ped, weaponHash, ammo)JavaScript and C#
SetPedAmmo(ped, weaponHash, ammo);
// by hash
Citizen.invokeNative('0x14E56BC5B5DB6A19', ped, weaponHash, ammo);Function.Call((Hash)0x14E56BC5B5DB6A19, ped, weaponHash, ammo);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.