Skip to content
/SLASHPLAY

How to enable cheats in GMod

Type sv_cheats 1 in the server console to unlock cheat commands like god, buddha and give; sv_cheats 0 turns them off again.

sv_cheats

Toggles cheats on the server, unlocking commands like god, buddha, give and host_timescale.

sv_cheats <0|1>

Examples

sv_cheats 1

Enable cheat commands.

sv_cheats 0

Turn them off again.

Values

ValueWhat it does
0Default Off
1 On

Arguments

0|1Required
1 enables cheats, 0 disables them.

What it does

Many debug and fun commands only work while this is 1. It also allows any cheat-flagged setting to be changed, so turn it on only on private or development servers.

The game's own description: Allow cheats on server

Good to know

  • Setting it back to 0 resets cheat-flagged settings to their defaults.

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 garrysmod/cfg/server.cfg. New to this? Start a GMod server first.

Your own
GMod server.

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