# AITRANSPORT::_GET_PED_IN_TRANSPORT_SEAT

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

## Signature

```c
Ped _GET_PED_IN_TRANSPORT_SEAT(Entity transportEntity, int seatIndex);
```

## Parameters

- `transportEntity` (`Entity`)
- `seatIndex` (`int`)

## Returns

`Ped`

## Description

seatIndex: see CREATE_PED_INSIDE_VEHICLE

## Usage

### Lua

```lua
local retval = GetPedInTransportSeat(transportEntity, seatIndex)

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

### JavaScript

```js
const retval = GetPedInTransportSeat(transportEntity, seatIndex);

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

### C#

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

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