GET_VEHICLE_PED_IS_IN
Returns the vehicle ped is in; with lastVehicle true it returns the last vehicle used.
Signature
Vehicle GET_VEHICLE_PED_IS_IN(Ped ped, BOOL lastVehicle); // 0x9A9112A0FE9A4713 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | lastVehicle | BOOL |
Facts
| Name | GET_VEHICLE_PED_IS_IN |
|---|---|
| Hash | 0x9A9112A0FE9A4713 |
| Namespace | |
| Returns | Vehicle |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local vehicle = Citizen.InvokeNative(0x9A9112A0FE9A4713, -- GET_VEHICLE_PED_IS_IN
PlayerPedId(), -- Ped ped
false, -- BOOL lastVehicle
Citizen.ResultAsInteger()
)
print(vehicle)const vehicle = Citizen.invokeNative("0x9A9112A0FE9A4713", // GET_VEHICLE_PED_IS_IN
PlayerPedId(), // Ped ped
false, // BOOL lastVehicle
Citizen.resultAsInteger()
);
console.log(vehicle)int vehicle = Function.Call<int>((Hash)0x9A9112A0FE9A4713, // GET_VEHICLE_PED_IS_IN
API.PlayerPedId(), // Ped ped
false // BOOL lastVehicle
);Related PED natives
- GET_VEHICLE_PED_IS_ENTERING
- GET_VEHICLE_PED_IS_USING
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- IS_PED_IN_ANY_VEHICLE
- IS_PED_IN_FLYING_VEHICLE
- IS_PED_IN_VEHICLE
- IS_PED_SITTING_IN_ANY_VEHICLE
- IS_PED_SITTING_IN_VEHICLE
- GET_IS_PED_RESPONDING_TO_NEGATIVE_INTERACTION
- GET_IS_PED_RESPONDING_TO_POSITIVE_INTERACTION
- GET_PED_IS_BEING_GRAPPLED
- GET_PED_IS_DOING_COMBAT_ROLL
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.