ESODecoded

SetCVar

ESO Lua API function — used by 76 of the 3,030 addons we indexed (combined 13,912,577 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

SetCVar(string CVarName, string value)

Real usage — from Daily Provisioning


    SLASH_COMMANDS["/langen"] = function() SetCVar("language.2", "en") end
    SLASH_COMMANDS["/langjp"] = function() SetCVar("language.2", "jp") end

Short excerpt from the shipping addon Daily Provisioningits 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
WritWorthy2,484,332
LibZone1,937,031
Daily Provisioning1,544,059
LibHistoire - Guild History1,505,233
Daily Alchemy1,434,977
LibMarify1,376,993