# VEHICLE::_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE

- **Hash:** `0xB213D2A560B2E48B`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `IsPedExclusiveDriverOfVehicle`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE

## Signature

```c
BOOL _IS_PED_EXCLUSIVE_DRIVER_OF_VEHICLE(Ped ped, Vehicle vehicle, int* outIndex);
```

## Parameters

- `ped` (`Ped`)
- `vehicle` (`Vehicle`)
- `outIndex` (`int*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, outIndex = IsPedExclusiveDriverOfVehicle(ped, vehicle, outIndex)

-- always available, by hash
local retval, outIndex = Citizen.InvokeNative(0xB213D2A560B2E48B, ped, vehicle, Citizen.PointerValueIntInitialized(outIndex), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, outIndex] = IsPedExclusiveDriverOfVehicle(ped, vehicle, outIndex);

// by hash
const [retval, outIndex] = Citizen.invokeNative('0xB213D2A560B2E48B', ped, vehicle, Citizen.pointerValueIntInitialized(outIndex), Citizen.returnResultAnyway());
```

### C#

```csharp
var outIndex = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xB213D2A560B2E48B, ped, vehicle, outIndex);
// outIndex.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
