Game servers by the hour. Pay only when you play.

Garry's Mod server commands and admin

Every 2hours.gg Garry's Mod server comes with ULX admin installed. The account that deployed the server is set as superadmin, so the admin commands below are yours. Type chat commands in the game chat (press Y).

Admin chat commands (ULX)

  • !menu: open the ULX admin menu (kick, ban, slay, map vote, and more).
  • !kick Name reason: kick a player.
  • !ban Name 30 reason: ban a player for 30 minutes (0 = permanent).
  • !slay Name: kill a player (for settling arguments).
  • !map gm_flatgrass: change the map now.
  • !god / !ungod: toggle godmode on yourself.

ULX has a full command list at !menu. Only the owner (and anyone you promote with !adduser) can run these.

Change map or clean up

Use the web console on your server card. It has buttons for changing the map, restarting the current map, cleaning up all spawned props, gravity presets, all-talk voice, and cheats. No RCON setup needed.

One thing to know about gamemodes: your server installs the files and maps for the mode you picked at deploy. To play a different mode (Sandbox, TTT, Prop Hunt, Murder, Guess Who, Deathrun, Cinema), deploy a new server with that mode selected.

Bins, crates and furniture floating in the air on balloons above a city map
Props pile up fast in Sandbox. The console cleanup button clears them all.

Workshop addons

Paste a Steam Workshop collection ID on deploy. The server mounts the whole collection and delivers it to everyone who connects, so players do NOT need to subscribe first. This is different from Left 4 Dead 2, where everyone has to subscribe.

Counter-Strike: Source content is mounted by default, so maps that rely on CS:S textures show up correctly instead of purple ERROR checkerboards.

Public or private

  • Leave the Join password empty on deploy = public. Anyone with the IP can join.
  • Set a Join password = private. Only people with the password get in.

To join a private server, friends open their console (~) and run: password yourpassword; connect IP:27015

Command reference

Run these from the web RCON console on your server card, or the in-game console (~).

Map and server

status
List connected players, Steam IDs, ping and the current map.
changelevel <map>
Load a map (e.g. changelevel gm_flatgrass). Briefly drops players. The Map dropdown does this for you.
gmod_admin_cleanup
Remove every spawned prop and entity on the map. Good for clearing lag after a big build.
kick "<name>"
Kick a player by name (or use !kick for the ULX version with a reason).
say <message>
Print a message in everyone’s chat as the server.

Sandbox rules and voice

sv_gravity <n>
World gravity. 600 = normal, 200 = low, 100 = moon. Low gravity plus the physics gun is a classic.
sv_alltalk <0|1>
Voice chat everyone can hear. On by default on our servers (right for party modes).
sbox_maxprops <n>
How many props each player can spawn (Sandbox). Lower it if the server lags.
sbox_godmode <0|1>
Everyone is invincible (Sandbox building).
sv_cheats <0|1>
Enable cheat commands. The console’s cheat buttons flip this for you.

What players type (client-side)

connect <ip>:27015
Join the server directly. Also works from the server browser (favourites).
password <password>
Set the join password before connecting to a private server.

See also

← Back to all guides