-
Notifications
You must be signed in to change notification settings - Fork 1
Server Functions getSettings
DizzasTeR edited this page Nov 5, 2020
·
2 revisions
Returns server's settings
Table Server.getSettings()
- None
Table - A table with following:
{
["maxPlayers"] = MAX_PLAYERS(int),
["serverPassword"] = SERVER_PASSWORD(string),
["serverName"] = SERVER_NAME(string),
["port"] = SERVER_PORT(int),
["flags"] = SERVER_FLAGS(int)
}
Event.bind("onServerInit", function()
iprint(Server.getSettings())
Server.setName("Test Name")
Server.setPassword("testpass")
iprint(Server.getSettings())
end)