_IS_PED_ON_TRANSPORT_ENTITY
Returns true if ped is currently on the transport entity transportEntity.
Signature
BOOL _IS_PED_ON_TRANSPORT_ENTITY(Ped ped, Entity transportEntity); // 0x159EF5B6EDCE00E8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | transportEntity | Entity |
Facts
| 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.
local result = Citizen.InvokeNative(0x159EF5B6EDCE00E8, -- _IS_PED_ON_TRANSPORT_ENTITY
PlayerPedId(), -- Ped ped
PlayerPedId() -- Entity transportEntity
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x159EF5B6EDCE00E8", // _IS_PED_ON_TRANSPORT_ENTITY
PlayerPedId(), // Ped ped
PlayerPedId(), // Entity transportEntity
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x159EF5B6EDCE00E8, // _IS_PED_ON_TRANSPORT_ENTITY
API.PlayerPedId(), // Ped ped
API.PlayerPedId() // Entity transportEntity
);Related AITRANSPORT natives
- _IS_PED_ON_TRANSPORT_SEAT
- IS_PED_ENTERING_TRANSPORT
- IS_PED_EXITING_TRANSPORT
- SET_PED_ON_TRANSPORT_SEAT
- _IS_TRANSPORT_SEAT_FREE
- _IS_TRANSPORT_SEAT_OCCUPIED
- _GET_PED_IN_TRANSPORT_SEAT
- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
- SET_PED_OFF_TRANSPORT_SEAT
- _CLEAR_TRANSPORT_EXIT_BLEND_RATIO
- _GET_TRANSPORT_USAGE_FLAGS
- _SET_AI_CAN_USE_TRANSPORT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.