EntityClient

isEntityTouchingEntity

IS_ENTITY_TOUCHING_ENTITY0x17FFC1B2BA35A494

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

SignatureJavaScript
isEntityTouchingEntity(entity: Entity, targetEntity: Entity): boolean
SignatureLua
isEntityTouchingEntity(entity: Entity, targetEntity: Entity): boolean

Usage

JavaScript
const result = isEntityTouchingEntity(entity, targetEntity);
Lua
local result = isEntityTouchingEntity(entity, targetEntity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
targetEntityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_TOUCHING_ENTITY(Entity entity, Entity targetEntity)
Hash
0x17FFC1B2BA35A494

Open in the interactive natives reference