_SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
Stores a seat preference for ped on transportEntity in the slot preferenceSlot, pointing at seatIndex.
Signature
void _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE(Ped ped, Entity transportEntity, int preferenceSlot, int p3, int seatIndex); // 0xB7079F4C72896756 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | transportEntity | Entity |
| 3 | preferenceSlot | int |
| 4 | p3 | int |
| 5 | seatIndex | int |
Facts
| Name | _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE |
|---|---|
| Hash | 0xB7079F4C72896756 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xB7079F4C72896756, -- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
PlayerPedId(), -- Ped ped
PlayerPedId(), -- Entity transportEntity
0, -- int preferenceSlot
0, -- int p3
0 -- int seatIndex
)Citizen.invokeNative("0xB7079F4C72896756", // _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity transportEntity
0, // int preferenceSlot
0, // int p3
0 // int seatIndex
);Function.Call((Hash)0xB7079F4C72896756, // _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
API.PlayerPedId(), // Ped ped
API.PlayerPedId(), // Entity transportEntity
0, // int preferenceSlot
0, // int p3
0 // int seatIndex
);Related AITRANSPORT natives
- SET_PED_OFF_TRANSPORT_SEAT
- SET_PED_ON_TRANSPORT_SEAT
- _SET_AI_CAN_USE_TRANSPORT
- _SET_TRANSPORT_PRIORITY_SEAT
- _GET_PED_IN_TRANSPORT_SEAT
- _IS_PED_ON_TRANSPORT_SEAT
- SET_TRANSPORT_ACCESSIBLE_SEAT_FLAGS
- _SET_TRANSPORT_EXCLUSIVE_DRIVER
- _SET_TRANSPORT_EXIT_BLEND_RATIO
- _SET_TRANSPORT_USAGE_FLAGS
- _CLEAR_ALL_SEAT_PREFERENCE_SLOTS
- _IS_PED_ON_TRANSPORT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.