Skip to content
/SLASHPLAY

How to give a key in Project Zomboid

Type /addkey "username" "keyId" "name" in game chat as an admin, or addkey the same way in the Console tab.

addkey

Gives a player a key with a given key ID, with an optional name.

/addkey "<username>" "<keyId>" "<name>"

Examples

/addkey "rj" "7295" "Gift Key"

Gives rj key 7295 named Gift Key.

Arguments

usernameOptional
Who gets the key. Leave it out to give it to yourself.
keyIdRequired
The key's numeric ID.
nameOptional
A name for the key.

What it does

Makes a key for a door or car lock when you know its key ID.

Good to know

  • Type it in the **Console** tab without the slash, or in game chat with the slash from an admin account.

Run it on your server

Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.

Your own
Project Zomboid server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.