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