{"hash":"0x1017582BCD3832DC","ns":"WEAPON","name":"GET_CURRENT_PED_VEHICLE_WEAPON","slug":"GET_CURRENT_PED_VEHICLE_WEAPON","official":true,"named":true,"luaName":"GetCurrentPedVehicleWeapon","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"weaponHash","type":"Hash*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":["0x75C55983C2C39DAA"],"build":"1207","gtaHash":"0x1017582BCD3832DC","gtaJhash":"0xF26C5D65","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/GET_CURRENT_PED_VEHICLE_WEAPON","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/GET_CURRENT_PED_VEHICLE_WEAPON.md","snippets":{"lua":"local retval, weaponHash = GetCurrentPedVehicleWeapon(ped, weaponHash)","luaInvoke":"local retval, weaponHash = Citizen.InvokeNative(0x1017582BCD3832DC, ped, Citizen.PointerValueIntInitialized(weaponHash), Citizen.ReturnResultAnyway())","js":"const [retval, weaponHash] = GetCurrentPedVehicleWeapon(ped, weaponHash);","jsInvoke":"const [retval, weaponHash] = Citizen.invokeNative('0x1017582BCD3832DC', ped, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway());","csharp":"var weaponHash = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x1017582BCD3832DC, ped, weaponHash);\n// weaponHash.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}