GetClassName
ESO Lua API function — used by 31 of the 3,030 addons we indexed (combined 14,475,987 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetClassName([Gender|#Gender] gender, integer classId)Returns: string className
Real usage — from Combat Metrics
if id == classId then
local class = GetClassName(gender, id)
Short excerpt from the shipping addon Combat Metrics — 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 |
|---|---|
| Combat Metrics | 7,085,289 |
| LibSets (All set items ingame & preview. lua API + excel sheet) | 4,357,189 |
| TraitBuddy | 1,101,730 |
| Kill Counter | 577,202 |
| Caro's Skill Point Saver (Respec Skill Lines, Champion Points, Gear, Quickslots, Appearances) | 364,055 |
| Miat's PVP Alerts | 326,979 |