EntityClient

isEntityTouchingModel

IS_ENTITY_TOUCHING_MODEL0x0F42323798A58C8C

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

SignatureJavaScript
isEntityTouchingModel(entity: Entity, modelHash: Hash): boolean
SignatureLua
isEntityTouchingModel(entity: Entity, modelHash: Hash): boolean

Usage

JavaScript
const result = isEntityTouchingModel(entity, modelHash);
Lua
local result = isEntityTouchingModel(entity, modelHash)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
modelHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_TOUCHING_MODEL(Entity entity, Hash modelHash)
Hash
0x0F42323798A58C8C

Open in the interactive natives reference