# VEHICLE::_GET_VEHICLE_TURRET_SEAT

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

## Signature

```c
BOOL _GET_VEHICLE_TURRET_SEAT(Vehicle vehicle, int* seatIndex);
```

## Parameters

- `vehicle` (`Vehicle`)
- `seatIndex` (`int*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, seatIndex = GetVehicleTurretSeat(vehicle, seatIndex)

-- always available, by hash
local retval, seatIndex = Citizen.InvokeNative(0xFF5791B7639C2A46, vehicle, Citizen.PointerValueIntInitialized(seatIndex), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, seatIndex] = GetVehicleTurretSeat(vehicle, seatIndex);

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

### C#

```csharp
var seatIndex = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xFF5791B7639C2A46, vehicle, seatIndex);
// seatIndex.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.*
