CS2 Server Commands

Commands in this category can be used to change server and host settings like IP addresses, query settings, etc. They're useful in private servers, dedicated servers and for use as rcon commands.

script_resurrect_unreachable

CS2 Only

Command

script_resurrect_unreachable

Runs the garbage collector on the server to detect and manage unreachable reference cycles, helping with debugging and optimization. This cheat-protected command is intended for development and testing environments.

Command Details

script_trace_disable_all

CS2 Only

Command

script_trace_disable_all

Turns off all script trace output to keep the console clear while debugging.

Command Details

script_trace_disable_key

CS2 Only

Command

script_trace_disable_key

<Table/Instance>

Disable trace outputs from a specific table or instance to help debug scripted elements on the server.

Command Details

script_trace_enable_all

CS2 Only

Command

script_trace_enable_all

<0 / 1>

Enable or disable all script trace outputs to see detailed information about script execution. This server-side command requires cheat mode to be enabled and helps with debugging.

Command Details

script_trace_enable_key

CS2 Only

Command

script_trace_enable_key

<Table/Instance Name>

Enable detailed script tracing by specifying a script table or instance name. This helps debug script actions and behaviors.

Command Details

sc_setclassflags

CS2 Only

Command

sc_setclassflags

<Classname><Value>

Sets specific flags for an object class to change its behavior or properties at a low level.

Command Details

sc_showclasses

CS2 Only

Command

sc_showclasses

Lists all object class names recognized by the game's scene system. Mainly used for debugging and development.

Command Details

servercfgfile

CS2 and CSGO

Command

servercfgfile

<Config File Name>

Set the server’s configuration file to the specified config file.

Command Details

server_snd_cast

CS2 Only

Command

server_snd_cast

<Disable / Enable>

Casts a ray from the player's position and triggers a sound at the first point it hits on an object or terrain. The sound repeats periodically while the command is active. Used for testing and development on the server side.

Command Details

shatterglass_break

CS2 Only

Command

shatterglass_break

Simulates breaking glass objects in the game environment.

Command Details