EntityClient

isEntityAttachedToEntity

IS_ENTITY_ATTACHED_TO_ENTITY0xEFBE71898A993728

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

SignatureJavaScript
isEntityAttachedToEntity(from: Entity, to: Entity): boolean
SignatureLua
isEntityAttachedToEntity(from: Entity, to: Entity): boolean

Usage

JavaScript
const result = isEntityAttachedToEntity(from, to);
Lua
local result = isEntityAttachedToEntity(from, to)

Parameters

ParameterTypeJavaScriptLua
fromEntitynumberinteger
toEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_ATTACHED_TO_ENTITY(Entity from, Entity to)
Hash
0xEFBE71898A993728

Open in the interactive natives reference