RedM Natives

_IS_PED_ON_TRANSPORT_ENTITY

Checks if ped is placed on target transportEntity

Hash0x159EF5B6EDCE00E8
Runtime nameIsPedOnTransportEntity
NamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_PED_ON_TRANSPORT_ENTITY(Ped ped, Entity transportEntity);

Parameters

NameTypeDescription
pedPed—
transportEntityEntity—

Returns BOOL

Description

Checks if ped is placed on target transportEntity

Usage

Lua
local retval = IsPedOnTransportEntity(ped, transportEntity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x159EF5B6EDCE00E8, ped, transportEntity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedOnTransportEntity(ped, transportEntity);

// by hash
const retval = Citizen.invokeNative('0x159EF5B6EDCE00E8', ped, transportEntity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x159EF5B6EDCE00E8, ped, transportEntity);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.