Rent your own Project Zomboid server — from $11/mo
Home/ Guides/ Project Zomboid/ Project Zomboid Commands
🧟 Project Zomboid · Commands

Project Zomboid Admin Commands

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.

Verified against the Build 42.21 dedicated server · October 2026
Project Zomboid console
# 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]"
Three of them. The full searchable list is below.
⌨️

Project Zomboid Command List

Admin on a server? Press T and type slash-commands like /godmode ·every row has a Copy button

Type to filter, hit Copy, paste in-game. Placeholders in [brackets] are values you fill in.

CommandWhat it doesCategory
/playersList 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]" -trueMute 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 -trueMake yourself invincible (-false to turn it off). Alias /godmod.Character
/godmodeplayer "[user]" -trueMake another player invincible (-false to turn it off).Character
/invisible -trueZombies ignore you (-false to turn it off).Character
/invisibleplayer "[user]" -trueMake another player invisible to zombies (-false to turn it off).Character
/noclip "[user]" -trueWalk 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 trueDelete the zombies around you. For a set spot: /removezombies -x [x] -y [y] -z [z] -radius [r].World / Events
/startrainStart rain, with an optional intensity from 1 to 100 (/stoprain to stop).World / Events
/startstormStart 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
/gunshotFire a distant gunshot near a random player (zombies hear it).World / Events
/chopperSend the helicopter event after a random player (/chopper stop calls it off).World / Events
/alarmSound a building alarm where you stand (you have to be inside a room).World / Events
/saveForce-save the world.Server
/quitSave 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
/showoptionsList the current server options and their values.Server
/reloadoptionsReload the server's .ini options and push them to clients.Server
/checkModsNeedUpdateCheck whether a mod has an update; the answer goes to the server log.Server
/helpList the server commands (/help [command] for one command's usage).Server
🔛

How to Use Admin Commands in Project Zomboid

1

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.

2

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.

3

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.

4

See them all: /help lists the server commands; /help [command] shows one command's usage.

5

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.

These are admin-only multiplayer commands, solo play has no chat console, so single-player cheating goes through the -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.

Project Zomboid Commands FAQ

How do you become admin in Project Zomboid?
On a dedicated server, log in with the username 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.
What's the spawn item command in Project Zomboid?
/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.
What's the godmode command in Project Zomboid?
/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.

More from GamesOMG

Console open? Here's the rest of the toolkit.