VoidExpanse/scope-config
Config scope
Used to get access to server variables from config file.
Visibility: Globall.
List of functions
| GetFlag | ||
|---|---|---|
| Arguments | Returns | Example |
|
Boolean - whether the flag is set or not. |
var a = config.GetFlag("some_var"); |
| Description | ||
|
Returns a boolean server flag value by name. Basically used to read server config options. | ||
| GetValue | ||
|---|---|---|
| Arguments | Returns | Example |
|
Mixed - a particular value of config. |
var a = config.GetValue("some_var"); |
| Description | ||
|
Returns a server variable value by name. Basically used to read server config options. Standard return types are string, integer, float, etc. | ||