RedM Natives

SET_PED_AMMO

Hash0x14E56BC5B5DB6A19
Runtime nameSetPedAmmo
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x14E56BC5B5DB6A19

Signature

void SET_PED_AMMO(Ped ped, Hash weaponHash, int ammo);

Parameters

NameTypeDescription
pedPed—
weaponHashHash—
ammoint—

Returns void

Usage

Lua
SetPedAmmo(ped, weaponHash, ammo)

-- always works, by hash
Citizen.InvokeNative(0x14E56BC5B5DB6A19, ped, weaponHash, ammo)
JavaScript and C#
JavaScript
SetPedAmmo(ped, weaponHash, ammo);

// by hash
Citizen.invokeNative('0x14E56BC5B5DB6A19', ped, weaponHash, ammo);
C#
Function.Call((Hash)0x14E56BC5B5DB6A19, ped, weaponHash, ammo);
  • 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.