# Project Zomboid Admin Commands List (/docs/project-zomboid/admin-commands)



This is a complete reference of all admin commands available on your Project Zomboid server. You must be logged in as an admin to use these commands.

> 💡 **Tip:** Type commands in the in-game chat (press **T**) prefixed with `/`. Commands themselves are not case-sensitive, but **player names and item IDs are case-sensitive** — type them exactly as they appear. To become an admin first, see [Become a Server Admin](/docs/project-zomboid/become-admin).

Player Management [#player-management]

| Command                               | Description                                          |
| ------------------------------------- | ---------------------------------------------------- |
| `/players`                            | List all connected players                           |
| `/kickuser "username"`                | Kick a player from the server                        |
| `/kickuser "username" -r "reason"`    | Kick with a reason message                           |
| `/banuser "username"`                 | Ban a player by username                             |
| `/banuser "username" -r "reason"`     | Ban with a reason message                            |
| `/banid [steamid64]`                  | Ban a player by Steam ID                             |
| `/unbanuser "username"`               | Unban a player by username                           |
| `/unbanid [steamid64]`                | Unban a player by Steam ID                           |
| `/adduser "username" "password"`      | Create a user account and add to whitelist           |
| `/addalltowhitelist`                  | Add all currently connected players to the whitelist |
| `/removeuserfromwhitelist "username"` | Remove a user from the whitelist                     |
| `/setaccesslevel "username" [level]`  | Set a player's access level                          |
| `/grantadmin "username"`              | Grant admin rights to a player                       |
| `/removeadmin "username"`             | Revoke admin rights from a player                    |
| `/voiceban "username"`                | Toggle a player's voice chat access                  |

Access Levels [#access-levels]

| Level       | Permissions                                                           |
| ----------- | --------------------------------------------------------------------- |
| `admin`     | Full access — all commands, server settings, kick/ban, spawn          |
| `moderator` | Player management — kick, ban, teleport, but no server config changes |
| `gm`        | Game Master — spawn items, teleport, run events, no ban/kick          |
| `overseer`  | Limited — view player info, teleport, minimal moderation              |
| `observer`  | Watch only — invisible, can spectate but can't interact               |
| `none`      | Regular player (removes any access level)                             |

```
/setaccesslevel "PlayerName" admin
```

Teleportation [#teleportation]

| Command                         | Description                               |
| ------------------------------- | ----------------------------------------- |
| `/teleport "player1"`           | Teleport yourself to player1              |
| `/teleport "player1" "player2"` | Teleport player1 to player2's location    |
| `/teleportto x,y,z`             | Teleport yourself to specific coordinates |

> 📝 **Note:** `/teleport` is for player-to-player teleportation. `/teleportto` is for teleporting to map coordinates. The z value is the floor level (0 = ground).

> 💡 **Tip:** Find coordinates using the [Project Zomboid Map](https://map.projectzomboid.com/) — hover over a location to see its coordinates.

Item and Vehicle Commands [#item-and-vehicle-commands]

| Command                                     | Description                      |
| ------------------------------------------- | -------------------------------- |
| `/additem "username" "module.item" [count]` | Give items to a player           |
| `/addvehicle "vehicletype"`                 | Spawn a vehicle at your position |
| `/addxp "username" "Perk=amount"`           | Grant XP in a specific skill     |

Common Item Examples [#common-item-examples]

```
/additem "PlayerName" "Base.Axe" 1
/additem "PlayerName" "Base.Shotgun" 1
/additem "PlayerName" "Base.WaterBottleFull" 5
/additem "PlayerName" "Base.FirstAidKit" 1
/addvehicle "Base.VanSeats"
/addxp "PlayerName" "Woodwork=100"
```

> 📝 **Note:** Item IDs use the `Module.ItemName` format and are **case-sensitive**. `Base.Axe` works but `base.axe` does not. See [Give Items and Spawn Items](/docs/project-zomboid/spawn-items) for a full item ID reference.

Player Mode Commands [#player-mode-commands]

| Command                 | Description                                |
| ----------------------- | ------------------------------------------ |
| `/godmode "username"`   | Toggle invincibility                       |
| `/invisible "username"` | Toggle invisibility to zombies and players |
| `/noclip "username"`    | Toggle noclip (move through walls)         |

Weather and Event Commands [#weather-and-event-commands]

| Command                | Description                                                     |
| ---------------------- | --------------------------------------------------------------- |
| `/startrain`           | Start rain                                                      |
| `/stoprain`            | Stop rain                                                       |
| `/startstorm`          | Start a thunderstorm                                            |
| `/stopstorm`           | Stop the current storm                                          |
| `/lightning`           | Trigger a lightning strike effect                               |
| `/thunder`             | Trigger a thunder sound effect                                  |
| `/chopper`             | Spawn a helicopter event at a random player                     |
| `/gunshot`             | Trigger a gunshot sound near a random player (attracts zombies) |
| `/alarm`               | Trigger a building alarm at your position (must be indoors)     |
| `/createhorde [count]` | Spawn a zombie horde of specified size near you                 |
| `/removezombies`       | Remove all zombies from the area                                |

Server Administration [#server-administration]

| Command                          | Description                                   |
| -------------------------------- | --------------------------------------------- |
| `/servermsg "message"`           | Broadcast a message to all players            |
| `/save`                          | Force save the server                         |
| `/quit`                          | Save and shut down the server                 |
| `/showoptions`                   | Display current server settings               |
| `/reloadoptions`                 | Reload server settings from config files      |
| `/changeoption "option" "value"` | Change a server setting in real-time          |
| `/checkModsNeedUpdate`           | Check if installed mods have Workshop updates |
| `/reloadlua "filename"`          | Reload a Lua script file                      |
| `/sendpulse`                     | Display server performance diagnostics        |
| `/log`                           | Set log verbosity level                       |
| `/clear`                         | Clear the console output                      |
| `/help`                          | List all available commands                   |
| `/help "command"`                | Show help for a specific command              |
| `/releasesafehouse`              | Release a claimed safehouse                   |
| `/replay "username"`             | Record a gameplay replay from a player        |

Useful Tips [#useful-tips]

* Commands are **not** case-sensitive, but **player names and item IDs are**
* Player names with spaces need quotes: `"Player Name"`
* Use `/players` to verify exact usernames before running commands
* The `/changeoption` command applies changes immediately without a restart
* Use `/save` before making major changes as a safety precaution
* Type `/help` in-game to see all commands available for your current access level

Related Guides [#related-guides]

See also: [Become a Server Admin](/docs/project-zomboid/become-admin) | [Access Levels](/docs/project-zomboid/access-levels) | [Ban and Unban Players](/docs/project-zomboid/ban-players) | [Give Items and Spawn Items](/docs/project-zomboid/spawn-items) | [RCON](/docs/project-zomboid/rcon)

If you need help, join our [Discord](https://discord.xgamingserver.com/).
