The Lab
VEHICLE native

GET_LAST_DRIVEN_VEHICLE

returns Vehicle0 paramsbuild 1207

Returns the last vehicle driven by the player.

Signature

C
Vehicle GET_LAST_DRIVEN_VEHICLE(); // 0xA94F3E0AB9695E19 b1207

Parameters

This native takes no parameters.

Facts

Facts about GET_LAST_DRIVEN_VEHICLE
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.

Lua
local vehicle = Citizen.InvokeNative(0xA94F3E0AB9695E19, -- GET_LAST_DRIVEN_VEHICLE
  Citizen.ResultAsInteger()
)
print(vehicle)
JavaScript
const vehicle = Citizen.invokeNative("0xA94F3E0AB9695E19", // GET_LAST_DRIVEN_VEHICLE
  Citizen.resultAsInteger()
);
console.log(vehicle)
C#
int vehicle = Function.Call<int>((Hash)0xA94F3E0AB9695E19); // GET_LAST_DRIVEN_VEHICLE
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.