Skip to content
/SLASHPLAY

How to turn off X-ray when spectating in CS2

Type spec_show_xray 0 in your game console to stop seeing player outlines and names through walls while you spectate.

spec_show_xray

Toggles X-ray outlines and names of players through walls while you spectate.

spec_show_xray <0|1>

Examples

spec_show_xray 0

No X-ray while spectating.

Values

ValueWhat it does
0 Off
1 On

Arguments

0|1Required
1 shows X-ray, 0 hides it.

What it does

When you are dead or spectating, players are outlined through walls. Who you can see depends on your team and the game mode.

The game's own description: If set to 1, you can see player outlines and name IDs through walls - who you can see depends on your team and mode

Use it in your game

Type it in your own game console: turn on the developer console in the game's settings, then press the key under Esc. To keep it, put the line in game/csgo/cfg/autoexec.cfg.

Your own
CS2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.