Project Zomboid admin commands can be run in-game by an admin account or from the server console. In-game commands usually start with a slash, for example /help. Console usage may omit the slash depending on where the command is entered.
Use /help in-game to list commands available on your server. Use /help command for help with a specific command.
| Command | Use |
|---|---|
additem | Gives an item to a player, for example /additem "player" Base.Axe 1. |
adduser | Adds a user to a whitelisted server. |
addvehicle | Spawns a vehicle by script name. |
addxp | Gives XP to a player skill, for example /addxp "player" Woodwork=2. |
alarm | Triggers a building alarm at the admin's current position. |
banid | Bans a SteamID. |
banuser | Bans a username, with optional IP and reason flags. |
changeoption | Changes a server option while the server is running. |
checkModsNeedUpdate | Checks whether installed mods need updates and writes the result to logs. |
chopper | Starts a helicopter event on a random player. |
clear | Clears the server console output. |
createhorde | Spawns a horde near a player. |
godmod | Toggles god mode for a player. |
invisible | Toggles invisibility for a player. |
kick | Kicks a player from the server. |
kickuser | Kicks a player from the server. |
log | Changes logging options for a debug type and severity. |
noclip | Toggles noclip mode for an admin player. |
players | Lists connected players. |
quit | Safely shuts down the server. |
reloadlua | Reloads Lua scripts. Use carefully on live modded servers. |
save | Forces a server save. |
servermsg | Sends a message to all players. |
setaccesslevel | Changes a user's access level, such as admin or moderator. |
teleport | Teleports one player to another player. |
teleportto | Teleports the admin to coordinates. |
unbanid | Unbans a SteamID. |
unbanuser | Unbans a username. |
Some commands are case-sensitive and command availability can change between stable and unstable builds. If a command fails, check /help on the server build you are running.
