🧟 PZ Build 42 is out! 25% off:DOOM25
Project ZomboidProject Zomboid·Administration

Project Zomboid Server Commands Guide

Every Project Zomboid server command, tested on Build 42: what still works, the five commands that were removed, and the exact syntax the server accepts.

Magnus·
8 min read
·
Jan 23, 2024
·
Last updated: Jul 30, 2026
Table of Contents

Project Zomboid Server Commands Guide

Every command below was sent to a live Build 42 server and the response recorded, so what you read here is what your server actually answers. Five commands that other guides still list were removed in Build 42, and six more changed their syntax.

Before you start

  • In the panel Console tab, leave the leading / off. In in-game chat, keep it.
  • Command names are case sensitive.
  • Quotes are only needed when a value contains a space, but they never hurt.
  • Most player commands act on connected players. No such user or User X not found usually means they are simply not online, not that the account is missing.
  • A few commands need your character to exist in the world, so they fail from the console: alarm, teleportto, thunder, lightning, and createhorde without a name.
  • Typing help in the console prints the exact command list for your build. If any guide disagrees with that output, the output wins.

DoomHosting panel Console tab with a command and the server response

Removed in Build 42, check here first

These still appear in most Project Zomboid command lists. On Build 42 the server answers Unknown command, or an access-level error.

Command What it does Syntax
addusertowhitelistGone. Use adduser, which both creates and whitelists.addusertowhitelist "user"
addalltowhitelistGone. Let everyone join once with Open on, then switch it off.addalltowhitelist
changepwdGone from the console. Use setpassword instead.changepwd "old" "new"
sendpulseGone. Use stats for server performance data.sendpulse
replayGone. No replacement.replay "user" -record "file"
removeadminErrors out. Demote with setaccesslevel "user" instead.removeadmin "user"

Players, accounts and bans

Command What it does Syntax
adduserCreates a whitelist account. The password is optional.adduser "user" "password"
setpasswordResets an account password.setpassword "user" "newpassword"
removeuserfromwhitelistDeletes the account from the whitelist.removeuserfromwhitelist "user"
setaccesslevelSets the role. See the access levels below.setaccesslevel "user" "level"
grantadminShortcut for the admin role.grantadmin "user"
playersLists connected players.players
kickuserKicks a connected player. The reason is optional.kickuser "user" -r "reason"
banuserBans an account. -ip also bans their IP.banuser "user" -ip -r "reason"
unbanuserLifts an account ban.unbanuser "user"
banidBans a Steam ID, so a renamed account stays out.banid SteamID
unbanidLifts a Steam ID ban.unbanid SteamID
banip / unbanipBans or unbans an IP address.banip 1.2.3.4
addsteamid / removesteamidMaintains the allowed Steam ID list.addsteamid "steamid"
voicebanBlocks voice chat from a player.voiceban "user" -true

Server control

Command What it does Syntax
helpPrints every command your build actually has.help
saveSaves the world immediately.save
quitSaves and shuts the server down.quit
showoptionsDumps every server option and its current value.showoptions
changeoptionChanges one option live. No equals sign, and the value is quoted.changeoption PingLimit "400"
reloadoptionsRereads the config file and pushes it to clients.reloadoptions
servermsgBroadcasts a message to everyone online.servermsg "message"
statsServer performance figures.stats help
logSets the log level.log
checkModsNeedUpdateChecks whether any installed mod has an update. Answer goes to the log.checkModsNeedUpdate
reloadluaReloads one server-side Lua file.reloadlua "filename"

World and gameplay

Command What it does Syntax
additemGives an item. Count is optional.additem "user" "Base.Axe" 5
removeitemRemoves items from yourself. 0 removes all of that type.removeitem "Base.Axe" 5
addkeyGives a key to a player.addkey "user" "keyId" "name"
addvehicleSpawns a vehicle. The script name comes first, not the player.addvehicle "Base.VanAmbulance" "user"
addxpGrants XP. The perk=value pair is not quoted.addxp "user" Woodwork=100
godmodeInvincibility for yourself only. It takes no username.godmode -true
godmodeplayerInvincibility for someone else.godmodeplayer "user" -true
invisibleHides you from zombies. Yourself only.invisible -true
invisibleplayerHides someone else from zombies.invisibleplayer "user" -true
noclipLets a player walk through walls.noclip "user" -true
teleportTeleports you to a player, or one player to another.teleport "user" "toUser"
teleporttoTeleports to map coordinates. In-game only.teleportto 10000,11000,0
createhordeSpawns a horde near a player. The count is not quoted, and the console needs a name.createhorde 150 "user"
removezombiesClears loaded zombies.removezombies
chopperTriggers the helicopter event on a random player.chopper
gunshotPlays a gunshot near a random player.gunshot
alarmSets off a building alarm at your position. In-game only, and you must be inside a room.alarm
startrain / stoprainStarts or stops rain. Intensity 1 to 100 is optional.startrain "50"
startstorm / stopweatherStarts a storm, or clears all weather. Duration is in game hours.startstorm "2"
thunder / lightningThunder or a lightning strike on a player. The console needs a name.thunder "user"
setTimeSpeedMultiplies how fast in-game time passes.setTimeSpeed 10
releasesafehouseReleases a safehouse claim.releasesafehouse "title"
addtosafehouse / kickfromsafehouseAdds or removes a player on a safehouse.addtosafehouse "title" "user"

Access levels

These are the only values setaccesslevel accepts, in the order the server itself lists them:

banned, user, priority, observer, gm, moderator, admin

Note that overseer is gone, even though the game's own help text still mentions it, and none was never valid. Both answer Access Level '' unknown. To take someone's powers away, set them to user.

When a command does not work

Unknown command x The command was removed in Build 42. Check the table above for the replacement.

No such user or User x not found The command needs the player to be online. Whitelisted but offline is not enough.

Access Level '' unknown You passed none or overseer. Use one of the seven levels listed above.

The command prints its own usage text back at you The arguments are wrong. godmode and invisible take no username, and changeoption takes no equals sign.

Not in a room alarm needs your character to be standing inside a building, so it cannot work from the server console.

Adding players to a whitelisted server is its own job with its own traps, and it is covered in How to Set Up a Whitelist on a Project Zomboid Server. Every command here runs from the Console tab in our game control panel, and if you are still hosting elsewhere, our Project Zomboid server hosting gives you that console plus one-click backups.

Project Zomboid

Start your Project Zomboid Server

High performance hosting with 24/7 support

Related Articles