{"hash":"0xA38DCFFCEA8962FA","ns":"WEAPON","name":"GET_MAX_AMMO_IN_CLIP","slug":"GET_MAX_AMMO_IN_CLIP","official":true,"named":true,"luaName":"GetMaxAmmoInClip","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"ped","type":"Ped"},{"name":"weaponHash","type":"Hash"},{"name":"p2","type":"BOOL"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xA38DCFFCEA8962FA","gtaJhash":"0x6961E2A4","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_MAX_AMMO_IN_CLIP","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_MAX_AMMO_IN_CLIP.md","snippets":{"lua":"local retval = GetMaxAmmoInClip(ped, weaponHash, p2)","luaInvoke":"local retval = Citizen.InvokeNative(0xA38DCFFCEA8962FA, ped, weaponHash, p2, Citizen.ResultAsInteger())","js":"const retval = GetMaxAmmoInClip(ped, weaponHash, p2);","jsInvoke":"const retval = Citizen.invokeNative('0xA38DCFFCEA8962FA', ped, weaponHash, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xA38DCFFCEA8962FA, ped, weaponHash, p2);","notes":["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` ``."]}}