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


Adds a dropdown of values in the UI

Parameters


name

string

The name of the setting in the UI

defaultValue

integer

The default value, make sure it exists tho

enumValues

table

The values of the enum in the following format: { {1, "first"}, {7, "second"} } basically number value and a name for that number

Return Value


setting

Setting

The setting that was added