spec_show_xray Command

Set this command to 1 to enable x-ray or 0 to disable it in demos and overwatch when spectating, which displays player outlines through walls.

Category
Spectator
Game
CS2 + CSGO
Scope
Local
Cheats
Not Required

Command Arguments

These are the parameters spec_show_xray uses. Required arguments must be provided for the command to work.

<0 / 1>

BoolRequired

Use 0 to turn off x-ray while spectating and 1 to turn it on.

Default: 1

Command Builder

Interactive command builder that generates a valid spec_show_xray command for in-game use.

All required arguments filled!

Generated Command

spec_show_xray 1

Command Information

Learn more about how to use spec_show_xray effectively.

Argument Data Types

Arguments can be of type String, Number, Bool, or Enum. Provide the correct type for the command to execute correctly.

Required Arguments

Arguments marked as Required must be provided for the command to work. Optional arguments can be left blank.

Command Scope

Commands can be Client-sided or Server-sided. Client-sided commands affect only your game client, while server-sided commands affect the entire server.

Cheats Required

Some commands require sv_cheats to be enabled. If a command has this requirement, it will not run on servers where cheats are disabled.