[Setting] setting = client.setting.addEnum(name, variableName, enumValues)
Adds a dropdown of values 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
enumValues
tableThe values of the enum in the following format: { {1, "first"}, {7, "second"} } basically number value and a name for that number
Return Value
setting
SettingThe setting that was added