EntityClient

isEntityVisibleToScript

IS_ENTITY_VISIBLE_TO_SCRIPT0xD796CB5BA8F20E32

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_VISIBLE_TO_SCRIPT(Entity entity)
Hash
0xD796CB5BA8F20E32

Open in the interactive natives reference