ESODecoded

GetActionIndicesFromName

ESO Lua API function — used by 40 of the 3,030 addons we indexed (combined 12,516,632 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetActionIndicesFromName(string actionName)

Returns: luaindex:nilable layerIndex, luaindex:nilable categoryIndex, luaindex:nilable actionIndex

Real usage — from pChat (Chat customization & help: look/notification/sound/automation/history)

        -- get SwitchTab Keybind params
        local layerIndex, categoryIndex, actionIndex = GetActionIndicesFromName("PCHAT_SWITCH_TAB")
        --If exists

Short excerpt from the shipping addon pChat (Chat customization & help: look/notification/sound/automation/history)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

AddonTotal downloads
AwesomeGuildStore4,722,462
pChat (Chat customization & help: look/notification/sound/automation/history)1,832,805
TraitBuddy1,101,730
AlphaGear 2 (Builds, Gear, Skills, Banking)848,683
Greymind Quick Slot Bar710,122
Dressing Room for Stonethorn527,263