GET_MAX_AMMO_IN_CLIP
Hash
0xA38DCFFCEA8962FARuntime name
GetMaxAmmoInClipNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA38DCFFCEA8962FASignature
int GET_MAX_AMMO_IN_CLIP(Ped ped, Hash weaponHash, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponHash | Hash | — |
p2 | BOOL | — |
Returns int
Usage
local retval = GetMaxAmmoInClip(ped, weaponHash, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA38DCFFCEA8962FA, ped, weaponHash, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetMaxAmmoInClip(ped, weaponHash, p2);
// by hash
const retval = Citizen.invokeNative('0xA38DCFFCEA8962FA', ped, weaponHash, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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.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.