RedM Natives

GET_DRIVER_OF_VEHICLE

Hash0x2963B5C1637E8A27
Runtime nameGetDriverOfVehicle
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207

Signature

Ped GET_DRIVER_OF_VEHICLE(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns Ped

Usage

Lua
local retval = GetDriverOfVehicle(vehicle)

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

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

Sources

alloc8or RDR3 NativeDB

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