ESODecoded

GetCVar

ESO Lua API function — used by 652 of the 3,030 addons we indexed (combined 190,304,200 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetCVar(string CVarName)

Returns: string value

Real usage — from LoreBooks


  internal.current_locale = GetCVar("Language.2")
  internal.current_bookshelf_locale = GetCVar("Language.2")

Short excerpt from the shipping addon LoreBooksits 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
LoreBooks13,090,355
Dolgubon's Lazy Writ Crafter9,498,314
Destinations8,211,449
Map Pins8,061,548
Combat Metrics7,085,289
Action Duration Reminder6,522,011