{"hash":"0xDC16122C7A20C933","ns":"WEAPON","name":"GET_MAX_AMMO","slug":"GET_MAX_AMMO","official":true,"named":true,"luaName":"GetMaxAmmo","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":[],"build":"1207","gtaHash":"0xDC16122C7A20C933","gtaJhash":"0x0B294796","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_MAX_AMMO","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_MAX_AMMO.md","snippets":{"lua":"local retval, ammo = GetMaxAmmo(ped, weaponHash)","luaInvoke":"local retval, ammo = Citizen.InvokeNative(0xDC16122C7A20C933, ped, Citizen.PointerValueInt(), weaponHash, Citizen.ReturnResultAnyway())","js":"const [retval, ammo] = GetMaxAmmo(ped, weaponHash);","jsInvoke":"const [retval, ammo] = Citizen.invokeNative('0xDC16122C7A20C933', ped, Citizen.pointerValueInt(), weaponHash, Citizen.returnResultAnyway());","csharp":"var ammo = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xDC16122C7A20C933, 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."]}}