v0.13.8

C_CVar.GetCVarInfo

functionimplementedavailable in: camelot

Returns information on a console variable.

signaturewowlua
function C_CVar.GetCVarInfo(    name: string): (string, string, boolean, boolean, boolean, boolean, boolean)

Parameters

nametypedescription
namestringName of the CVar to query the value of. Only accepts console variables (i.e. not console commands).

Returns

#nametypedescription
1valuestringCurrent value of the CVar.
2defaultValuestringDefault value of the CVar.
3isStoredServerAccountbooleanIf the CVar scope is set WoW account-wide. Stored on the server per CVar synchronizeConfig
4isStoredServerCharacterbooleanIf the CVar scope is character-specific. Stored on the server per CVar synchronizeConfig
5isLockedFromUserboolean
6isSecurebooleanIf the CVar cannot be set with SetCVar while in combat, which would fire ADDON_ACTION_BLOCKED. It's also not possible to set these via /console. Most nameplate cvars are secure.
7isReadOnlybooleanReturns true for portal, serverAlert, timingTestError. These CVars cannot be changed.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (CVarScripts system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.