SetSetting
ESO Lua API function — used by 189 of the 3,030 addons we indexed (combined 11,484,305 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
SetSetting([SettingSystemType|#SettingSystemType] system, integer settingId, string value, [SetOptions|#SetOptions] setOptions)Real usage — from Ravalox' Quest Tracker
local newSetting = QUESTTRACKER.svCurrent.hideDefaultQuestTracker and "false" or "true"
SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_QUEST_TRACKER, newSetting)
endShort excerpt from the shipping addon Ravalox' Quest Tracker — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Ravalox' Quest Tracker | 1,460,568 |
| Lootdrop, Continued (All in One) | 1,145,178 |
| RuESO | 870,904 |
| Addon Selector (Save & Load AddOn profiles/packs) | 726,157 |
| Wykkyd Outfitter | 632,442 |
| Wykkyd Toolbar | 567,448 |