GET_PED_IN_VEHICLE_SEAT
Returns the ped in seat seatIndex of vehicle, or 0 if the seat is empty.
Signature
Ped GET_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int seatIndex); // 0xBB40DD2270B65366 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | seatIndex | int |
Facts
| Name | GET_PED_IN_VEHICLE_SEAT |
|---|---|
| Hash | 0xBB40DD2270B65366 |
| Namespace | |
| Returns | Ped |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local ped = Citizen.InvokeNative(0xBB40DD2270B65366, -- GET_PED_IN_VEHICLE_SEAT
0, -- Vehicle vehicle
0, -- int seatIndex
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0xBB40DD2270B65366", // GET_PED_IN_VEHICLE_SEAT
0, // Vehicle vehicle
0, // int seatIndex
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0xBB40DD2270B65366, // GET_PED_IN_VEHICLE_SEAT
0, // Vehicle vehicle
0 // int seatIndex
);Related VEHICLE natives
- GET_LAST_PED_IN_VEHICLE_SEAT
- GET_VEHICLE_TRAILER_VEHICLE
- _GET_NUM_DRAFT_VEHICLE_HARNESS_PED
- _GET_PED_IN_DRAFT_HARNESS
- _GET_VEHICLE_TURRET_SEAT
- GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
- GET_CLOSEST_VEHICLE
- GET_DRIVER_OF_VEHICLE
- GET_LAST_DRIVEN_VEHICLE
- GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME
- GET_TIME_POSITION_IN_RECORDING
- GET_VEHICLE_BODY_HEALTH
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.