_GET_PED_IN_TRANSPORT_SEAT
Returns the ped sitting in seat seatIndex of the transport entity transportEntity, or 0 if the seat is empty.
Signature
Ped _GET_PED_IN_TRANSPORT_SEAT(Entity transportEntity, int seatIndex); // 0xFFEC4B0A1A3ED515 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | transportEntity | Entity |
| 2 | seatIndex | int |
Facts
| Name | _GET_PED_IN_TRANSPORT_SEAT |
|---|---|
| Hash | 0xFFEC4B0A1A3ED515 |
| 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(0xFFEC4B0A1A3ED515, -- _GET_PED_IN_TRANSPORT_SEAT
PlayerPedId(), -- Entity transportEntity
0, -- int seatIndex
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0xFFEC4B0A1A3ED515", // _GET_PED_IN_TRANSPORT_SEAT
PlayerPedId(), // Entity transportEntity
0, // int seatIndex
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0xFFEC4B0A1A3ED515, // _GET_PED_IN_TRANSPORT_SEAT
API.PlayerPedId(), // Entity transportEntity
0 // int seatIndex
);Related AITRANSPORT natives
- _IS_PED_ON_TRANSPORT_SEAT
- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
- SET_PED_OFF_TRANSPORT_SEAT
- SET_PED_ON_TRANSPORT_SEAT
- _GET_TRANSPORT_USAGE_FLAGS
- _IS_PED_ON_TRANSPORT_ENTITY
- _IS_TRANSPORT_SEAT_FREE
- _IS_TRANSPORT_SEAT_OCCUPIED
- _SET_TRANSPORT_PRIORITY_SEAT
- GET_TRANSPORT_CONFIG_FLAG
- IS_PED_ENTERING_TRANSPORT
- IS_PED_EXITING_TRANSPORT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.