Skip to content

GetAreasAt

The names of the areas holding a point.

GetAreasAt(x, y, z)
Parameter Type
x number metres
y number metres
z number metres

table - the names, sorted (the areas whose layer is on)

local x, y, z = GetPlayerPos(pid)
if #GetAreasAt(x, y, z + 10) > 0 then SendClientMessage(pid, COLOR_RED, "No flying over the town.") end

GetPlayerAreas · the The map’s areas group of the index