Configure Sleep and Time Settings

Manage time progression, sleeping, and pause-when-empty behavior on your Project Zomboid server.

Controlling how time works on your server affects pacing and the overall experience. This guide covers sleep, time, and pause settings.

Time Settings

Edit Zomboid/Server/[servername]_SandboxVars.lua:

SettingDefaultDescription
DayLength1Day length (1=15 min, 2=30 min, 3=1 hr, 4=2 hr, etc.)
NightLength1Night length (1=Short, 2=Normal, 3=Long, 4=Always Night)
StartMonth7Month the game starts (1–12)
StartDay1Day of the month to start
StartTime2Starting time of day

Pause When Empty

When no players are online, you can pause the server to freeze time progression:

Edit Zomboid/Server/[servername].ini:

[servername].ini
PauseEmpty=true

This prevents zombies from moving, time from passing, and resources from being used when nobody is playing. Highly recommended for all servers.

Sleep Settings

SettingLocationDescription
SleepAllowed.iniAllow players to sleep
SleepNeeded.iniRequire sleep for character needs
[servername].ini
SleepAllowed=true
SleepNeeded=false

📝 Note: In multiplayer, sleeping fast-forwards time for the sleeping player but doesn't affect the server clock. Other players continue in real-time.

Common Configurations

Casual (no sleep needed):

SleepAllowed=true
SleepNeeded=false

Realistic (sleep required):

SleepAllowed=true
SleepNeeded=true

No sleeping at all:

SleepAllowed=false
SleepNeeded=false

See also: Sandbox Settings | Performance Guide | Configure Your Server

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Project Zomboid server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page