API ReferenceSandbox
ConsoleSystemclass
A library to interact with the Console System.
object→ConsoleSystem
Methods7
Showing 7 methods
public static string GetValue(string name, string defaultValue = null)
Get a console variable's value as a string.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| defaultValue = null | string | — |
Returns:
string—public static void OnChangePropertySet(Sandbox.WrappedPropertySet`1<T> p)
| Parameter | Type | Description |
|---|---|---|
| p | WrappedPropertySet<T> | — |
Returns:
void—public static T OnWrappedGet(Sandbox.WrappedPropertyGet`1<T> p)
| Parameter | Type | Description |
|---|---|---|
| p | WrappedPropertyGet<T> | — |
Returns:
T—public static void OnWrappedSet(Sandbox.WrappedPropertySet`1<T> p)
| Parameter | Type | Description |
|---|---|---|
| p | WrappedPropertySet<T> | — |
Returns:
void—public 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.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| value | object | — |
Returns:
void—No results match this filter.