Skip to content

IsPointInZone

Whether a point lies inside a zone.

IsPointInZone(id, x, y [, z])
Parameter Type
id number the zone
x number metres
y number metres
z number metres (0 without) (optional)

boolean

local x, y, z = GetEntityPos(horse)
if IsPointInZone(stable, x, y, z) then Log("the horse is home") end

IsPlayerInZone · GetZoneInfo · the Zones group of the index