RedM Natives

GET_MAX_AMMO_IN_CLIP

Hash0xA38DCFFCEA8962FA
Runtime nameGetMaxAmmoInClip
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA38DCFFCEA8962FA

Signature

int GET_MAX_AMMO_IN_CLIP(Ped ped, Hash weaponHash, BOOL p2);

Parameters

NameTypeDescription
pedPed—
weaponHashHash—
p2BOOL—

Returns int

Usage

Lua
local retval = GetMaxAmmoInClip(ped, weaponHash, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA38DCFFCEA8962FA, ped, weaponHash, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetMaxAmmoInClip(ped, weaponHash, p2);

// by hash
const retval = Citizen.invokeNative('0xA38DCFFCEA8962FA', ped, weaponHash, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xA38DCFFCEA8962FA, ped, weaponHash, p2);
  • 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.