# TASK::_GET_DRIVING_SEAT

- **Hash:** `0xE62754D09354F6CF`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `GetDrivingSeat`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/_GET_DRIVING_SEAT

## Signature

```c
Any _GET_DRIVING_SEAT(Any p0);
```

## Parameters

- `p0` (`Any`)

## Returns

`Any`

## Description

*Source: VORPCORE RDR3natives*

Returns the seat index currently set as the driving seat for the specified vehicle vehicle: The vehicle to query. Returns: Seat index (default = -1 for driver seat, custom index if changed with SET_DRIVING_SEAT)

## Usage

### Lua

```lua
local retval = GetDrivingSeat(p0)

-- always available, by hash
local retval = Citizen.InvokeNative(0xE62754D09354F6CF, p0, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetDrivingSeat(p0);

// by hash
const retval = Citizen.invokeNative('0xE62754D09354F6CF', p0, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xE62754D09354F6CF, p0);
```

- 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.

## See also

- [TASK::_SET_DRIVING_SEAT](https://natives.borderlinerp.com/natives/TASK/_SET_DRIVING_SEAT.md) — Sets which seat index acts as the driver seat for driving tasks

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
