# How to Configure Safehouses on Your Project Zomboid Server (/docs/project-zomboid/safehouses)



Safehouses allow players to claim buildings as protected zones. This guide covers all safehouse settings and how to configure them.

Safehouse Settings [#safehouse-settings]

Edit your server config at `Zomboid/Server/[servername].ini`:

| Setting                          | Default | Description                                       |
| -------------------------------- | ------- | ------------------------------------------------- |
| `PlayerSafehouse`                | false   | Allow players to claim safehouses                 |
| `AdminSafehouse`                 | false   | Allow admins to claim safehouses                  |
| `SafehouseAllowTrepass`          | true    | Allow non-owners to enter safehouses              |
| `SafehouseAllowFire`             | true    | Allow fire damage inside safehouses               |
| `SafehouseAllowLoot`             | true    | Allow non-owners to loot safehouse containers     |
| `SafehouseAllowRespawn`          | false   | Allow owners to respawn at their safehouse        |
| `SafehouseDaySurvivedToClaim`    | 0       | Days a player must survive before claiming        |
| `SafeHouseRemovalTime`           | 144     | Hours of inactivity before safehouse is unclaimed |
| `AllowDestructionBySledgehammer` | true    | Allow safehouse walls to be destroyed             |
| `AllowNonAscecibleBuilding`      | false   | Allow claiming buildings that aren't accessible   |

Enable Safehouses [#enable-safehouses]

<div className="fd-steps">
  <div className="fd-step">
    Open server config [#1-open-server-config]

    Go to **Files** and open `Zomboid/Server/[servername].ini`.
  </div>

  <div className="fd-step">
    Enable safehouse claiming [#2-enable-safehouse-claiming]

    ```ini title="[servername].ini"
    PlayerSafehouse=true
    AdminSafehouse=true
    ```
  </div>

  <div className="fd-step">
    Restart your server [#3-restart-your-server]
  </div>
</div>

Recommended Configurations [#recommended-configurations]

PVE Community Server [#pve-community-server]

```ini
PlayerSafehouse=true
SafehouseAllowTrepass=false
SafehouseAllowFire=false
SafehouseAllowLoot=false
SafehouseAllowRespawn=true
SafehouseDaySurvivedToClaim=1
SafeHouseRemovalTime=336
```

Players can claim bases, no one can enter or loot them. Owners respawn there. Inactive safehouses release after 14 days.

PVP Server [#pvp-server]

```ini
PlayerSafehouse=true
SafehouseAllowTrepass=true
SafehouseAllowFire=true
SafehouseAllowLoot=true
SafehouseAllowRespawn=true
SafehouseDaySurvivedToClaim=3
AllowDestructionBySledgehammer=true
```

Safehouses exist but can be raided. Players must survive 3 days first.

No Safehouses [#no-safehouses]

```ini
PlayerSafehouse=false
AdminSafehouse=false
```

How Players Claim a Safehouse [#how-players-claim-a-safehouse]

1. Survive the required number of days (if `SafehouseDaySurvivedToClaim` > 0)
2. Stand inside the building you want to claim
3. Right-click and select **Claim Safehouse**
4. The building is now protected according to server settings

Related Guides [#related-guides]

See also: [PVP Settings](/docs/project-zomboid/pvp-settings) | [Configure Your Server](/docs/project-zomboid/server-config)

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