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.

sv_ladder_slack_z_mult

CS2 Only

Command

sv_ladder_slack_z_mult

<Multiplier>

Adjusts how much the ladder's vertical position shifts towards the middle, affecting vertical movement on a slack ladder.

Command Details

sv_lan

CS2 and CSGO

Command

sv_lan

<0 / 1>

Sets the server to LAN mode or normal mode. LAN servers disable heartbeat, Steam authentication, and restrict connections to class C IP addresses. Default is 0 (normal server).

Command Details

sv_late_commands_allowed

CS2 Only

Command

sv_late_commands_allowed

<Number of allowed late commands>

Sets how many late commands can run at 0 timescale before the next on-time command executes. Supports negative values to enable network round trip calculations, capped by the absolute value.

Command Details

sv_lightquery_debug

CS2 Only

Command

sv_lightquery_debug

<0 / 1>

Toggle lighting debug mode to help developers troubleshoot lighting issues in the game environment on the server.

Command Details

sv_load_random_client_names_file

CS2 and CSGO

Command

sv_load_random_client_names_file

<File Name>

Loads the specified file containing random client names.

Command Details

sv_logbans

CS2 and CSGO

Command

sv_logbans

<0 / 1>

Enable this command to log all server bans in the server log. By default, ban logging is off.

Command Details

sv_logblocks

CS2 and CSGO

Command

sv_logblocks

<0 / 1>

Enable logging to record when server queries are blocked. Off by default to prevent large log files, but turning it on helps track blocked queries.

Command Details

sv_logecho

CS2 and CSGO

Command

sv_logecho

<0 / 1>

Controls whether text saved to the log file is also displayed in the console. Enabled by default.

Command Details

sv_logfile

CS2 and CSGO

Command

sv_logfile

<0 / 1>

Enable or disable logging of server information in the log file. By default, logging is enabled (1). Set to 0 to stop logging server info.

Command Details

sv_logflush

CS2 and CSGO

Command

sv_logflush

<0 / 1>

Controls if the log file is saved to disk immediately whenever a new entry is logged. By default, the log file saves periodically to reduce lag. Enabling this can cause performance issues.

Command Details