Skip to content

Map Functions getBounds

DizzasTeR edited this page Nov 7, 2020 · 1 revision

getBounds

Returns map boundaries

Table Map.getBounds()

Parameters

  • None

Returns

Table - A table with following:

{
["max_X"]    = FLOAT
["min_X"]    = FLOAT
["max_Y"]    = FLOAT
["min_Y"]    = FLOAT
}

Example

Event.bind("onServerInit", function()
    local bounds = Map.getBounds()
    print(bounds.max_X)
end)
Clone this wiki locally