EntityClient

isEntityOccluded

IS_ENTITY_OCCLUDED0xE31C2C72B8692B64

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_OCCLUDED(Entity entity)
Hash
0xE31C2C72B8692B64

Open in the interactive natives reference