π₯οΈconsole
Functions:
execute_client_cmd
console.execute_client_cmd(command: string)
Name | Type | Description |
---|---|---|
command |
| command |
Executes a ConCommand.
print
console.print(message: string)
Name | Type | Description |
---|---|---|
message |
| message |
Outputs text to the console.
print_color
console.print_color(message: string, message_color: color)
Name | Type | Description |
---|---|---|
message |
| message |
message_color |
| message_color |
Outputs text to the console with a specific color.
get_int
console.get_int(name: string):
number
Returns the ConVar int value.
get_float
console.get_float(name: string):
number
Returns the ConVar float value.
get_bool
console.get_bool(name: string):
boolean
Returns the ConVar boolean value.
get_string
console.get_string(name: string):
string
Returns the ConVar string value.
set_int
console.set_int(name: string, var: number)
Name | Type | Description |
---|---|---|
name |
| - |
var |
| - |
Sets the ConVar int value.
set_float
console.set_float(name: string, var: number)
Name | Type | Description |
---|---|---|
name |
| - |
var |
| - |
Sets the ConVar float value.
set_bool
console.set_bool(name: string, var: boolean)
Name | Type | Description |
---|---|---|
name |
| - |
var |
| - |
Sets the ConVar boolean value.
set_string
console.set_string(name: string, var: string)
Name | Type | Description |
---|---|---|
name |
| - |
var |
| - |
Sets the ConVar string value.
Last updated