# C_CVar: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_CVar

## Functions

### C_CVar.AreCVarsLoaded

```lua
loaded = C_CVar.AreCVarsLoaded()
```

Returns:
- `loaded`: bool

### C_CVar.GetCVar

```lua
value = C_CVar.GetCVar(name)
```

Arguments:
- `name`: cstring

Returns:
- `value`: string, may be nil

### C_CVar.GetCVarBitfield

```lua
value = C_CVar.GetCVarBitfield(name, index)
```

Arguments:
- `name`: cstring
- `index`: luaIndex

Returns:
- `value`: bool, may be nil

### C_CVar.GetCVarBool

```lua
value = C_CVar.GetCVarBool(name)
```

Arguments:
- `name`: cstring

Returns:
- `value`: bool, may be nil

### C_CVar.GetCVarDefault

```lua
defaultValue = C_CVar.GetCVarDefault(name)
```

Arguments:
- `name`: cstring

Returns:
- `defaultValue`: string, may be nil

### C_CVar.GetCVarInfo

```lua
value, defaultValue, isStoredServerAccount, isStoredServerCharacter, isLockedFromUser, isSecure, isReadOnly = C_CVar.GetCVarInfo(name)
```

Arguments:
- `name`: cstring

Returns:
- `value`: cstring
- `defaultValue`: cstring
- `isStoredServerAccount`: bool
- `isStoredServerCharacter`: bool
- `isLockedFromUser`: bool
- `isSecure`: bool
- `isReadOnly`: bool

### C_CVar.RegisterCVar

```lua
C_CVar.RegisterCVar(name, [value])
```

Arguments:
- `name`: cstring
- `value`: cstring, may be nil

### C_CVar.RemoveTempCVar

```lua
C_CVar.RemoveTempCVar(name)
```

Arguments:
- `name`: cstring

### C_CVar.ResetTestCVars

```lua
C_CVar.ResetTestCVars()
```

### C_CVar.SetCVar

```lua
success = C_CVar.SetCVar(name, [value])
```

Arguments:
- `name`: cstring
- `value`: cstring, may be nil

Returns:
- `success`: bool

### C_CVar.SetCVarBitfield

```lua
success = C_CVar.SetCVarBitfield(name, index, value)
```

Arguments:
- `name`: cstring
- `index`: luaIndex
- `value`: bool

Returns:
- `success`: bool

### C_CVar.SetTempCVar

```lua
C_CVar.SetTempCVar(name, [value])
```

Arguments:
- `name`: cstring
- `value`: cstring, may be nil

## Tables

### CVarInfo (structure)

- `value`: cstring
- `defaultValue`: cstring
- `isStoredServerAccount`: bool
- `isStoredServerCharacter`: bool
- `isLockedFromUser`: bool
- `isSecure`: bool
- `isReadOnly`: bool

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
