{"hash":"0x2E1202248937775C","ns":"WEAPON","name":"GET_AMMO_IN_CLIP","slug":"GET_AMMO_IN_CLIP","official":true,"named":true,"luaName":"GetAmmoInClip","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"ammo","type":"int*"},{"name":"weaponHash","type":"Hash"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":["0xDCD2A934D65CB497","0xDF4A3404D022ADDE"],"build":"1207","gtaHash":"0x2E1202248937775C","gtaJhash":"0x73C100C3","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_AMMO_IN_CLIP","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_AMMO_IN_CLIP.md","snippets":{"lua":"local retval, ammo = GetAmmoInClip(ped, weaponHash)","luaInvoke":"local retval, ammo = Citizen.InvokeNative(0x2E1202248937775C, ped, Citizen.PointerValueInt(), weaponHash, Citizen.ReturnResultAnyway())","js":"const [retval, ammo] = GetAmmoInClip(ped, weaponHash);","jsInvoke":"const [retval, ammo] = Citizen.invokeNative('0x2E1202248937775C', ped, Citizen.pointerValueInt(), weaponHash, Citizen.returnResultAnyway());","csharp":"var ammo = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x2E1202248937775C, ped, ammo, weaponHash);\n// ammo.GetResult<int>()","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` ``.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order."]}}