RedM Natives

SET_VEHICLE_EXCLUSIVE_DRIVER

Used to be incorrectly named _SET_VEHICLE_EXCLUSIVE_DRIVER_2

Hash0xC6B9BF123B9463B6
Runtime nameSetVehicleExclusiveDriver
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB5C51B5502E85E83

Signature

void SET_VEHICLE_EXCLUSIVE_DRIVER(Vehicle vehicle, Ped ped, int index);

Parameters

NameTypeDescription
vehicleVehicle—
pedPed—
indexint—

Returns void

Description

index: 0 - 1

Used to be incorrectly named _SET_VEHICLE_EXCLUSIVE_DRIVER_2

Usage

Lua
SetVehicleExclusiveDriver(vehicle, ped, index)

-- always works, by hash
Citizen.InvokeNative(0xC6B9BF123B9463B6, vehicle, ped, index)
JavaScript and C#
JavaScript
SetVehicleExclusiveDriver(vehicle, ped, index);

// by hash
Citizen.invokeNative('0xC6B9BF123B9463B6', vehicle, ped, index);
C#
Function.Call((Hash)0xC6B9BF123B9463B6, vehicle, ped, index);

Sources

alloc8or RDR3 NativeDB

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