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