_IS_PED_ON_TRANSPORT_ENTITY
Checks if ped is placed on target transportEntity
Hash
0x159EF5B6EDCE00E8Runtime name
IsPedOnTransportEntityNamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _IS_PED_ON_TRANSPORT_ENTITY(Ped ped, Entity transportEntity);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
transportEntity | Entity | — |
Returns BOOL
Description
Checks if ped is placed on target transportEntity
Usage
local retval = IsPedOnTransportEntity(ped, transportEntity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x159EF5B6EDCE00E8, ped, transportEntity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedOnTransportEntity(ped, transportEntity);
// by hash
const retval = Citizen.invokeNative('0x159EF5B6EDCE00E8', ped, transportEntity, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.