How to Configure Water and Electricity Shutoff on Your Project Zomboid Server
Set when water and electricity shut off on your Project Zomboid server, or disable shutoffs entirely.
In Project Zomboid, water and electricity eventually shut off as part of the apocalypse simulation. You can control when (or if) this happens on your server.
Shutoff Settings
Edit Zomboid/Server/[servername]_SandboxVars.lua:
| Setting | Default | Description |
|---|---|---|
WaterShut | 2 | When water shuts off |
ElecShut | 2 | When electricity shuts off |
WaterShutModifier | -1 | Exact day for shutoff (-1 = random within range) |
ElecShutModifier | -1 | Exact day for shutoff (-1 = random within range) |
Shutoff Scale
| Value | Meaning |
|---|---|
| 0 | Instant (off at start) |
| 1 | 0–30 days |
| 2 | 0–2 months |
| 3 | 0–6 months |
| 4 | 0–1 year |
| 5 | 0–5 years |
| 6 | Never (always on) |
Never Shut Off Utilities
For a more casual experience:
WaterShut = 6,
ElecShut = 6,Set an Exact Shutoff Day
Use the modifier settings to set a specific day:
WaterShut = 2,
WaterShutModifier = 30,
ElecShut = 2,
ElecShutModifier = 14,This shuts off electricity on day 14 and water on day 30.
Generator Settings
After electricity shuts off, players can use generators. Related settings:
| Setting | Default | Description |
|---|---|---|
GeneratorSpawning | 3 | How often generators spawn (1=Extremely Rare, 5=Abundant) |
GeneratorFuelConsumption | 1.0 | Fuel consumption rate (lower = lasts longer) |
Easy Generators
GeneratorSpawning = 5,
GeneratorFuelConsumption = 0.5,Scarce Generators
GeneratorSpawning = 1,
GeneratorFuelConsumption = 2.0,Recommended Presets
Casual (Never Lose Utilities)
WaterShut = 6,
ElecShut = 6,Balanced (Lose Utilities After ~1 Month)
WaterShut = 2,
WaterShutModifier = 45,
ElecShut = 2,
ElecShutModifier = 30,
GeneratorSpawning = 3,Hardcore (Lose Utilities Quickly)
WaterShut = 1,
WaterShutModifier = 7,
ElecShut = 1,
ElecShutModifier = 3,
GeneratorSpawning = 1,
GeneratorFuelConsumption = 2.0,Related Guides
See also: Sandbox Settings | Configure Your Server
If you need help, join our Discord.
How is this guide?

How to Configure Vehicle Settings on Your Project Zomboid Server
Customize vehicle spawning, fuel consumption, damage, and condition settings on your Project Zomboid server.
How to Configure Weather and Seasons on Your Project Zomboid Server
Customize weather patterns, rain, temperature, and seasonal progression on your Project Zomboid server.