[Setting] setting = client.setting.addNamelessBool(name, defaultValue)


Adds a toggle switch in the UI

Parameters


name

string

The name of the setting in the UI

defaultValue

boolean

The name of the global variable that contains the setting value

Return Value


setting

Setting

The setting that was added