GetPedInVehicleSeat — FiveM Natives
0xBB40DD2270B65366 · VEHICLE · all
Gets the ped in the specified seat of the passed vehicle. If there is no ped in the seat, and the game considers the vehicle as ambient population, this will create a random occupant ped in the seat, which may be cleaned up by the game fairly soon if not marked as script-owned mission entity. NativeDB Added Parameter 3: BOOL p2 (uses a different GetOccupant function)
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | Vehicle | The vehicle to get the ped for. |
| seatIndex | int | See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669). |
Returns
Ped