SET_PED_INFINITE_AMMO
Hash
0x3EDCB0505123623BRuntime name
SetPedInfiniteAmmoNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x3EDCB0505123623BSignature
void SET_PED_INFINITE_AMMO(Ped ped, BOOL toggle, Hash weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
toggle | BOOL | — |
weaponHash | Hash | — |
Returns void
Usage
SetPedInfiniteAmmo(ped, toggle, weaponHash)
-- always works, by hash
Citizen.InvokeNative(0x3EDCB0505123623B, ped, toggle, weaponHash)JavaScript and C#
SetPedInfiniteAmmo(ped, toggle, weaponHash);
// by hash
Citizen.invokeNative('0x3EDCB0505123623B', ped, toggle, weaponHash);Function.Call((Hash)0x3EDCB0505123623B, ped, toggle, weaponHash);- 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.