isEntityVisibleToScript
IS_ENTITY_VISIBLE_TO_SCRIPT0xD796CB5BA8F20E32The 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.
isEntityVisibleToScript(entity: Entity): booleanisEntityVisibleToScript(entity: Entity): booleanUsage
JavaScript
const result = isEntityVisibleToScript(entity);Lua
local result = isEntityVisibleToScript(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Entity ENTITY
- In the game
BOOL IS_ENTITY_VISIBLE_TO_SCRIPT(Entity entity)- Hash
0xD796CB5BA8F20E32