ESODecoded

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.re

Short excerpt from the shipping addon CraftStoreits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
CraftStore5,176,147
Srendarr - Aura, Buff & Debuff Tracker5,058,870
Code's Combat Alerts4,445,158
LibDebugLogger3,648,435
pChat (Chat customization & help: look/notification/sound/automation/history)1,832,805
Provision's TeamFormation : Teammate Radar1,506,270