Key

From PZwiki
Spiffo controlyourself.png
This page was last updated for an older version (40.40).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Frame.png
This article contains outdated/low-quality images.
Reason: Upload 3D models for other key variants.
Please help the PZwiki by uploading an improved/updated version of the image(s) found on this page.
Key
Key Model.png
Key
Key
Key
Key
General
Category
Security
Encumbrance
Moodle Icon HeavyLoad.png
0.0
Function
Lock and unlock doors
Technical
Item ID
Base.Key1
Base.Key2
Base.Key3
Base.Key4
Base.Key5
PlushSpiffo.pngThis article is about key to open doors. For key to open padlocks, see Key (Padlock). For a car key, see Car Key.

A key is used to lock and unlock doors in the game.

Usage

Locking and unlocking

Keys are connected to garage doors and regular door around the house, hovering over the key in your inventory will highlight the doors it is connected to in yellow. If it is in the player's inventory, the "Unlock Door" context option will appear when selecting a door.

Distribution

A key is a common item. Although it is possible to find keys in containers such as counters, dressers, and crates, it is much more common to find them on the corpses of zombies that were inside or in the vicinity of the building. If a door exists, it is likely to have a key that corresponds to it.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.50
item Key1
{
    DisplayCategory     = Security,
    Weight              = 0,
    Type                = Key,
    DisplayName         = Key,
    Icon                = Key1,
    MetalValue          = 5,
    WorldStaticModel    = Key,
}

See also