SET_VEHICLE_EXCLUSIVE_DRIVER
Used to be incorrectly named _SET_VEHICLE_EXCLUSIVE_DRIVER_2
Hash
0xC6B9BF123B9463B6Runtime name
SetVehicleExclusiveDriverNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB5C51B5502E85E83Signature
void SET_VEHICLE_EXCLUSIVE_DRIVER(Vehicle vehicle, Ped ped, int index);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
ped | Ped | — |
index | int | — |
Returns void
Description
index: 0 - 1
Used to be incorrectly named _SET_VEHICLE_EXCLUSIVE_DRIVER_2
Usage
SetVehicleExclusiveDriver(vehicle, ped, index)
-- always works, by hash
Citizen.InvokeNative(0xC6B9BF123B9463B6, vehicle, ped, index)JavaScript and C#
SetVehicleExclusiveDriver(vehicle, ped, index);
// by hash
Citizen.invokeNative('0xC6B9BF123B9463B6', vehicle, ped, index);Function.Call((Hash)0xC6B9BF123B9463B6, vehicle, ped, index);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.