[Setting] setting = client.setting.addBool(name, variableName)


Adds a toggle switch in the UI

Parameters


name

string

The name of the setting in the UI

variableName

string

The name of the global variable that contains the setting value

Return Value


setting

Setting

The setting that was added