EntityClient

isEntityAttachedToAnyPed

IS_ENTITY_ATTACHED_TO_ANY_PED0xB1632E9A5F988D11

The GTA V native IS_ENTITY_ATTACHED_TO_ANY_PED of the ENTITY namespace, as LS:MP client scripts call it: the global function isEntityAttachedToAnyPed, in JavaScript and in Lua.

SignatureJavaScript
isEntityAttachedToAnyPed(entity: Entity): boolean
SignatureLua
isEntityAttachedToAnyPed(entity: Entity): boolean

Usage

JavaScript
const result = isEntityAttachedToAnyPed(entity);
Lua
local result = isEntityAttachedToAnyPed(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_ATTACHED_TO_ANY_PED(Entity entity)
Hash
0xB1632E9A5F988D11

Open in the interactive natives reference