Skip to content
/SLASHPLAY

How to turn on god mode for everyone in GMod

Type sbox_godmode 1 in the server console and no player can take damage on a Sandbox server. It does not need sv_cheats.

sbox_godmode

Toggles god mode for every player on a Sandbox server, so nobody can take damage.

sbox_godmode <0|1>

Examples

sbox_godmode 1

Building server where nobody can die.

Values

ValueWhat it does
0Default Off
1 On

Arguments

0|1Required
1 makes all players invincible, 0 restores normal damage.

What it does

When on, the Sandbox gamemode stops all players from taking damage, whether from players, NPCs, falls or explosions. It is useful on pure building servers where combat is not wanted. Unlike god, it does not need sv_cheats and applies to everyone.

The game's own description: If enabled, all players will be invincible

Good to know

  • Only the Sandbox gamemode and gamemodes derived from it read this setting.

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.