The Lab
AITRANSPORT native

_SET_TRANSPORT_EXCLUSIVE_DRIVER

returns void3 paramsbuild 1207

Makes ped the exclusive user of seat seatIndex on transportEntity, so other peds will not take it.

Signature

C
void _SET_TRANSPORT_EXCLUSIVE_DRIVER(Entity transportEntity, Ped ped, int seatIndex); // 0x4248AB2EEB3C75AD b1207

Parameters

#NameType
1transportEntityEntity
2pedPed
3seatIndexint

Facts

Facts about _SET_TRANSPORT_EXCLUSIVE_DRIVER
Name
_SET_TRANSPORT_EXCLUSIVE_DRIVER
Hash
0x4248AB2EEB3C75AD
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(0x4248AB2EEB3C75AD, -- _SET_TRANSPORT_EXCLUSIVE_DRIVER
  PlayerPedId(), -- Entity transportEntity
  PlayerPedId(), -- Ped ped
  0 -- int seatIndex
)
JavaScript
Citizen.invokeNative("0x4248AB2EEB3C75AD", // _SET_TRANSPORT_EXCLUSIVE_DRIVER
  PlayerPedId(), // Entity transportEntity
  PlayerPedId(), // Ped ped
  0 // int seatIndex
);
C#
Function.Call((Hash)0x4248AB2EEB3C75AD, // _SET_TRANSPORT_EXCLUSIVE_DRIVER
  API.PlayerPedId(), // Entity transportEntity
  API.PlayerPedId(), // Ped ped
  0 // int seatIndex
);
All AITRANSPORT natives

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