Module sv_configs
Config System
Functions
| SetConfig (addon, value) | SetConfig function. |
| GetConfig (addon) | GetConfig function. |
Functions
- SetConfig (addon, value)
-
SetConfig function.
This function sets a config value to a addon.
Parameters:
- addon The addon name. string
- value The config value. table
Usage:
exports.sd_util:SetConfig("sd_util", {test = true})
- GetConfig (addon)
-
GetConfig function.
This function gets a config value from a addon.
Parameters:
- addon The addon name. string
Returns:
-
table
Usage:
local config = exports.sd_util:GetConfig("sd_util")