# VEHICLE::GET_LAST_PED_IN_VEHICLE_SEAT

- **Hash:** `0x74583B19FEEAFDA7`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `GetLastPedInVehicleSeat`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/GET_LAST_PED_IN_VEHICLE_SEAT

## Signature

```c
Ped GET_LAST_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex);
```

## Parameters

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

## Returns

`Ped`

## Description

seatIndex: see CREATE_PED_INSIDE_VEHICLE

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
