local isInside, zoneName = lib.zones.isInsideZone(name, pos)
Parameter
Type
Required
Description
name
StringObject
Unique zone reference(s)
pos
Vector3
Position to be checked
Data Structure
This is the data structure of a blip and the valid options
{-- Required type ="circle", -- Type of zone: circle, circle2D, poly, box, game_zone -- Not RequiredonEnter=function(data)-- Callback for entering the zoneend,onExit=function(data)-- Callback for exiting the zoneend,}
Some zones have different requirements, see below:
{ pos =vector3(0, 0, 0), -- Position of the zone radius =5.0, -- Size of the zone radially from the point}
{ pos =vector2(0, 0), -- Position of the zone radius =5.0, -- Size of the zone radially from the point}
{ points = { -- Boundy marks for the polyzonevector2(0, 0),vector2(2, 1),vector2(3, 3), }}
{ pos =vector4(0,0,0,0), -- Position of the zone, x, y, z, heading size =vector3(0,0,0) -- Size of the zone from the center point}