{"hash":"0xAFE92319","ns":"CFX","name":"GET_VEHICLE_PED_IS_IN","slug":"GET_VEHICLE_PED_IS_IN","official":true,"named":true,"luaName":"GetVehiclePedIsIn","game":"cfx","apiset":"server","returnType":"Vehicle","params":[{"name":"ped","type":"Ped","description":"The target ped"},{"name":"lastVehicle","type":"BOOL","description":"False = CurrentVehicle, True = LastVehicle"}],"returnsDescription":"The vehicle id. Returns 0 if the ped is/was not in a vehicle.","summary":"Gets the vehicle the specified Ped is/was in depending on bool value.","descriptions":[{"source":"cfx","format":"md","body":"Gets the vehicle the specified Ped is/was in depending on bool value. This native is used server side when using OneSync."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_PED_IS_IN","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_PED_IS_IN.md","snippets":{"lua":"local retval = GetVehiclePedIsIn(ped, lastVehicle)","luaInvoke":"local retval = Citizen.InvokeNative(0xafe92319, ped, lastVehicle, Citizen.ResultAsInteger())","js":"const retval = GetVehiclePedIsIn(ped, lastVehicle);","jsInvoke":"const retval = Citizen.invokeNative('0xafe92319', ped, lastVehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xafe92319, ped, lastVehicle);","notes":[]}}