CS2 Console Commands
Complete reference of 252 CS2 console commands and variables across 16 categories. Search, filter, and copy any command instantly.
cl_showfps 1 — FPS countervoice_scale 0.7 — quieter teammatesfps_max 0 — uncap FPScl_radar_scale 0.35 — zoomed-out radarFull copy-paste configs ↓How to Open the Console
Click the gear icon in the top-left corner of the CS2 main menu.
Go to Game tab → find Enable Developer Console (~) → set to Yes.
In-game, press the ~ key (above Tab) to open the console. Type any command and press Enter.
Essential Commands
Must-know commands every CS2 player should have in their toolkit.
| Command | Description | Default | |
|---|---|---|---|
quit | Immediately closes CS2 | — | |
disconnect | Disconnects from the current server | — | |
retry | Reconnects to the last server | — | |
exec | Executes a config file (e.g. exec autoexec) | — | |
host_writeconfig | Saves current settings to config.cfg | — | |
bind | Binds a key to a command (e.g. bind "f" "+use") | — | |
unbind | Removes a key binding | — | |
unbindall | Removes all key bindings — use with caution | — | |
alias | Creates a shortcut name for a sequence of commands | — | |
echo | Prints text to the console (useful in configs for labels) | — | |
clear | Clears the console output | — | |
status | Shows server info, connected players, and your SteamID | — | |
ping | Shows your current ping to the server | — | |
version | Shows the current CS2 build version | — | |
maps | Lists all available maps on the server | — |
Crosshair
Customize every aspect of your crosshair appearance.
| Command | Description | Default | |
|---|---|---|---|
cl_crosshairstyle | Crosshair style (0 = default, 1 = static classic, 2 = dynamic classic, 3 = dynamic, 4 = static, 5 = legacy) | 0 | |
cl_crosshairsize | Length of the crosshair lines | 2.5 | |
cl_crosshairgap | Gap between crosshair lines and center (-5 to 5) | 0 | |
cl_crosshairthickness | Thickness of the crosshair lines | 0.5 | |
cl_crosshaircolor | Crosshair color preset (1=green, 2=yellow, 3=blue, 4=cyan, 5=custom RGB) | 1 | |
cl_crosshaircolor_r | Custom crosshair red value (0-255) | 50 | |
cl_crosshaircolor_g | Custom crosshair green value (0-255) | 250 | |
cl_crosshaircolor_b | Custom crosshair blue value (0-255) | 50 | |
cl_crosshairalpha | Crosshair opacity (0-255, 255 = fully opaque) | 200 | |
cl_crosshairdot | Show center dot (0 = off, 1 = on) | 0 | |
cl_crosshair_t | T-shaped crosshair — removes top line (0 = off, 1 = on) | 0 | |
cl_crosshair_drawoutline | Draw outline around crosshair (0 = off, 1 = on) | 0 | |
cl_crosshair_outlinethickness | Thickness of the crosshair outline | 1 | |
cl_crosshair_sniper_width | Width of the sniper scope crosshair line | 1 | |
cl_crosshair_sniper_show_normal_inaccuracy | Show movement inaccuracy on sniper crosshair | 0 | |
cl_crosshairgap_useweaponvalue | Use weapon-specific gap values for dynamic crosshair | 0 | |
cl_crosshair_friendly_warning | Crosshair warning when aiming at teammates (0=off, 1=flash, 2=icon) | 1 | |
cl_crosshair_recoil | Crosshair follows recoil pattern (0=off, 1=on) | 1 |
Viewmodel & HUD
Adjust your weapon viewmodel position and HUD display settings.
| Command | Description | Default | |
|---|---|---|---|
viewmodel_fov | Viewmodel field of view (54-68) | 60 | |
viewmodel_offset_x | Viewmodel horizontal offset (-2.5 to 2.5) | 2.5 | |
viewmodel_offset_y | Viewmodel depth offset (-2 to 2) | 0 | |
viewmodel_offset_z | Viewmodel vertical offset (-2 to 2) | -1.5 | |
viewmodel_presetpos | Viewmodel preset (1=desktop, 2=couch, 3=classic) | 1 | |
switchhands | Toggle the weapon between right and left hand (also bound to H by default) | — | |
cl_prefer_lefthanded | Hold weapons left-handed (true) or right-handed (false) — the CS2 replacement for cl_righthand | false | |
cl_bobamt_lat | Weapon bob amount — lateral movement | 0.4 | |
cl_bobamt_vert | Weapon bob amount — vertical movement | 0.25 | |
cl_bob_lower_amt | How much the viewmodel lowers when running | 21 | |
cl_bobcycle | Bob cycle speed | 0.98 | |
cl_usenewbob | Use the newer weapon bob animation — set false to revert to the flatter classic bob (the main "screen shake" fix) | true | |
cl_showfps | Show FPS counter (0=off, 1=FPS, 2=FPS+frametime) | 0 | |
cl_showpos | Show position, velocity, and angles on screen | 0 | |
cq_netgraph | Not a CS2 command — no such convar exists. For a live network readout use the Telemetry section under Settings → Game | n/a | |
cl_drawhudSV | Toggle the entire HUD on or off | 1 | |
cl_draw_only_deathnoticesSV | Only show kill feed — hide rest of HUD | 0 | |
hud_scaling | HUD scale size (0.5-0.95) | 0.85 | |
cl_hud_color | HUD accent color (0-10: default, white, blue, purple, green, etc.) | 0 | |
cl_hud_background_alpha | HUD background transparency (0.0-1.0) | 0.5 | |
cl_hud_healthammo_style | Health/ammo HUD style (0=default, 1=simple) | 0 | |
cl_hud_playercount_showcount | Show player count as number (1) or avatars (0) | 0 | |
cl_hud_playercount_pos | Player count position (0=top, 1=bottom) | 0 | |
cl_showloadout | Always show weapon loadout panel (0=auto-hide, 1=always) | 1 | |
safezonex | Horizontal HUD safe zone (0.85-1.0) | 1.0 | |
safezoney | Vertical HUD safe zone (0.85-1.0) | 1.0 |
Mouse & Sensitivity
Fine-tune mouse input, sensitivity, and acceleration.
| Command | Description | Default | |
|---|---|---|---|
sensitivity | Mouse sensitivity value (typically 0.5-4.0) | 2.5 | |
zoom_sensitivity_ratio | Scoped sensitivity multiplier (relative to hip-fire) | 1.0 | |
m_rawinput | Removed in CS2 — the console returns "Unknown command". Raw input is now always on at the engine level and cannot be turned off | n/a | |
m_yaw | Mouse yaw (horizontal) sensitivity factor | 0.022 | |
m_pitch | Mouse pitch (vertical) sensitivity factor | 0.022 | |
m_customaccel | Custom mouse acceleration mode (0=off, 1=on) | 0 | |
m_customaccel_exponent | Mouse acceleration exponent (if enabled) | 1.05 |
Movement
Commands related to player movement, jumping, and crouching.
| Command | Description | Default | |
|---|---|---|---|
+forward | Move forward (default: W) | — | |
+back | Move backward (default: S) | — | |
+moveleft | Strafe left (default: A) | — | |
+moveright | Strafe right (default: D) | — | |
+jump | Jump (default: Space) | — | |
+duck | Crouch/duck (default: Ctrl) | — | |
+sprint | Walk/shift-walk for silent movement (default: Shift) | — | |
cl_forcepreload | Preload all map resources at load time | 0 | |
sv_autobunnyhoppingSV | Auto-bunny hop when holding jump (hold space) | 0 | |
sv_enablebunnyhoppingSV | Remove bunny hop speed cap | 0 | |
sv_maxspeedSV | Maximum player movement speed | 320 | |
sv_stamina_maxSV | Maximum stamina penalty (affects jump height) | 80 | |
sv_stamina_recovery_rateSV | Rate at which stamina recovers | 60 | |
sv_staminajumpcostSV | Stamina cost per jump | 0.08 | |
sv_wateraccelerateSV | Water acceleration speed | 10 | |
cl_showpos | Display position and velocity overlay (useful for movement practice) | 0 |
Radar & Minimap
Customize the radar display, zoom, rotation, and icons.
| Command | Description | Default | |
|---|---|---|---|
cl_radar_scale | Radar zoom level (0.25-1.0, lower = more zoomed out) | 0.7 | |
cl_radar_always_centered | Keep player centered on radar (0=off gives wider view) | 1 | |
cl_radar_rotate | Radar rotates with player view (0=fixed north, 1=rotate) | 1 | |
cl_radar_icon_scale_min | Minimum icon size on radar | 0.6 | |
cl_hud_radar_scale | Radar HUD element size | 1.0 | |
cl_radar_square_with_scoreboard | Show square radar when scoreboard is open | 1 |
Network & Connection
Optimize your network settings for lower latency and smoother gameplay.
| Command | Description | Default | |
|---|---|---|---|
rate | Min bytes/sec the host can receive data. Exposed in-game as "Max Acceptable Game Traffic Bandwidth"; 786432 is the Unrestricted option | 786432 | |
cl_interp_ratio | Client interpolation ticks. CS2 ships an override of 0 in gameinfo.gi (the engine default is 2); it is driven by cl_net_buffer_ticks and Valve says not to set it directly | 0 | |
cl_interp | Read-only in CS2 — reports the effective interpolation amount. Not a setting you tune | n/a | |
cl_cmdrate | Not a CS2 command — removed with Source 2. Sub-tick replaced the CS:GO rate model | n/a | |
cl_updaterate | Not a CS2 command — removed with Source 2. Sub-tick replaced the CS:GO rate model | n/a | |
mm_dedicated_search_maxping | Maximum acceptable ping for matchmaking servers | 150 | |
cl_timeout | Seconds before disconnecting from an unresponsive server | 30 | |
net_graph | Removed in CS2 — the CS:GO overlay no longer exists. Its replacement is the Telemetry section under Settings → Game (ping, loss, frame time) | n/a | |
net_graphproportionalfont | Not a CS2 command — went with net_graph when Source 2 landed | n/a | |
cl_predict | Not a CS2 command — only cl_predict_* sub-variants exist. Prediction is not user-toggleable | n/a | |
cl_lagcompensation | Not a CS2 command — lag compensation is not user-toggleable in CS2 | n/a |
Audio & Sound
Adjust volume levels, 3D audio, and audio output settings.
| Command | Description | Default | |
|---|---|---|---|
volume | Master volume (0.0-1.0) | 1.0 | |
snd_roundstart_volume | Round start music volume (0.0-1.0) | 0.04 | |
snd_roundend_volume | Round end music volume (0.0-1.0) | 0.04 | |
snd_deathcamera_volume | Death camera music volume | 0.0 | |
snd_mvp_volume | MVP anthem volume | 0.03 | |
snd_tensecondwarning_volume | Ten-second bomb warning volume | 0.05 | |
snd_menumusic_volume | Main menu music volume | 0.03 | |
snd_mapobjective_volume | Map objective sound volume (bomb plant/defuse) | 0.04 | |
snd_headphone_pan_exponent | Headphone panning curve exponent | 1.0 | |
snd_headphone_pan_radial_weight | Headphone spatial weight for radial panning | 1.0 | |
snd_front_headphone_position | Front speaker position for headphone virtualization | 90.0 | |
snd_rear_headphone_position | Rear speaker position for headphone virtualization | 90.0 | |
snd_mute_losefocus | Mute audio when CS2 is not the active window | 1 | |
voice_scale | Teammate voice chat volume scale | 1.0 | |
voice_enable | Enable voice communication (0=off, 1=on) | 1 | |
voice_modenable | Enable open mic mode | 1 | |
cl_mute_enemy_team | Mute enemy team voice and text chat | 0 | |
cl_mute_all_but_friends_and_party | Only allow communication from friends and matchmaking party members. 0 = off, 1 = non-competitive modes only, 2 = all modes | 0 |
Graphics & Performance
Optimize visual settings and FPS performance.
| Command | Description | Default | |
|---|---|---|---|
fps_max | Maximum framerate cap (0 = unlimited) | 400 | |
fps_max_ui | Maximum framerate in menus/UI | 120 | |
r_dynamic | Enable dynamic lighting (0=off for FPS boost) | 1 | |
r_drawtracers_firstperson | Show bullet tracers in first person (0=off) | 1 | |
r_drawparticlesSV | Draw particle effects | 1 | |
mat_queue_mode | Material threading mode (-1=auto, 0=sync, 2=multi-core) | -1 | |
cl_forcepreload | Force preload all assets at map load | 0 | |
mat_disable_bloom | Disable bloom/glow effects | 0 | |
engine_low_latency_sleep_after_client_tick | Reduce input latency by sleeping after client tick | true | |
cl_animate_player_models | Animate player models in menus | 1 | |
r_fullscreen_gamma | Fullscreen gamma value | 2.2 |
Weapon & Shooting
Weapon behavior, buy commands, and shooting-related settings.
| Command | Description | Default | |
|---|---|---|---|
cl_autowepswitch | Auto-switch to picked up weapons (0=off, 1=on) | 1 | |
cl_use_opens_buy_menu | Use key opens buy menu in buy zone (0=off) | 1 | |
closeonbuy | Close buy menu after purchasing (0=stay open) | 0 | |
cl_autohelp | Show automatic help/hint messages | 1 | |
cl_showhelp | Show on-screen help tips | 1 | |
buy | Buy a weapon (e.g. buy ak47, buy vesthelm) | — | |
slot1 | Switch to primary weapon | — | |
slot2 | Switch to secondary weapon (pistol) | — | |
slot3 | Switch to knife | — | |
slot4 | Switch to grenades | — | |
slot5 | Switch to C4 / defuse kit | — | |
lastinv | Switch to last used weapon (quick-switch) | — | |
invnext | Cycle to next weapon in inventory | — | |
invprev | Cycle to previous weapon in inventory | — | |
+reload | Reload current weapon | — | |
drop | Drop the currently held weapon | — | |
cl_crosshair_recoil | Crosshair follows recoil (0=static, 1=follows spray) | 1 |
Practice & Training
Commands for private practice servers — most require sv_cheats 1.
| Command | Description | Default | |
|---|---|---|---|
sv_cheats | Enable cheat-protected commands (0=off, 1=on) | 0 | |
noclipSV | Toggle fly mode — pass through walls and terrain | — | |
godSV | Toggle invincibility (god mode) | — | |
sv_infinite_ammoSV | Infinite ammo (1=infinite reserve, 2=no reload needed) | 0 | |
sv_grenade_trajectorySV | Show grenade flight path lines | 0 | |
sv_grenade_trajectory_timeSV | How long trajectory lines stay visible (seconds) | 20 | |
sv_grenade_trajectory_prac_pipreviewSV | Show grenade landing preview while holding | 0 | |
sv_grenade_trajectory_prac_trailtimeSV | Trail time for practice grenade trajectories | 10 | |
sv_showimpactsSV | Show bullet impact points (1=both, 2=client, 3=server) | 0 | |
sv_showimpacts_timeSV | How long impact markers stay visible (seconds) | 4 | |
sv_showbullethitsSV | Show bullet hit visualization on players | 0 | |
giveSV | Give yourself a weapon or item (e.g. give weapon_ak47) | — | |
mp_damage_print_enable | Not a CS2 command — the CS:GO console damage print (sv_damage_print_enable) was removed. CS2 shows damage in the round end report instead; toggle it with cl_disable_round_end_report | n/a | |
cl_grenadepreviewSV | Show grenade trajectory preview while aiming | 0 | |
sv_rethrow_last_grenadeSV | Re-throws the last grenade you threw | — | |
mp_buy_anywhere | Allow buying weapons anywhere on the map (1=on) | 0 | |
mp_buytime | Buy time in seconds after round start | 20 | |
mp_startmoney | Starting money at the beginning of the match | 800 | |
mp_maxmoney | Maximum money a player can hold | 16000 | |
mp_afterroundmoney | Money given after every round regardless of outcome | 0 | |
mp_roundtime | Round time in minutes | 1.92 | |
mp_roundtime_defuse | Round time for defuse maps in minutes | 1.92 | |
mp_freezetime | Freeze time at round start in seconds (0 = none) | 15 | |
mp_warmuptime | Warmup duration in seconds | 90 | |
mp_warmup_end | Immediately end the warmup period | — | |
mp_restartgame | Restart the game after N seconds (e.g. mp_restartgame 1) | — | |
mp_respawn_on_death_ct | CTs auto-respawn on death (1=on) | 0 | |
mp_respawn_on_death_t | Terrorists auto-respawn on death (1=on) | 0 | |
mp_respawn_immunitytime | Seconds of spawn protection | 4 | |
sv_regeneration_force_onSV | Force health regeneration | 0 | |
ent_fireSV | Fire an entity input (advanced map manipulation) | — |
Bot Commands
Add, remove, and control bots in private/practice matches.
| Command | Description | Default | |
|---|---|---|---|
bot_add | Add a bot to the game (auto team balance) | — | |
bot_add_t | Add a bot to the Terrorist team | — | |
bot_add_ct | Add a bot to the Counter-Terrorist team | — | |
bot_kick | Kick all bots from the server | — | |
bot_stopSV | Freeze all bots in place (1=frozen, 0=normal) | 0 | |
bot_mimicSV | Bots mimic player movements (1=on) | 0 | |
bot_crouchSV | Force bots to crouch (1=on) | 0 | |
bot_placeSV | Place a bot at your crosshair position | — | |
bot_difficulty | Bot difficulty level (0=easy, 1=normal, 2=hard, 3=expert) | 1 | |
bot_dont_shootSV | Prevent bots from shooting (1=no shooting) | 0 | |
bot_knives_onlySV | Bots use only knives (1=on) | 0 | |
bot_zombieSV | Bots stand still and don't react (1=on) | 0 | |
bot_quota | Maximum number of bots allowed | 10 | |
bot_quota_mode | Bot fill mode (normal, fill, match) | normal |
Server & Match
Server administration and match settings for private servers.
| Command | Description | Default | |
|---|---|---|---|
changelevel | Change to a different map (e.g. changelevel de_mirage) | — | |
map | Load a map and restart the server (e.g. map de_dust2) | — | |
game_mode | Set game mode (0=casual, 1=competitive, 2=wingman) | 0 | |
game_type | Set game type (0=classic, 1=arms race, etc.) | 0 | |
mp_autoteambalance | Auto-balance teams (0=off, 1=on) | 1 | |
mp_limitteams | Max player imbalance between teams (0=no limit) | 2 | |
mp_timelimit | Time limit per map in minutes (0=none) | 0 | |
mp_maxrounds | Max rounds per half | 30 | |
mp_overtime_enable | Enable overtime in competitive (1=on) | 0 | |
mp_overtime_maxrounds | Max rounds in overtime | 6 | |
mp_halftime | Enable halftime (1=on) | 1 | |
mp_friendlyfire | Enable friendly fire (0=off, 1=on) | 1 | |
mp_solid_teammates | Teammates block each other (0=pass through, 1=solid) | 1 | |
mp_autokick | Auto-kick idle players and team killers | 1 | |
sv_password | Server password (empty = public) | — | |
sv_lan | Run server in LAN mode only (1=LAN) | 0 | |
hostname | Set the server name displayed in browser | — | |
rcon_password | Remote console password for server administration | — | |
rcon | Execute a remote console command (e.g. rcon sv_cheats 1) | — | |
kick | Kick a player by name or userid | — |
Demo & Recording
Record and playback demos for review or content creation.
| Command | Description | Default | |
|---|---|---|---|
record | Start recording a demo (e.g. record mydemo) | — | |
stop | Stop recording the current demo | — | |
playdemo | Play back a recorded demo file | — | |
demoui | Open the demo playback control UI | — | |
demo_pause | Pause demo playback | — | |
demo_resume | Resume demo playback | — | |
demo_timescale | Demo playback speed multiplier (0.25=quarter, 2=double) | 1 | |
demo_goto | Skip to a specific tick number in the demo | — | |
spec_show_xray | Toggle X-ray outline view in spectate/demo | 0 | |
cl_draw_only_deathnoticesSV | Only show kill feed — hide HUD (for movie making) | 0 | |
cl_drawhudSV | Hide entire HUD for clean screenshots/recordings | 1 | |
sv_skynameSV | Change the skybox texture (for cinematic shots) | — | |
fog_overrideSV | Override fog settings (1=enable custom fog) | 0 | |
fog_enableSV | Enable or disable fog (0=off, 1=on) | 1 | |
screenshot | Flagged developmentonly in CS2 — unavailable in a retail client. Use F12 (Steam overlay) instead | n/a |
Communication
Voice chat, text chat, and team communication commands.
| Command | Description | Default | |
|---|---|---|---|
+voicerecord | Push-to-talk voice chat (bind to a key) | — | |
say | Send a message to all players | — | |
say_team | Send a message to your team only | — | |
cl_mute_enemy_team | Mute all enemy voice and text chat | 0 | |
cl_mute_all_but_friends_and_party | Only allow communication from friends and matchmaking party members. 0 = off, 1 = non-competitive modes only, 2 = all modes | 0 | |
voice_enable | Enable or disable voice chat entirely | 1 | |
voice_scale | Volume of other players' voice chat (0.0-1.0) | 1.0 | |
ignoremsg | Cycle chat filter (all → team only → none → all) | — | |
player_ping | Ping a location for teammates (default: mouse wheel click) | — | |
cl_show_clan_in_death_notice | Show clan tags in the kill feed | 1 | |
cl_clanid | Set your clan tag ID | — |
Utility & Misc
Miscellaneous commands for screenshots, workshop, and other features.
| Command | Description | Default | |
|---|---|---|---|
cl_downloadfilter | Not a CS2 command — CS2 has no client-download convars, so servers cannot ship custom files | n/a | |
cl_disablehtmlmotd | Not a CS2 command — the HTML MOTD window was removed with Source 2 and no MOTD assets ship in the client | n/a | |
cl_join_advertise | Advertise joinable game in progress to Steam friends (2 = all servers, 1 = official servers, 0 = none) | 1 | |
gameinstructor_enable | Enable in-game tips and tutorials (0=off) | 1 | |
r_cleardecals | Not a CS2 command — a Source 1 leftover, absent from both CS2 dumps despite appearing in many practice configs | n/a | |
cl_color | Preferred team color (0=yellow, 1=purple, 2=green, 3=blue, 4=orange) | 0 | |
cl_teammate_colors_show | Show unique teammate colors (0=off, 1=on, 2=letters) | 1 | |
con_filter_enable | Enable console output filtering (1=highlight, 2=show only matches) | 0 | |
con_filter_text | Console filter text — only show lines containing this string | — | |
developer | Enable developer messages in console (0=off, 1=on, 2=verbose) | 0 | |
map_workshop | Load a workshop map by its ID | — | |
workshop_subscribe | Subscribe to a workshop item by ID | — | |
toggle | Toggle a cvar between values (e.g. toggle cl_showfps 0 1) | — | |
incrementvar | Increment a cvar (e.g. incrementvar volume 0 1 0.1) | — | |
cl_allowdownload | Allow downloading resources from servers | 1 | |
cl_allowupload | Allow uploading your spray/resources to servers | 1 |
Quick Copy Configs
Common command combinations ready to paste into your console or autoexec.cfg.
Practice Server Setup
sv_cheats 1
sv_infinite_ammo 1
sv_grenade_trajectory 1
sv_grenade_trajectory_time 10
sv_showimpacts 1
mp_warmup_end
mp_freezetime 0
mp_roundtime_defuse 60
mp_buy_anywhere 1
mp_buytime 9999
mp_maxmoney 65535
mp_startmoney 65535
mp_respawn_on_death_ct 1
mp_respawn_on_death_t 1
bot_kickFPS Optimization
fps_max 0
fps_max_ui 120
r_drawtracers_firstperson 0
cl_forcepreload 1
cl_animate_player_models 0
engine_low_latency_sleep_after_client_tick true
gameinstructor_enable 0
cl_autohelp 0
cl_showhelp 0Competitive Network
rate 786432
cl_interp_ratio 1
cl_interp 0
cl_cmdrate 128
cl_updaterate 128
mm_dedicated_search_maxping 80Clean HUD for Content
cl_drawhud 0
cl_draw_only_deathnotices 1
sv_skyname vertigoblue_hdr
fog_override 1
fog_enable 0
r_drawparticles 0Pro Radar Settings
cl_radar_scale 0.35
cl_radar_always_centered 0
cl_radar_rotate 1
cl_radar_icon_scale_min 0.5
cl_hud_radar_scale 1.15
cl_radar_square_with_scoreboard 1Audio Optimization
volume 0.4
snd_roundstart_volume 0
snd_roundend_volume 0
snd_deathcamera_volume 0
snd_mvp_volume 0
snd_menumusic_volume 0
snd_tensecondwarning_volume 0.1
snd_mute_losefocus 1
voice_scale 0.7Frequently Asked Questions
- How do I open the console in CS2?
- Open Settings → Game → Enable Developer Console (~) → set to "Yes". Then press the tilde key (~) during a game to open the console. You can type any command directly into the console.
- What is the difference between a command and a cvar?
- Commands execute an action immediately (like "quit" or "noclip"). Cvars (console variables) store a value that changes a setting (like "sensitivity 2.5" or "cl_showfps 1"). Cvars persist between sessions if saved with host_writeconfig.
- Do console commands work in competitive matchmaking?
- Most client-side commands (cl_, hud_, crosshair) work everywhere. Server-side commands (sv_, mp_) only work on servers where you have admin access or in offline/private matches. Commands requiring sv_cheats 1 are blocked in competitive.
- How do I save my console settings permanently?
- Create an autoexec.cfg file in your CS2 cfg folder (Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/) and add your commands there. End the file with host_writeconfig. These commands run automatically every time CS2 launches.
- What does sv_cheats 1 do?
- sv_cheats 1 enables cheat-protected commands on the server. This is required for practice commands like noclip, god mode, and grenade trajectory. It only works in private/offline matches and disables achievements while active.
- Can I get banned for using console commands?
- No. Console commands are a built-in feature of CS2. You cannot get VAC banned for using any console command. Cheat-protected commands simply won't execute on official servers.