The Lab
PLAYER native

GET_PLAYERS_LAST_VEHICLE

returns Vehicle0 paramsbuild 1207

Returns the last vehicle used by the local player.

Signature

C
Vehicle GET_PLAYERS_LAST_VEHICLE(); // 0x2F96E7720B0B19EA b1207

Parameters

This native takes no parameters.

Facts

Facts about GET_PLAYERS_LAST_VEHICLE
Name
GET_PLAYERS_LAST_VEHICLE
Hash
0x2F96E7720B0B19EA
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(0x2F96E7720B0B19EA, -- GET_PLAYERS_LAST_VEHICLE
  Citizen.ResultAsInteger()
)
print(vehicle)
JavaScript
const vehicle = Citizen.invokeNative("0x2F96E7720B0B19EA", // GET_PLAYERS_LAST_VEHICLE
  Citizen.resultAsInteger()
);
console.log(vehicle)
C#
int vehicle = Function.Call<int>((Hash)0x2F96E7720B0B19EA); // GET_PLAYERS_LAST_VEHICLE
All PLAYER natives

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