The Lab
AITRANSPORT native

_GET_PED_IN_TRANSPORT_SEAT

returns Ped2 paramsbuild 1207

Returns the ped sitting in seat seatIndex of the transport entity transportEntity, or 0 if the seat is empty.

Signature

C
Ped _GET_PED_IN_TRANSPORT_SEAT(Entity transportEntity, int seatIndex); // 0xFFEC4B0A1A3ED515 b1207

Parameters

#NameType
1transportEntityEntity
2seatIndexint

Facts

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

Lua
local ped = Citizen.InvokeNative(0xFFEC4B0A1A3ED515, -- _GET_PED_IN_TRANSPORT_SEAT
  PlayerPedId(), -- Entity transportEntity
  0, -- int seatIndex
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0xFFEC4B0A1A3ED515", // _GET_PED_IN_TRANSPORT_SEAT
  PlayerPedId(), // Entity transportEntity
  0, // int seatIndex
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0xFFEC4B0A1A3ED515, // _GET_PED_IN_TRANSPORT_SEAT
  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.