# CFX::GET_PED_IN_VEHICLE_SEAT

- **Hash:** `0x388FDE9A`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetPedInVehicleSeat`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_PED_IN_VEHICLE_SEAT

## Signature

```c
Entity GET_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex);
```

## Parameters

- `vehicle` (`Vehicle`) — The target vehicle.
- `seatIndex` (`int`) — See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669).

## Returns

`Entity` — The ped in the specified seat of the passed vehicle. Returns 0 if the specified seat is not occupied.

## Usage

### Lua

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

-- always available, by hash
local retval = Citizen.InvokeNative(0x388fde9a, vehicle, seatIndex, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPedInVehicleSeat(vehicle, seatIndex);

// by hash
const retval = Citizen.invokeNative('0x388fde9a', vehicle, seatIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x388fde9a, vehicle, seatIndex);
```

*Sources: Cfx.re native reference.*
