The Lab
AITRANSPORT native

_IS_PED_ON_TRANSPORT_ENTITY

returns BOOL2 paramsbuild 1207

Returns true if ped is currently on the transport entity transportEntity.

Signature

C
BOOL _IS_PED_ON_TRANSPORT_ENTITY(Ped ped, Entity transportEntity); // 0x159EF5B6EDCE00E8 b1207

Parameters

#NameType
1pedPed
2transportEntityEntity

Facts

Facts about _IS_PED_ON_TRANSPORT_ENTITY
Name
_IS_PED_ON_TRANSPORT_ENTITY
Hash
0x159EF5B6EDCE00E8
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(0x159EF5B6EDCE00E8, -- _IS_PED_ON_TRANSPORT_ENTITY
  PlayerPedId(), -- Ped ped
  PlayerPedId() -- Entity transportEntity
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x159EF5B6EDCE00E8", // _IS_PED_ON_TRANSPORT_ENTITY
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Entity transportEntity
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x159EF5B6EDCE00E8, // _IS_PED_ON_TRANSPORT_ENTITY
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId() // Entity transportEntity
);
All AITRANSPORT natives

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