EntityClient

isEntityInZone

IS_ENTITY_IN_ZONE0xB6463CF6AF527071

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

SignatureJavaScript
isEntityInZone(entity: Entity, zone: string): boolean
SignatureLua
isEntityInZone(entity: Entity, zone: string): boolean

Usage

JavaScript
const result = isEntityInZone(entity, zone);
Lua
local result = isEntityInZone(entity, zone)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
zonestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_IN_ZONE(Entity entity, const char* zone)
Hash
0xB6463CF6AF527071

Open in the interactive natives reference