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.
SetCVar("cvar",value{,"scriptCVar"})

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

Settings changed in this manner are applied to the game UI immediately, however settings are not saved until exit and settings which were previously not defined in config.wtf are not available to GetCVar until the file has been saved (at logout).

SetCVar("UnitNamePlayer", "1") - enables player nametags.

See Config.wtf defaults for more.


Template:WoW API