GET_WEAPON_CLIP_SIZE
Hash
0xD3750CCC00635FC2Runtime name
GetWeaponClipSizeNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_WEAPON_CLIP_SIZE(Hash weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
weaponHash | Hash | — |
Returns int
Usage
local retval = GetWeaponClipSize(weaponHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD3750CCC00635FC2, weaponHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetWeaponClipSize(weaponHash);
// by hash
const retval = Citizen.invokeNative('0xD3750CCC00635FC2', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xD3750CCC00635FC2, 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.