Project Zomboid Cheats: Console Commands for PC

Published by

Debug mode

CheatCommandEffect
Enable debug modePC-debugSteam launch option that adds a ladybug icon with god mode, an item spawner and stat editing

God mode and access

CheatCommandEffect
God modePC/godmodeToggle invincibility for yourself
InvisibilityPC/invisibleToggle invisibility to zombies
No clipPC/noclip "username"Toggle walking through walls and structures

Give and spawn

CheatCommandEffect
Give itemPC/additem "username" "module.item" [count]Give a player an item, e.g. Base.Axe
Spawn vehiclePC/addvehicle "script" "x,y,z"Spawn a vehicle at a location
Add skill XPPC/addxp "username" perkname=xpAdd skill experience to a player
Spawn hordePC/createhorde [count] "username"Spawn a zombie horde near a player

World control

CheatCommandEffect
Teleport to playerPC/teleport "username"Teleport yourself to a player
Teleport to coordinatesPC/teleportto x,y,zTeleport yourself to a set of coordinates
Remove zombiesPC/removezombiesRemove every zombie in the loaded area
Start rainPC/startrain [intensity]Start rain, optionally 1-100 for intensity
Stop rainPC/stoprainStop rain

Server and access

CheatCommandEffect
Set access levelPC/setaccesslevel "username" [level]Set a player's access level, e.g. admin
Force savePC/saveForce an immediate world save
Server messagePC/servermsg "message"Broadcast a message to everyone connected

A code here did not work? Tell us and it gets rechecked. Report a code

How to enter cheats in Project Zomboid

Single-player debug mode

  1. Right-click Project Zomboid in your Steam library and open Properties.
  2. Add -debug to the launch options and start the game.
  3. Click the ladybug icon that appears on screen to open the debug panel.

Server admin commands

  1. Get admin access, which the host can grant with /setaccesslevel.
  2. Press T or Enter during a hosted game to open chat.
  3. Type an admin command starting with a slash, for example /godmode, and press Enter.

How to enable developer mode in Project Zomboid

  1. In your Steam Library, right-click Project Zomboid and choose Properties.
  2. On the General tab, scroll to Launch Options and type -debug.
  3. Launch the game and start or load a single-player save.

BisectHosting: Project Zomboid console commands guide

Can you use these cheats in multiplayer?

Only with an access level on that server. XGamingServer says the first console password set on a new server becomes the built-in admin account, and the admin hands out levels with /setaccesslevel. IONOS adds that many public servers keep cheats to admins for fairness. XGAMINGSERVER: Project Zomboid server admin commands

Compatibility notes

Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.

FAQ

How do you turn on cheats in Project Zomboid?

For single-player, add -debug to the game's Steam launch options and click the ladybug icon that appears. On a server, open chat with T or Enter and type an admin command starting with a slash.

What does the -debug launch option do?

It adds a ladybug icon to the screen that opens a debug panel with god mode, an item spawner and stat editing.

How do I get access to use admin commands?

You need admin access on the server, which the host can grant with /setaccesslevel.

Do Project Zomboid commands work in multiplayer?

Yes. The admin commands are meant for a server you host or administer yourself.

Part of

References: BisectHosting: Project Zomboid console commands guide; XGAMINGSERVER: Project Zomboid server admin commands; IONOS: Project Zomboid cheats and console commands.