EntityClient

isEntityAttached

IS_ENTITY_ATTACHED0xB346476EF1A64897

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Whether the entity is attached to any other entity.

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_ATTACHED(Entity entity)
Hash
0xB346476EF1A64897

Open in the interactive natives reference