Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

GetCVar allows you to get the content of the variables defined in the config.wtf file (which is in the WTF directory).

value = GetCVar("cvarName")

Parameters

Arguments

cvarName
String - see Config.wtf defaults for a list

Returns

value
String


Example

 DEFAULT_CHAT_FRAME:AddMessage(GetCVar("realmName"))

Outputs your realm name in the chat frame.

Notes

  • Calling GetCVar with an invalid variable name will cause an error