Project Zomboid Cheats: Console Commands for PC

Codes last checked on against the sources listed at the bottom of this page. Covers PC, in single-player debug mode and on a server you host or administer.

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

How to enter cheats

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.

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.