EntityClient

isEntityAttachedToAnyObject

IS_ENTITY_ATTACHED_TO_ANY_OBJECT0xCF511840CEEDE0CC

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_ATTACHED_TO_ANY_OBJECT(Entity entity)
Hash
0xCF511840CEEDE0CC

Open in the interactive natives reference