crosshair
Shows or hides your crosshair. Default: 1
crosshair 0
159 useful CS2 console commands explained in plain English: what each one does, its values, its default and ready-to-copy examples. Commands from CS:GO that no longer work are marked Removed in CS2. Updated 19/10/2026.
Shows or hides your crosshair. Default: 1
crosshair 0
Length of each crosshair line, in pixels.
cl_crosshair_length 2
Thickness of the crosshair lines, in pixels.
cl_crosshair_thickness 1
Space between the center and the crosshair lines, in pixels.
cl_crosshair_gap 1
Screen height the crosshair sizes are designed for.
cl_crosshair_screen_height 1080
Chooses a static or dynamic crosshair. Default: 2
cl_crosshairstyle 4
Red part of a custom crosshair color (0-255).
cl_crosshaircolor_r 0; cl_crosshaircolor_g 255; cl_crosshaircolor_b 255
Green part of a custom crosshair color (0-255).
cl_crosshaircolor_g 255
Blue part of a custom crosshair color (0-255).
cl_crosshaircolor_b 255
Opacity of the crosshair (0-255).
cl_crosshaircolor_a 255
Adds an outline around the crosshair.
cl_crosshair_drawoutline 1
Red part of the outline color (0-255).
cl_crosshairoutline_r 0; cl_crosshairoutline_g 0; cl_crosshairoutline_b 0; cl_crosshairoutline_a 255
Opacity of the crosshair outline (0-255).
cl_crosshairoutline_a 255
Adds a dot in the center of the crosshair.
cl_crosshairdot 0
T-style crosshair (removes the top line).
cl_crosshair_t 1
Makes the crosshair follow your recoil.
cl_crosshair_recoil 0
Split distance of the dynamic crosshair (style 2).
cl_crosshair_dynamic_splitdist 7
Opacity of the inner part of the dynamic crosshair.
cl_crosshair_dynamic_splitalpha_innermod 1
Opacity of the outer part of the dynamic crosshair.
cl_crosshair_dynamic_splitalpha_outermod 0.5
Size ratio between the inner and outer dynamic parts.
cl_crosshair_dynamic_maxdist_splitratio 0.35
Size of the scope dot on the AUG and SG 553.
cl_ironsight_dot_scale 1
Uses your crosshair color for the AUG / SG 553 scope dot.
cl_ironsight_usecrosshaircolor 1
Thickness of the sniper scope lines. Default: 1
cl_crosshair_sniper_width 2
Warning icon when you aim at a teammate. Default: 1
cl_crosshair_friendly_warning 0
Old crosshair length setting, still in the console.
cl_crosshair_length 2
Old crosshair thickness setting, still in the console.
cl_crosshair_thickness 2
Removed in CS2: replaced by cl_crosshair_gap.
cl_crosshair_gap 1
Removed in CS2: the outline is set with new commands.
cl_crosshair_drawoutline 1
Removed in CS2: the preset colors are gone.
cl_crosshaircolor_r 0; cl_crosshaircolor_g 255; cl_crosshaircolor_b 255
Old crosshair opacity setting, still in the console.
cl_crosshaircolor_a 255
Color of the HUD (health, ammo, money...).
cl_hud_color 1
Size of the HUD.
hud_scaling 0.85
Size of the radar on screen. Default: 1
cl_hud_radar_scale 1.15
Zoom level of the radar. Default: 0.7
cl_radar_scale 0.35
Keeps you in the center of the radar. Default: 1
cl_radar_always_centered 0
Rotates the radar with your view. Default: 1
cl_radar_rotate 0
Minimum size of icons on the radar. Default: 0.6
cl_radar_icon_scale_min 0.8
Square radar when the scoreboard is open. Default: 1
cl_radar_square_with_scoreboard 1
Shows your FPS on screen. Default: 0
cl_showfps 1
Shows your position and view angles (cheat). Default: 0
sv_cheats 1; cl_showpos 1
Shows network command queue statistics. Default: 0
cq_netgraph 1
Always shows your weapons on the right of the screen.
cl_showloadout 1
Hides the HUD except the crosshair and kill feed. Default: 0
cl_draw_only_deathnotices 1
Hides the whole HUD (cheat). Default: 1
sv_cheats 1; cl_drawhud 0
Moves the HUD inward horizontally.
safezonex 0.9
Moves the HUD inward vertically.
safezoney 0.9
What you see above your teammates' heads. Default: 2
cl_teamid_overhead_mode 1
Teammate colors in competitive. Default: 1
cl_teammate_colors_show 2
Shows FPS and frame time on screen (telemetry).
cl_hud_telemetry_frametime_show 2
Shows your ping on screen (telemetry).
cl_hud_telemetry_ping_show 2
How far your weapon model is from the camera. Default: 60
viewmodel_fov 68
Moves the weapon left or right. Default: 1
viewmodel_offset_x 2.5
Moves the weapon forward or back. Default: 1
viewmodel_offset_y 0
Moves the weapon up or down. Default: -1
viewmodel_offset_z -1.5
Preset weapon positions. Default: 1
viewmodel_presetpos 3
Hides your weapon model (cheat). Default: 1
sv_cheats 1; r_drawviewmodel 0
Caps your frame rate. Default: 400
fps_max 0
Caps your frame rate in menus. Default: 120
fps_max_ui 60
Screen brightness in fullscreen. Default: 2.2
r_fullscreen_gamma 2
Low latency tweak used with NVIDIA Reflex. Default: 0
engine_low_latency_sleep_after_client_tick 1
Shows the game version text in the corner. Default: 1
r_show_build_info 0
Removed in CS2: replaced by r_fullscreen_gamma.
r_fullscreen_gamma 2
Maximum data your connection can receive. Default: 786432
rate 786432
Highest ping allowed when searching for a match. Default: 150
mm_dedicated_search_maxping 60
Uses or avoids Valve's relay network. Default: 0
net_client_steamdatagram_enable_override 1
Prints server and player information.
status
Server-side lag compensation. Default: 1
cl_lagcompensation 1
Removed in CS2: the old CS:GO network graph.
cl_hud_telemetry_frametime_show 2
Shows the interpolation used by the game.
cl_interp
Interpolation ratio, managed by CS2. Default: 0
cl_interp_ratio 0
Removed in CS2: the update rate is fixed by the server.
Removed in CS2: the command rate is fixed.
Your mouse sensitivity. Default: 2.5
sensitivity 1.2
Mouse sensitivity when scoped. Default: 1
zoom_sensitivity_ratio 0.9
Horizontal mouse speed factor. Default: 0.022
m_yaw 0.022
Vertical mouse speed factor. Default: 0.022
m_pitch 0.022
Removed in CS2: raw mouse input is always on.
sensitivity 1.2
Removed in CS2: no mouse acceleration setting.
Main game volume.
volume 0.5
Volume of your teammates' voices. Default: 1
snd_voipvolume 0.6
Volume of the menu music.
snd_menumusic_volume 0
Volume of the round start music.
snd_roundstart_volume 0
Volume of the MVP music.
snd_mvp_volume 0.1
Volume of the 10-second bomb warning.
snd_tensecondwarning_volume 0.2
Volume of the bomb and hostage music.
snd_mapobjective_volume 0.1
Volume of the death camera sound.
snd_deathcamera_volume 0
Mutes the game when you alt-tab.
snd_mute_losefocus 0
Headphone equalizer preset. Default: 0
snd_headphone_eq 1
Removed in CS2: replaced by snd_voipvolume.
snd_voipvolume 0.6
Enables cheat commands on your server. Default: 0
sv_cheats 1
Infinite ammo and grenades. Default: 0
sv_cheats 1; sv_infinite_ammo 1
Live preview of where your grenade will land. Default: 0
sv_grenade_trajectory_prac_pipreview 1
Shows the path of thrown grenades. Default: 0
sv_grenade_trajectory_prac_trailtime 10
Throws your last grenade again.
sv_rethrow_last_grenade
Shows where your bullets hit. Default: 0
sv_showimpacts 1
How long bullet impacts stay visible. Default: 4
sv_showimpacts_time 10
Length of a round on bomb maps, in minutes. Default: 2.25
mp_roundtime_defuse 60
Freeze time at the start of a round, in seconds. Default: 5
mp_freezetime 0
Ends the warmup immediately.
mp_warmup_end
Stays in warmup forever. Default: 0
mp_warmup_pausetimer 1
Restarts the match.
mp_restartgame 1
Lets you buy anywhere on the map. Default: 0
mp_buy_anywhere 1
How long you can buy after the round starts. Default: 45
mp_buytime 9999
Maximum money a player can have. Default: 10000
mp_maxmoney 60000
Money each player starts with. Default: 1000
mp_startmoney 60000
Terrorists respawn after dying. Default: 0
mp_respawn_on_death_t 1
Counter-Terrorists respawn after dying. Default: 0
mp_respawn_on_death_ct 1
Rounds never end. Default: 0
mp_ignore_round_win_conditions 1
Maximum player difference between teams. Default: 2
mp_limitteams 0
Automatic team balance. Default: 1
mp_autoteambalance 0
Allows dropping knives. Default: 0
mp_drop_knife_enable 1
Maximum grenades a player can carry. Default: 4
ammo_grenade_limit_total 5
Fly through walls (cheat).
sv_cheats 1; noclip
Makes you invulnerable (cheat).
sv_cheats 1; god
Gives you a weapon or item.
give weapon_ak47
Speeds up or slows down the game (cheat). Default: 1
host_timescale 0.5
Prints your exact position (cheat).
getpos
Teleports you to a position (cheat).
setpos 0 0 0
Removes bots from the server.
bot_kick
Adds a Terrorist bot.
bot_add_t
Adds a Counter-Terrorist bot.
bot_add_ct
Total number of bots on the server. Default: 1
bot_quota 0
Skill level of new bots. Default: 2
bot_difficulty 3
Freezes the bots' brains (cheat). Default: 0
bot_stop 1
Bots cannot move (cheat). Default: 0
bot_freeze 1
Bots never shoot (cheat). Default: 0
bot_dont_shoot 1
Places a bot where you aim (cheat).
bot_place
Bots copy your movements (cheat). Default: 0
bot_mimic 1
Bots crouch (cheat). Default: 0
bot_crouch 1
Assigns a command to a key.
bind f "+lookatweapon"
Removes a key binding.
unbind kp_end
Removes every key binding.
unbindall
Creates a custom command.
alias prac "sv_cheats 1; sv_infinite_ammo 1; mp_buy_anywhere 1"
Runs a config file.
exec autoexec
Saves your current settings.
host_writeconfig
Opens or closes the console.
bind f10 toggleconsole
Clears the console.
clear
Writes text in the console.
echo Practice config loaded
Searches commands by name or description.
find crosshair
Explains a command.
help fps_max
Joins a server by IP address.
connect 127.0.0.1:27015
Leaves the current server.
disconnect
Closes CS2.
quit
Loads a map on your own server.
map de_mirage
Changes the map on your server.
changelevel de_inferno
Kills your player (cheat).
kill
Kills your player with an explosion (cheat).
explode
Records a demo of your game.
record mymatch
Stops recording a demo.
stop
Plays a demo file.
playdemo mymatch
Opens the demo player controls.
demoui
Jumps to a moment in a demo.
demo_gototick 64000
In-game tips for new players. Default: 0
gameinstructor_enable 0
Automatic help hints.
cl_autohelp 0
Use key opens the buy menu. Default: 1
cl_use_opens_buy_menu 0
Lets friends join your games. Default: 1
cl_join_advertise 2
Random weapons in deathmatch. Default: 1
cl_dm_buyrandomweapons 0
Delays unscoping after an AWP shot. Default: 0
cl_sniper_delay_unscope 1
Inspects your weapon.
bind f +lookatweapon
Go to Settings › Game and set Enable Developer Console to Yes. Then press the ~ key (under Escape) in game to open it. If your keyboard has no ~ key, bind toggleconsole to another key.
Most commands that change your own settings (crosshair, HUD, radar, mouse, audio) work everywhere. Commands marked Needs sv_cheats, and server commands starting with mp_ or bot_, only work on a server you host, for example a private match with bots.
Put them in a file named autoexec.cfg in the game's cfg folder (game/csgo/cfg) and add +exec autoexec to your launch options, or type exec autoexec in the console.
Many CS:GO commands were removed or renamed in CS2, such as net_graph. Commands marked Removed in CS2 on this page tell you what to use instead.