Skip to content
/SLASHPLAY

How to turn on cheats on an L4D2 server

Type sv_cheats 1 in the Console tab of the server page; sv_cheats 0 turns them off and resets every cheat setting.

sv_cheats

Allows cheat commands and settings on the server, such as god, noclip, give and most Director and z_ settings. Off by default.

sv_cheats <0|1>

Examples

sv_cheats 1

Cheats on.

sv_cheats 0

Cheats off; cheat settings go back to their defaults.

Values

ValueWhat it does
0Default Off
1 On

Arguments

0|1Required
1 turns cheats on, 0 off.

What it does

Most gameplay settings in Left 4 Dead 2 count as cheats, so it's needed to tune the Director or the infected. Turn it off again for normal play.

Good to know

  • Turning it back to 0 resets every cheat setting to its default.
  • Without it, the server refuses cheat settings and says they need sv_cheats set to 1.
  • The Console tab never keeps sv_cheats as a Recent shortcut, so one stray click can't turn it on.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.

Your own
L4D2 server.

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