v0.13.8

C_CVar.SetCVar

functionimplementedavailable in: camelot

Sets a console variable.

signaturewowlua
function C_CVar.SetCVar(    name: string,    value: string?): boolean

Parameters

nametypedescription
namestringCVar - Name of the CVar.
valuestring?The new value of the CVar.

Returns

success · boolean · Whether the CVar was successfully set. Returns nil if attempting to set a secure cvar in combat.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

  • Requires non read only c var.
  • Requires non secure c var.
  • Requires valid and public c var.

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 ↗.