{"hash":"0x5C2EA6C44F515F34","ns":"WEAPON","name":"_GET_AMMO_TYPE_FOR_WEAPON","slug":"_GET_AMMO_TYPE_FOR_WEAPON","official":false,"named":true,"luaName":"GetAmmoTypeForWeapon","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"weaponHash","type":"Hash"}],"summary":"Identical to _GET_AMMO_RECOMMENDED_TYPE_FOR_WEAPON (0xEC97101A8F311282) -> same native handler address","descriptions":[{"source":"alloc8or","format":"text","body":"Identical to _GET_AMMO_RECOMMENDED_TYPE_FOR_WEAPON (0xEC97101A8F311282) -> same native handler address"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_AMMO_TYPE_FOR_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_AMMO_TYPE_FOR_WEAPON.md","snippets":{"lua":"local retval = GetAmmoTypeForWeapon(weaponHash)","luaInvoke":"local retval = Citizen.InvokeNative(0x5C2EA6C44F515F34, weaponHash, Citizen.ResultAsInteger())","js":"const retval = GetAmmoTypeForWeapon(weaponHash);","jsInvoke":"const retval = Citizen.invokeNative('0x5C2EA6C44F515F34', weaponHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x5C2EA6C44F515F34, 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` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}