[Setting] setting = client.setting.addBool(name, variableName)
Adds a toggle switch in the UI
Parameters
name
stringThe name of the setting in the UI
variableName
stringThe name of the global variable that contains the setting value
Return Value
setting
SettingThe setting that was added