RedM Natives

SET_PED_INFINITE_AMMO

Hash0x3EDCB0505123623B
Runtime nameSetPedInfiniteAmmo
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3EDCB0505123623B

Signature

void SET_PED_INFINITE_AMMO(Ped ped, BOOL toggle, Hash weaponHash);

Parameters

NameTypeDescription
pedPed—
toggleBOOL—
weaponHashHash—

Returns void

Usage

Lua
SetPedInfiniteAmmo(ped, toggle, weaponHash)

-- always works, by hash
Citizen.InvokeNative(0x3EDCB0505123623B, ped, toggle, weaponHash)
JavaScript and C#
JavaScript
SetPedInfiniteAmmo(ped, toggle, weaponHash);

// by hash
Citizen.invokeNative('0x3EDCB0505123623B', ped, toggle, weaponHash);
C#
Function.Call((Hash)0x3EDCB0505123623B, ped, toggle, weaponHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.