Project Zomboid safehouses, factions and PvP rules
Set the rules for a shared Project Zomboid world: PvP and the safety toggle, safehouse claiming and protection, factions, sleeping and death announcements.
A shared Project Zomboid world needs house rules: can players fight each other, can they claim a base, and what happens to someone else's loot? These settings are all in the server's .ini file. Save the file and run /reloadoptions to apply them. This guide follows the current stable game, Build 42.
PvP on or off
PVP=true
SafetySystem=true
ShowSafety=true
PVP=false means players can't hurt each other at all, which suits co-op groups. With PVP=true, the safety system decides how it works:
SafetySystem=true(default): each player switches their own PvP mode on and off. One player can only hurt another when at least one of them has PvP on.ShowSafetyshows a skull over players who have it on.SafetySystem=false: anyone can hurt anyone at any time.
SafetyToggleTimer (2 seconds) is how long switching takes and SafetyCooldownTimer (3) how long before it can be switched again. Raise them so nobody can flip PvP off in the middle of a fight.
PvP damage and logs
PVPMeleeDamageModifier=30andPVPFirearmDamageModifier=50scale player-on-player damage. Lower them for fights that last longer, raise them for a harsher server.PVPLogToolChat=truereports PvP in admin chat andPVPLogToolFile=truewrites it to the server log, which helps when someone reports a kill.AnnounceDeath=trueposts a message in chat every time a player dies.
Safehouses
PlayerSafehouse=true
AdminSafehouse=false
SafehouseAllowTrepass=false
SafehouseAllowLoot=false
SafehouseAllowFire=false
A safehouse is a building a player claims, with members they invite. PlayerSafehouse=true lets players claim them; AdminSafehouse=true lets only admins hand them out. Then decide what the claim protects:
| Setting | Default | When true |
|---|---|---|
SafehouseAllowTrepass | true | Non-members may walk in without an invite. |
SafehouseAllowLoot | true | Non-members may take items. |
SafehouseAllowFire | true | Fire can damage the safehouse. |
SafehouseAllowRespawn | false | Members who die respawn at the safehouse. |
DisableSafehouseWhenOwnerConnected | false | The house is only protected while its owners are offline. |
The defaults leave a claimed house open. For a server where bases are safe, set trespass, loot and fire to false, as in the example above.
SafehouseDaySurvivedToClaim: in-game days a player must survive before claiming, to stop new accounts grabbing the best houses.SafeHouseRemovalTime=144: real hours of not visiting before a player is removed from a safehouse, so abandoned bases free up.SafehouseAllowNonResidential: allow claiming shops, warehouses and other non-houses.SafehousePreventsLootRespawn=true: claimed houses don't refill with loot.
Factions
Faction=true lets players form factions, which get their own chat channel. FactionDaySurvivedToCreate sets the in-game days survived before someone can start one, and FactionPlayersRequiredForTag how many members a faction needs before it can show a tag.
Breaking things
AllowDestructionBySledgehammer=true lets players knock down walls and objects with a sledgehammer. On a PvP server this is how bases get raided; set SledgehammerOnlyInSafehouse=true to allow it only inside a player's own safehouse. NoFire=true turns off all fire except campfires, which stops arson.
Sleeping on a shared server
SleepAllowed=true lets tired characters sleep, and SleepNeeded=true makes them have to (only when sleep is allowed). Both are off by default, so characters never need to sleep on a server.
Two common setups
| Setting | Co-op group | Roleplay / PvP |
|---|---|---|
PVP | false | true |
SafetySystem | (not used) | true |
PlayerSafehouse | true | true |
SafehouseAllowTrepass | true | false |
SafehouseAllowLoot | true | false |
SledgehammerOnlyInSafehouse | false | true |
AnnounceDeath | false | true |
Write your rules down for players too, on Discord or in the ServerWelcomeMessage: settings stop most problems, but not all of them.
Want a Project Zomboid server?
New Project Zomboid servers are paused for now. Tell us on Discord if you want one, so we know when to bring them back.