{"hash":"0x3A87E44BB9A01D54","ns":"WEAPON","name":"GET_CURRENT_PED_WEAPON","slug":"GET_CURRENT_PED_WEAPON","official":true,"named":true,"luaName":"GetCurrentPedWeapon","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"weaponHash","type":"Hash*"},{"name":"p2","type":"BOOL"},{"name":"attachPoint","type":"int"},{"name":"p4","type":"BOOL"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"attachPoint: see SET_CURRENT_PED_WEAPON"}],"examples":[],"aliases":[],"enums":["eWeaponAttachPoint"],"related":["0xADF692B254977C0C"],"build":"1207","gtaHash":"0x3A87E44BB9A01D54","gtaJhash":"0xB0237302","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_CURRENT_PED_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_CURRENT_PED_WEAPON.md","snippets":{"lua":"local retval, weaponHash = GetCurrentPedWeapon(ped, p2, attachPoint, p4)","luaInvoke":"local retval, weaponHash = Citizen.InvokeNative(0x3A87E44BB9A01D54, ped, Citizen.PointerValueInt(), p2, attachPoint, p4, Citizen.ReturnResultAnyway())","js":"const [retval, weaponHash] = GetCurrentPedWeapon(ped, p2, attachPoint, p4);","jsInvoke":"const [retval, weaponHash] = Citizen.invokeNative('0x3A87E44BB9A01D54', ped, Citizen.pointerValueInt(), p2, attachPoint, p4, Citizen.returnResultAnyway());","csharp":"var weaponHash = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x3A87E44BB9A01D54, ped, weaponHash, p2, attachPoint, p4);\n// weaponHash.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order."]}}