isEntityTouchingEntity
IS_ENTITY_TOUCHING_ENTITY0x17FFC1B2BA35A494The 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.
isEntityTouchingEntity(entity: Entity, targetEntity: Entity): booleanisEntityTouchingEntity(entity: Entity, targetEntity: Entity): booleanUsage
JavaScript
const result = isEntityTouchingEntity(entity, targetEntity);Lua
local result = isEntityTouchingEntity(entity, targetEntity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
targetEntity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Entity ENTITY
- In the game
BOOL IS_ENTITY_TOUCHING_ENTITY(Entity entity, Entity targetEntity)- Hash
0x17FFC1B2BA35A494