RedM Natives

GET_WEAPON_CLIP_SIZE

Hash0xD3750CCC00635FC2
Runtime nameGetWeaponClipSize
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_WEAPON_CLIP_SIZE(Hash weaponHash);

Parameters

NameTypeDescription
weaponHashHash—

Returns int

Usage

Lua
local retval = GetWeaponClipSize(weaponHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD3750CCC00635FC2, weaponHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetWeaponClipSize(weaponHash);

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