RedM Natives

GET_PLAYERS_LAST_VEHICLE

Hash0x2F96E7720B0B19EA
Runtime nameGetPlayersLastVehicle
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB6997A7EB3F5C8C0

Signature

Vehicle GET_PLAYERS_LAST_VEHICLE();

Returns Vehicle

Usage

Lua
local retval = GetPlayersLastVehicle()

-- always works, by hash
local retval = Citizen.InvokeNative(0x2F96E7720B0B19EA, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPlayersLastVehicle();

// by hash
const retval = Citizen.invokeNative('0x2F96E7720B0B19EA', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x2F96E7720B0B19EA);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.