GET_LAST_DRIVEN_VEHICLE
Returns the last vehicle driven by the player.
Signature
Vehicle GET_LAST_DRIVEN_VEHICLE(); // 0xA94F3E0AB9695E19 b1207Parameters
This native takes no parameters.
Facts
| Name | GET_LAST_DRIVEN_VEHICLE |
|---|---|
| Hash | 0xA94F3E0AB9695E19 |
| 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(0xA94F3E0AB9695E19, -- GET_LAST_DRIVEN_VEHICLE
Citizen.ResultAsInteger()
)
print(vehicle)const vehicle = Citizen.invokeNative("0xA94F3E0AB9695E19", // GET_LAST_DRIVEN_VEHICLE
Citizen.resultAsInteger()
);
console.log(vehicle)int vehicle = Function.Call<int>((Hash)0xA94F3E0AB9695E19); // GET_LAST_DRIVEN_VEHICLERelated VEHICLE natives
- GET_LAST_PED_IN_VEHICLE_SEAT
- GET_VEHICLE_TRAILER_VEHICLE
- CLEAR_LAST_DRIVEN_VEHICLE
- GET_CLOSEST_VEHICLE
- GET_DRIVER_OF_VEHICLE
- GET_PED_IN_VEHICLE_SEAT
- GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
- GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME
- GET_VEHICLE_BODY_HEALTH
- GET_VEHICLE_DOOR_LOCK_STATUS
- GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
- GET_VEHICLE_ENGINE_HEALTH
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.