Project Zomboid server settings: PvP, zombies, loot and safehouses in Build 42
Published on 20 October 2026
A Project Zomboid server is configured with two files: the .ini file (servertest.ini by default) for the server, such as PvP, password, players and safehouses, and SandboxVars.lua for the world: zombies, loot, water, power and experience. PvP is on by default, but each player chooses whether to join in; players cannot claim a safehouse, and loot respawn and sprinters are off. Edit the files with the server stopped; server options can also change live via the console. Checked for Build 42.21, as of 20 October 2026.
| What | Answer |
|---|---|
| Price | From €4.95 a month on Standard, Premium from €8.95, including VAT, cancel monthly |
| RAM | 4 to 32 GB, in 10 sizes |
| Players | 32 at a time by default (MaxPlayers, excluding admins); since version 42.20.3 a server can take up to 254 players |
| Our advice | Small group on a fresh world: CupCake 4 GB (€4.95). Bigger group or a world that has been running for weeks: Cake 6 GB (€6.95) or BIGCake 8 GB (€8.95). Lots of players with a long mod list: SuperCake 12 GB (€12.95) |
| Port | Your server gets its own address with a port, shown in the game panel. Self-hosting: UDP 16261 and 16262 |
| Location | Standard in Europe (Netherlands, Germany or France), Canada or Singapore, Premium in Europe (Netherlands or France) or the United States (San Jose, California); you choose when you order |
| Backups | 2 backups in the game panel (you can order more) |
| Management | Pterodactyl game panel, settings in the Startup tab; your game settings in the .cache/Server folder |
Where are your server's settings stored?
On first start, the server creates four files with default values in Zomboid/Server, named after your server:
servertest.ini: the server itself, such as PvP, access, players, safehouses and mods (WorkshopItems=andMods=).servertest_: the rules of the world (sandbox).SandboxVars.lua - The two spawn files: where players start.
Which settings matter most?
| Setting | Default | What it does |
|---|---|---|
| In the .ini file | ||
PVP | true | Players can kill each other |
SafetySystem | true | Each player chooses their own PvP mode |
Open | true | Anyone can create an account |
Password | empty | Password to connect |
Public | false | Listed in the in-game server browser under PublicName |
MaxPlayers | 32 | Players at a time, admins not counted |
PauseEmpty | true | Time stops when nobody is online |
SaveWorldEveryMinutes | 0 | Save the loaded map every X minutes; 0 is off |
SleepAllowed, SleepNeeded | false | Sleeping allowed, sleeping needed |
PlayerSafehouse | false | Players may claim a safehouse |
| In SandboxVars.lua | ||
Zombies, PopulationMultiplier | 4, 0.65 | Number of zombies (Normal) |
Speed, SprinterPercentage | 4, 0 | Speed (Random), no sprinters |
Transmission, Mortality | 1, 5 | Infection through blood and saliva, death after 2 to 3 days |
FoodLootNew, WeaponLootNew etc. | 0.8, 0.6 | Loot per category, from 0 to 4 |
HoursForLootRespawn | 0 | Loot returns after X hours; 0 is never |
WaterShut, ElecShut | 2, 2 | Water off within 0 to 30 days, power within 14 to 30; 9 is never |
Global | 1.0 | Experience for all skills; 2.0 is double |
How do you turn PvP on or off?
PvP is on by default (PVP=true), but with the safety system (SafetySystem=true) each player decides whether to be in PvP mode (the skull on the left). With SafetySystem=false anyone can hit anyone at any time; PVP=false turns PvP off.
How do safehouses and loot respawn work?
Players cannot claim a safehouse by default: set PlayerSafehouse=true. A safehouse is not locked by default: SafehouseAllowTrepass=false keeps others out unless invited, and SafehouseAllowLoot=false stops them taking anything. Players who stay away from their safehouse for 144 real-world hours are removed automatically (SafeHouseRemovalTime).
Loot respawn is off. Set HoursForLootRespawn in SandboxVars.lua to a number of hours: after that, looted containers in towns and trailer parks refill, except by default containers with 5 or more items (MaxItemsForLootRespawn), buildings players have barricaded or built in, and safehouses.
How do you make zombies faster or deadlier?
In SandboxVars.lua, under ZombieLore and ZombieConfig:
- Sprinters: with
Speed = 1all zombies are sprinters; for just some, keepSpeed = 4(Random) and setSprinterPercentageto, say, 6 (Low) or 33 (Normal). - Numbers: change
Zombies(1 Insane to 6 None) andPopulationMultipliertogether: Low 0.15, Normal 0.65, High 1.2, Very High 1.6, Insane 2.5. - Infection: with
Transmission = 1a bite always infects, a laceration in 25 and a scratch in 7 percent of cases; withMortality = 7you get sick but do not die.
What is different in Build 42?
Build 42 has been stable since 29 July 2026; the latest version is 42.21 (28 September 2026).
- You set loot per category (0 to 4), and a day lasts 90 minutes by default (
DayLength = 4). Seed=in the .ini file decides things like where basements are; a new seed only works once you removemap_worldgen.binfrom your world's folder.- Old names may not work:
DisableSafehouseWhenPlayerConnectedis nowDisableSafehouseWhenOwnerConnected, andAutoCreateUserInWhiteListis gone.
How do you change the settings?
- Make a backup and stop your server.
- Open the file in the file manager or over SFTP.
- Change the value and save. In
SandboxVars.lua, keep the comma at the end of each line. - Start your server: it reads both files again.
Server options in the .ini file can also change live: in the console, type for example changeoption PVP "false", then reloadoptions (in game, as an admin, with a slash in front). showoptions lists all values. reloadoptions only reloads the .ini file; SandboxVars.lua is read only on a restart.
What mistakes do people often make?
- Expecting more loot in searched houses. Loot is created when a container first loads, so a higher value mostly shows where nobody has been yet (unless loot respawn is on).
- Changing the Server Name in Startup. A new name means a different .ini file and a new world.
How it works on a CakeHosting Project Zomboid server
Your server runs Build 42 by default and starts with -cachedir=/home/ and the Server Name from Startup as -servername. Your files are therefore in the .cache/Server folder, named after your server: for example MyServer.ini and MyServer_.
- Startup: Server Name (letters and numbers only), Admin Username and Admin Password. A password for players goes in
Password=in the .ini file. - Updates: Steam Auto Update is off by default; turn it on if your server should update on every start.
- Schedules: schedule a nightly restart, first sending
servermsg "Restart in 5 minutes"andsave.
Your own rules? On your own Project Zomboid server you choose PvP, zombies and loot, and your world is kept. See the Project Zomboid servers, from €4.95 a month.