The Lab
AITRANSPORT native

_IS_TRANSPORT_SEAT_OCCUPIED

returns BOOL2 paramsbuild 1207

Returns true if seat seatIndex of transportEntity is occupied.

Signature

C
BOOL _IS_TRANSPORT_SEAT_OCCUPIED(Entity transportEntity, int seatIndex); // 0x2E2E06023D07631E b1207

Parameters

#NameType
1transportEntityEntity
2seatIndexint

Facts

Facts about _IS_TRANSPORT_SEAT_OCCUPIED
Name
_IS_TRANSPORT_SEAT_OCCUPIED
Hash
0x2E2E06023D07631E
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x2E2E06023D07631E, -- _IS_TRANSPORT_SEAT_OCCUPIED
  PlayerPedId(), -- Entity transportEntity
  0 -- int seatIndex
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x2E2E06023D07631E", // _IS_TRANSPORT_SEAT_OCCUPIED
  PlayerPedId(), // Entity transportEntity
  0, // int seatIndex
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2E2E06023D07631E, // _IS_TRANSPORT_SEAT_OCCUPIED
  API.PlayerPedId(), // Entity transportEntity
  0 // int seatIndex
);
All AITRANSPORT natives

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