GetSetting
ESO Lua API function — used by 198 of the 3,030 addons we indexed (combined 34,027,032 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetSetting([SettingSystemType|#SettingSystemType] system, integer settingId)Returns: string value
Real usage — from CraftStore
if CS.Rune.refine.glyphs[1] then
if GetNumBagFreeSlots(BAG_BACKPACK) >= 3 or (tonumber(GetSetting(SETTING_TYPE_LOOT,LOOT_SETTING_AUTO_ADD_TO_CRAFT_BAG)) == 1 and IsESOPlusSubscriber()) then
ExtractEnchantingItem(CS.Rune.reShort excerpt from the shipping addon CraftStore — 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 |
|---|---|
| CraftStore | 5,176,147 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| Code's Combat Alerts | 4,445,158 |
| LibDebugLogger | 3,648,435 |
| pChat (Chat customization & help: look/notification/sound/automation/history) | 1,832,805 |
| Provision's TeamFormation : Teammate Radar | 1,506,270 |