# VEHICLE::SET_VEHICLE_EXCLUSIVE_DRIVER

- **Hash:** `0xC6B9BF123B9463B6`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetVehicleExclusiveDriver`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_EXCLUSIVE_DRIVER

## Signature

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

## Parameters

- `vehicle` (`Vehicle`)
- `ped` (`Ped`)
- `index` (`int`)

## Returns

`void`

## Description

index: 0 - 1

Used to be incorrectly named _SET_VEHICLE_EXCLUSIVE_DRIVER_2

## Usage

### Lua

```lua
SetVehicleExclusiveDriver(vehicle, ped, index)

-- always available, by hash
Citizen.InvokeNative(0xC6B9BF123B9463B6, vehicle, ped, index)
```

### JavaScript

```js
SetVehicleExclusiveDriver(vehicle, ped, index);

// by hash
Citizen.invokeNative('0xC6B9BF123B9463B6', vehicle, ped, index);
```

### C#

```csharp
Function.Call((Hash)0xC6B9BF123B9463B6, vehicle, ped, index);
```

*Sources: alloc8or RDR3 NativeDB.*
