The Lab
AITRANSPORT native

_SET_PED_USE_TRANSPORT_SEAT_PREFERENCE

returns void5 paramsbuild 1207

Stores a seat preference for ped on transportEntity in the slot preferenceSlot, pointing at seatIndex.

Signature

C
void _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE(Ped ped, Entity transportEntity, int preferenceSlot, int p3, int seatIndex); // 0xB7079F4C72896756 b1207

Parameters

#NameType
1pedPed
2transportEntityEntity
3preferenceSlotint
4p3int
5seatIndexint

Facts

Facts about _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
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.

Lua
Citizen.InvokeNative(0xB7079F4C72896756, -- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Entity transportEntity
  0, -- int preferenceSlot
  0, -- int p3
  0 -- int seatIndex
)
JavaScript
Citizen.invokeNative("0xB7079F4C72896756", // _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity transportEntity
  0, // int preferenceSlot
  0, // int p3
  0 // int seatIndex
);
C#
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
);
All AITRANSPORT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.