# Sandbox.ConsoleSystem.SetValue

```csharp
static void SetValue(string name, object value)
```

Try to set a console variable. You will only be able to set variables that you have permission to set.

### Parameters

- `name` (`string`)
- `value` (`object`)

Declared in [Sandbox.ConsoleSystem](/api/Sandbox.ConsoleSystem).
Assembly: `Sandbox.Engine`.
