ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getServerConfigSetting

Function

getServerConfigSetting

ServerServerIdentical to MTA:SA

A function for reading a setting from the server configuration file.

Syntax

any getServerConfigSetting(string name)

Arguments

namestring
Setting name.

Returns

Always false in this version.

Example

local value = getServerConfigSetting("max_slots") or getMaxPlayers()

Notes

Limitation. The server does not expose server-config.json to scripts (it contains the server key, among others). Read server data with getServerName, getServerPort, getMaxPlayers.

See also