isEntityInZone
IS_ENTITY_IN_ZONE0xB6463CF6AF527071The 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.
isEntityInZone(entity: Entity, zone: string): booleanisEntityInZone(entity: Entity, zone: string): booleanUsage
JavaScript
const result = isEntityInZone(entity, zone);Lua
local result = isEntityInZone(entity, zone)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
zone | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Full list of zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/zones.json
Reference
- Namespace
- Entity ENTITY
- In the game
BOOL IS_ENTITY_IN_ZONE(Entity entity, const char* zone)- Hash
0xB6463CF6AF527071