How to keep the power on in Project Zomboid
Set ElecShut = 9, (Disabled) in Zomboid/Server/main_SandboxVars.lua on the Files tab and restart the server.
ElecShut
When the power goes off for good, from 1 instant to 8 (6 to 12 months), or 9 never. Default 2, 14 to 30 days.
ElecShut = <number>, Examples
ElecShut = 9, Power stays on.
Values
| Value | What it does |
|---|---|
| 1 | Instant |
| 2Default | 14 - 30 Days |
| 3 | 14 Days - 2 Months |
| 4 | 14 Days - 6 Months |
| 5 | 14 Days - 1 Year |
| 6 | 14 Days - 5 Years |
| 7 | 2 - 6 Months |
| 8 | 6 - 12 Months |
| 9 | Disabled |
What it does
Counted from the default start date, July 9, 1993.
Good to know
- Set it in
Zomboid/Server/main_SandboxVars.luaon the **Files** tab (under **Advanced**) and restart the server.
Run it on your server
Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.
Your own
Project Zomboid server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.