Map Functions getBounds - rasikhq/VCMP-Lua GitHub Wiki
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)