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