Skip to main content

Project Zomboid Admin Commands (Build 42)

71 commands6 roles35 /addxp skills

Project Zomboid Build 42 has 64 admin commands — /additem, /addxp, /teleport, /godmode, /createhorde and the rest — plus a few any player can use, such as /roll and /changepwd. The game's own help text writes each one with a leading slash, the way you type it in chat. Which ones work for you depends on your role: of the 68 commands that work in this build, an Admin can run all of them, a Moderator 59, a GM 29, an Observer 14 and an ordinary player 7.

Read from the Build 42 dedicated server's code (depot manifest of 23 Sept 2026): every command's name, its help text as the game shows it, and the permission it needs. Click a command anywhere on this page to copy it.

Commands each role can run

  • User7
  • Priority7
  • Observer14
  • GM29
  • Moderator59
  • Admin68

/additem: find any item ID

/additem takes the item's ID in module.item form — Base.Axe, not “Axe”. Search the game's item scripts below, add a player name if the item is for someone else, and copy the finished command. To see where an item spawns instead of spawning it, use the item finder on the Knox County map.

/addxp: skill names

/addxp wants the skill's internal name, which is often not the one on screen: Carpentry is Woodwork, First Aid is Doctor, Foraging is PlantScavenging. The game's example is /addxp "rj" Woodwork=2. All 35 skills:

Skill in gameName for /addxpGroup
AxeAxeCombat - Melee
Long BluntBluntCombat - Melee
Short BluntSmallBluntCombat - Melee
Long BladeLongBladeCombat - Melee
Short BladeSmallBladeCombat - Melee
SpearSpearCombat - Melee
MaintenanceMaintenanceCombat - Melee
AimingAimingCombat - Firearms
ReloadingReloadingCombat - Firearms
CarpentryWoodworkCrafting
CarvingCarvingCrafting
CookingCookingCrafting
ElectricalElectricityCrafting
First AidDoctorSurvival
GlassmakingGlassmakingCrafting
KnappingFlintKnappingCrafting
MasonryMasonryCrafting
BlacksmithingBlacksmithCrafting
MechanicsMechanicsCrafting
PotteryPotteryCrafting
TailoringTailoringCrafting
WeldingMetalWeldingCrafting
FishingFishingSurvival
ForagingPlantScavengingSurvival
TrackingTrackingSurvival
TrappingTrappingSurvival
FitnessFitnessPhysical
StrengthStrengthPhysical
LightfootedLightfootPhysical
NimbleNimblePhysical
RunningSprintingPhysical
SneakingSneakPhysical
AgricultureFarmingFarming
Animal CareHusbandryFarming
ButcheringButcheringFarming

All 71 commands

Search by name or by what it does, or narrow to the commands your role can run. 8 commands ship without help text (/clear, /createhorde2, /debugplayer, /grantadmin, /list, /remove, /removeadmin, /removezombies); they are listed as the game has them. 3 are switched off in this build (/addalltowhitelist, /addusertowhitelist, /connections).

71 of 71 commands

CommandWhat it does (the game's help text)Lowest role
disabled in this buildAdd all the current users who are connected with a password to the whitelist, so their account is protected.Moderator
Give an item to a player. If no username is given then you will receive the item yourself. Count is optional. Use: /additem "username" "module.item" count. Example: /additem "rj" Base.Axe 5GM
Give a key to a player. If no username is given then you will receive the item yourself. Key name is optional. Use: /addkey "username" "keyId" "name". Example: /addkey "rj" "7295GM
Use this command to add a SteamID to a list of allowed SteamIDs on server. Use: /addSteamID "steamid"Moderator
Adds player to a safehouse. Use /addtosafehouse "title" "username"Moderator
Use this command to add a new user to a whitelisted server. Use: /adduser "username" "password" -- password is optionalModerator
disabled in this buildAdd a user connected with a password to the whitelist, so their account is protected. Use: /addusertowhitelist "username"Moderator
Spawn a vehicle. Use: /addvehicle "script" "user or x,y,z", ex /addvehicle "Base.VanAmbulance" "rj"Moderator
Give XP to a player. Use /addxp "playername" perkname=xp -true. Example /addxp "rj" Woodwork=2 -true. The last argument is optional and is used to take xp multiplier into accountGM
Sound a building alarm at the Admin's position. (Must be in a room)GM
Ban a SteamID. Use /banid SteamIDModerator
Ban IP. Use /banip IPModerator
Ban a user. Add a -ip to also ban the IP. Add a -r "reason" to specify a reason for the ban. Use: /banuser "username" -ip -r "reason". For example: /banuser "rj" -ip -r "spawn kill"Moderator
If you have a card deck, you can draw a random card. Use: /cardEveryone
Change a server option. Use: /changeoption optionName "newValue"Admin
Changes your password. Use /changepwd "previouspassword" "newpassword"Everyone
Indicates whether a mod has been updated. Writes answer to log fileModerator
Place a helicopter event on a random playerGM
No help text in the gameEveryone
also /listdisabled in this buildDisplays information on all connectionsObserver
Spawn a horde near a player. Use : /createhorde count "username". Example /createhorde 150 "rj" Username is optional except from the server console. With no username the horde will be created around youModerator
No help text in the gameModerator
No help text in the gameAdmin
also /godmodeMake yourself invincible. Use: /godmode -value, ex /godmode -true (could be -false)Observer
also /godmodeplayerMake a player invincible. Use: /godmodeplayer "username" -value, ex /godmodeplayer "rj" -true (could be -false)GM
No help text in the gameModerator
Place a gunshot sound on a random playerGM
Help (the game's whole text)Everyone
Make yourself invisible to zombies. Use: /invisible -value, ex /invisible -true (could be -false)Observer
Make a player invisible to zombies. Use: /invisibleplayer "username" -value, ex /invisibleplayer "rj" -true (could be -false)GM
also /kickuserKick a user. Add a -r "reason" to specify a reason for the kick. Use: /kickuser "username" -r "reason"Moderator
Removes player from a safehouse. Use /kickfromsafehouse "title" "username"Moderator
Use /lightning "username", username is optional except from the server consoleGM
No help text in the gameEveryone
Set log level. Use /log %1 %2Moderator
Makes a player pass through walls and structures. Toggles with no value. Use: /noclip "username" -value. Example /noclip "rj" -true (could be -false)Observer
List all connected playersObserver
Save and quit the serverAdmin
Release a safehouse. Use /releasesafehouse "title"Moderator
also /reloadluaallReload a Lua script on the server. Use /reloadlua "filename"Admin
Reload a Lua script on the server. Use /reloadlua "filename"Admin
Reload server options (ServerOptions.ini) and send to clientsAdmin
No help text in the gameModerator
No help text in the gameModerator
Remove items from yourself. Removes all items of type if count set to 0. Use: /removeitem "module.item" count. Example: /removeitem Base.Axe 5Moderator
Removes all shared in-game map symbols for a specific user. Use /removemapsymbolsforuser "username"Moderator
Use this command to remove a SteamID from a list of allowed SteamIDs on server. Use: /removeSteamID "steamid"Moderator
Remove a user from the whitelist. Use: /removeuserfromwhitelist "username"Moderator
No help text in the gameModerator
If you have dice, you can roll a random number - up to 100. Use: /roll 6Everyone
Release a safehouse you own. Use /releasesafehouseEveryone
Save the current worldAdmin
Broadcast a message to all connected players. Use: /servermsg "My Message"Moderator
Set access level of a player. Current levels: Admin, Moderator, Overseer, GM, Observer. Use /setaccesslevel "username" "accesslevel". Example /setaccesslevel "rj" "moderator"Moderator
Use this command to change password for a user. Use: /setpassword "username" "newpassword"Moderator
also /stsSet the time multiplier on the server. Use /setTimeSpeed period. Example /setTimeSpeed 10Admin
Show the list of current server options and values.Observer
Starts raining on the server. Use /startrain "intensity", optional intensity is from 1 to 100GM
Starts a storm on the server. Use /startstorm "duration", optional duration is in game hoursGM
Get server statistics. Use /stats help to get the detailsModerator
Stop raining on the serverGM
Stop weather on the serverGM
also /tpTeleport to a player. Once teleported, wait for the map to appear. Use /teleport "playername" or /teleport "player1" "player2". Example /teleport "rj" or /teleport "rj" "toUser"Observerjust port to user: TeleportToPlayer; teleport user1 to user2: TeleportPlayerToAnotherPlayer
also /tppTeleport a player to another player. Use /teleportplayer "player1" "player2". Example /teleportplayer "rj" "toUser"GM
also /tptoTeleport to coordinates. Use /teleportto x,y,z. Example /teleportto 10000,11000,0Observer
Use /thunder "username", username is optional except from the server consoleGM
Unban a SteamID. Use /unbanid SteamIDModerator
Unban IP. Use /unbanip IPModerator
Unban a player. Use /unbanuser "username"Moderator
Block voice from user "username". Use /voiceban "username" -value. Example /voiceban "rj" -true (could be -false)Moderator
Control full world generator. Use commands '/worldgen start', '/worldgen recheck', '/worldgen stop', and '/worldgen status'. UseAdmin

Roles: Observer < GM < Moderator < Admin — each built-in role can run what the one before it can, and more. Click a command to copy it.

Roles: who can run what

A server gives every account a role, and each role holds a set of permissions. These are the built-in roles, each with the description the game gives it. Each role can do everything the one listed before it can, and more.

RoleThe game's descriptionCommands
UserHave no capabilities.7
PriorityHave login priority7
ObserverCan use teleport, god mode, go inside safehouse. But he can't add xp, items and make another change.14
GMCan use teleport, god mode, add xp, items and make another change.29
ModeratorCan make all except edit roles, reload lua files, change server options.59
AdminHave all capabilities.68

The help text of /setaccesslevel still lists an “Overseer” level; the built-in roles in this build are the ones above.

How do I make myself admin?

  • On a dedicated server, the first start asks for one in the console — the game's prompt is “ Enter new administrator password:”. The server also takes -adminusername and -adminpassword as start options; the server's own message for the second reads “admin password changed via -adminpassword option”.
  • From then on, roles are given with /setaccesslevel — lowest role that can run it: Moderator. The game's help: “Set access level of a player. Current levels: Admin, Moderator, Overseer, GM, Observer. Use /setaccesslevel "username" "accesslevel". Example /setaccesslevel "rj" "moderator"”
  • Setting up the server itself — ports, start scripts, memory, the config files and every server setting — is on the dedicated server page.

More Project Zomboid

Pictures: item and trait icons and the health-panel figure are The Indie Stone's game art; item renders and shop signs are from PZwiki (CC BY-NC-SA 3.0).

Project Zomboid is a game by The Indie Stone. PinDrop is fan-made and not affiliated with The Indie Stone.