[Setting] setting = client.setting.addNamelessEnum(name, defaultValue, enumValues)
Adds a dropdown of values in the UI
Parameters
name
stringThe name of the setting in the UI
defaultValue
integerThe default value, make sure it exists tho
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