Project Zomboid admin commands, godmode, additem, addxp, teleport, spawn vehicles and hordes, weather and server control, typed in chat when you're admin, plus the -debug mode for single-player. Search, copy, paste, done.
# admin on a server? Press T and type slash-commands like /godmode # list all connected players /players # give a player a role, e.g. moderator /setaccesslevel "[user]" [role] # grant full admin /grantadmin "[user]"
Type to filter, hit Copy, paste in-game. Placeholders in [brackets] are values you fill in.
| Command | What it does | Category |
|---|---|---|
| /players | List all connected players. | Admin / Players |
| /setaccesslevel "[user]" [role] | Give a player a role. Built-in roles: admin, moderator, gm, observer, priority, user, banned, lowercase and spelled exactly. Set it back to user to demote. | Admin / Players |
| /grantadmin "[user]" | Make a player admin (same as setaccesslevel with admin). To demote, set their role back to user. | Admin / Players |
| /kickuser "[user]" -r "[reason]" | Kick a player (alias /kick; the -r reason is optional). | Admin / Players |
| /banuser "[user]" -r "[reason]" | Ban a player by username. Put -ip before -r to ban their IP too; the reason is optional. /unbanuser "[user]" reverses it. | Admin / Players |
| /banid [SteamID] | Ban a Steam ID (/unbanid to reverse). Steam servers only. | Admin / Players |
| /banip [IP] | Ban an IP address (/unbanip to reverse). | Admin / Players |
| /voiceban "[user]" -true | Mute a player's voice chat (-false to lift it). | Admin / Players |
| /adduser "[user]" "[password]" | Add an account to a whitelisted server (the password is optional). | Admin / Players |
| /setpassword "[user]" "[newpassword]" | Change a player's password. | Admin / Players |
| /godmode -true | Make yourself invincible (-false to turn it off). Alias /godmod. | Character |
| /godmodeplayer "[user]" -true | Make another player invincible (-false to turn it off). | Character |
| /invisible -true | Zombies ignore you (-false to turn it off). | Character |
| /invisibleplayer "[user]" -true | Make another player invisible to zombies (-false to turn it off). | Character |
| /noclip "[user]" -true | Walk through walls and structures (-false to turn it off). Use your own name for yourself. | Character |
| /additem "[user]" "[module.item]" [count] | Spawn an item into a player's inventory, e.g. /additem "Bob" "Base.Axe" 1. Leave the name out for yourself; one command tops out at 100. | Items / XP |
| /addxp "[user]" [perk]=[amount] | Give skill XP, e.g. /addxp "Bob" Woodwork=2. The number is XP, not levels. Add -true on the end to apply the XP multiplier. | Items / XP |
| /addvehicle "[type]" "[user]" | Spawn a vehicle at a player, e.g. /addvehicle "Base.VanAmbulance" "Bob". Swap the name for x,y,0 to use coordinates, or leave it out to spawn at you. | Items / XP |
| /removeitem "[module.item]" [count] | Remove items from your own inventory; a count of 0 removes every one of that type. | Items / XP |
| /teleport "[toUser]" | Teleport yourself to a player (alias /tp). | Teleport |
| /teleport "[user]" "[toUser]" | Teleport one player to another (/teleportplayer does the same). | Teleport |
| /teleportto [x],[y],[z] | Teleport yourself to map coordinates: commas, no spaces, e.g. /teleportto 10000,11000,0. Put "[user]" first to send someone else (alias /tpto). | Teleport |
| /createhorde [count] | Spawn a horde around you, up to 500 per command. Add "[user]" after the count to spawn it on someone else (required from the server console). | World / Events |
| /removezombies -remove true | Delete the zombies around you. For a set spot: /removezombies -x [x] -y [y] -z [z] -radius [r]. | World / Events |
| /startrain | Start rain, with an optional intensity from 1 to 100 (/stoprain to stop). | World / Events |
| /startstorm | Start a thunderstorm, with an optional duration in game hours (24 if you leave it out). /stopweather ends it. | World / Events |
| /lightning "[user]" | Lightning at a player (the name is optional in chat, required from the server console). | World / Events |
| /thunder "[user]" | Thunder at a player (the name is optional in chat, required from the server console). | World / Events |
| /gunshot | Fire a distant gunshot near a random player (zombies hear it). | World / Events |
| /chopper | Send the helicopter event after a random player (/chopper stop calls it off). | World / Events |
| /alarm | Sound a building alarm where you stand (you have to be inside a room). | World / Events |
| /save | Force-save the world. | Server |
| /quit | Save and shut down the server. | Server |
| /servermsg "[message]" | Broadcast a message to all players (keep the quotes). | Server |
| /changeoption [option] "[value]" | Change a server setting live. | Server |
| /showoptions | List the current server options and their values. | Server |
| /reloadoptions | Reload the server's .ini options and push them to clients. | Server |
| /checkModsNeedUpdate | Check whether a mod has an update; the answer goes to the server log. | Server |
| /help | List the server commands (/help [command] for one command's usage). | Server |
Become admin: on a dedicated server, log in with the username admin and the server's admin password, set by -adminpassword on the launch line or asked for on first launch. On GamesOMG Hosting it's the AdminPassword setting in the panel's Settings tab. Hosting from the in-game Host menu runs your commands as admin but leaves your character a plain user, so /godmode switches itself straight back off and /teleportto answers "An Observer can only teleport himself". Type /setaccesslevel "yourname" admin once per world and both work.
Promote other players: /grantadmin "user" for full admin, or /setaccesslevel "user" moderator for a role with less power. The built-in roles are admin, moderator, gm, observer, priority, user and banned; new accounts start as user.
Type commands in chat: press T, then type the command with a leading slash (e.g. /players). In the server console or over RCON, type the same commands without the slash.
See them all: /help lists the server commands; /help [command] shows one command's usage.
Single-player tools: add -debug to the launch options (Steam → Properties → General → Launch Options) for a debug toolbar with an item spawner and teleport, no server needed.
-debug launch option instead. On Build 42, /godmode and /invisible work on you only and take a flag: -true switches the effect on, -false switches it off. For someone else, use /godmodeplayer or /invisibleplayer with their name.admin and the server's admin password (the -adminpassword launch value; on GamesOMG Hosting, the AdminPassword setting). Host from the in-game Host menu and your commands run as admin, but your character stays a plain user until you type /setaccesslevel "yourname" admin once. To make someone else admin, run /grantadmin "username" in chat, or grantadmin "username" in the server console./additem "username" "module.item" [count], e.g. /additem "Bob" "Base.Axe" 1. Leave the username out to spawn it on yourself; one command tops out at 100 items. In single-player, use the -debug item spawner instead./godmode -true makes you invincible and /godmode -false turns it off (/godmod works too). For another player, use /godmodeplayer "username" -true. If it answers "no longer invincible" every time, your character isn't admin yet: /setaccesslevel "yourname" admin, then try again.Console open? Here's the rest of the toolkit.