RedM Natives

GET_LAST_DRIVEN_VEHICLE

Hash0xA94F3E0AB9695E19
Runtime nameGetLastDrivenVehicle
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB2D06FAEDE65B577

Signature

Vehicle GET_LAST_DRIVEN_VEHICLE();

Returns Vehicle

Usage

Lua
local retval = GetLastDrivenVehicle()

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

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

See also

Sources

alloc8or RDR3 NativeDB

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