[Setting] setting = client.setting.addCustom(name, CustomSettingTypeId, defaultValue)


https://github.com/OnixClient-Scripts/OnixClient_Scripts/blob/master/Modules/CustomSettingExample.lua
Adds an instance of a custom setting

Parameters


name

string

The name of this setting instance in the UI

CustomSettingTypeId

integer

The type of this custom setting given by client.settings.registerCustomRenderer

defaultValue

integer

Custom settings act like ints in scripting. This is the default value of this setting.

Return Value


setting

Setting

The setting that was added