{"hash":"0x7FEAD38B326B9F74","ns":"WEAPON","name":"GET_PED_AMMO_TYPE_FROM_WEAPON","slug":"GET_PED_AMMO_TYPE_FROM_WEAPON","official":true,"named":true,"luaName":"GetPedAmmoTypeFromWeapon","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"ped","type":"Ped"},{"name":"weaponHash","type":"Hash"}],"summary":"Returns the current ammo type of the specified ped's specified weapon.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the current ammo type of the specified ped's specified weapon."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x7FEAD38B326B9F74","gtaJhash":"0x09337863","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_PED_AMMO_TYPE_FROM_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_PED_AMMO_TYPE_FROM_WEAPON.md","snippets":{"lua":"local retval = GetPedAmmoTypeFromWeapon(ped, weaponHash)","luaInvoke":"local retval = Citizen.InvokeNative(0x7FEAD38B326B9F74, ped, weaponHash, Citizen.ResultAsInteger())","js":"const retval = GetPedAmmoTypeFromWeapon(ped, weaponHash);","jsInvoke":"const retval = Citizen.invokeNative('0x7FEAD38B326B9F74', ped, weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x7FEAD38B326B9F74, 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` ``."]}}