Skip to main content


msys.config — Set or get configuration values


msys.config(action, parameters);

action: string
parameters: string


Corresponds to the config system console command, and can be used to get or set configuration values. For example:

local mob, tmob = msys.config("get", "max_outbound_connections");
local ymob, tymob = msys.config("get", "domain", "", "max_outbound_connections");

This function returns two values:

  • The value of the configuration option

  • The textual output from the command (what you would have seen had you typed it via ec_console)

Because this function is in the msys namespace, an explicit require is not necessary.

See Also

Was this page helpful?