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


Adds a color for the user to change in the UI
The value you set is a table containing 3 or 4 number from 0 to 255
It will be transformed into a table containing 4 numbers, r,g,b,a ex: var.r, var.g, var.b ...

Parameters


name

string

The name of the setting in the UI

variableName

string

The name of the global variable that contains the setting value ex: var = {255,255,255,255}/{255,255,255} for white

Return Value


setting

Setting

The setting that was added