Sandbox Settings Guide

Complete guide to Project Zomboid SandboxVars.lua settings for customizing time, weather, farming, vehicles, XP, and more.

The SandboxVars.lua file controls almost every gameplay aspect of your Project Zomboid server. This guide covers the most important settings organized by category.

How to Edit

Open the file

On XGamingServer, go to Files and navigate to:

Zomboid/Server/[servername]_SandboxVars.lua

Edit the values

Change the settings you want to modify. Values are in Lua format.

Save and restart

Save the file and restart from the Dashboard.

📝 Note: For zombie and loot settings specifically, see Zombie Settings and Loot Respawn.

Time & Day Settings

SettingDefaultDescription
DayLength1Day length (1=15 min, 2=30 min, 3=1 hr, 4=2 hr ... up to real-time)
StartMonth7Starting month (1=Jan, 7=Jul, etc.)
StartDay1Starting day of the month
StartTime2Start time (1=7am, 2=9am, 3=12pm, 4=2pm, 5=5pm, 6=9pm, 7=12am, 8=2am, 9=5am)
NightLength1Night length modifier (1=Short, 2=Normal, 3=Long, 4=Always Night)

Weather & Season

SettingDefaultDescription
Temperature3Temperature severity (1=Very Cold, 2=Cold, 3=Normal, 4=Warm, 5=Very Warm)
Rain3Rain frequency (1=Very Dry, 2=Dry, 3=Normal, 4=Rainy, 5=Very Rainy)
ErosionSpeed3How fast nature reclaims (1=Very Fast, 2=Fast, 3=Normal, 4=Slow, 5=Very Slow)
ErosionDays0Days before erosion starts (0 = immediate)

Water & Electricity

SettingDefaultDescription
WaterShut2When water shuts off (0=Instant, 1=0-30 days, 2=0-2 months, 3=0-6 months, 4=0-1 year, 5=0-5 years, 6=Never)
ElecShut2When electricity shuts off (same scale as water)
WaterShutModifier-1Exact day for water shutoff (-1 = use random within WaterShut range)
ElecShutModifier-1Exact day for electricity shutoff
GeneratorSpawning3Generator spawn frequency (1=Extremely Rare ... 5=Abundant)
GeneratorFuelConsumption1.0Fuel consumption multiplier

Never Shut Off Utilities

WaterShut = 6,
ElecShut = 6,

XP & Skills

SettingDefaultDescription
XPMultiplier1.0Global XP multiplier
XPMultiplierAffectsPassivetrueWhether multiplier applies to passive XP gain
StatsDecrease3How fast needs decay (1=Very Fast ... 5=Very Slow)

Boosted XP for Faster Progression

XPMultiplier = 3.0,
XPMultiplierAffectsPassive = true,

Farming & Nature

SettingDefaultDescription
Farming3Farm speed (1=Very Fast ... 5=Very Slow)
NatureAbundance3Foraging abundance (1=Very Poor ... 5=Very Abundant)
FishingAbundance3Fishing success rate
PlantResilience3How resilient plants are
PlantAbundance3How many crops plants yield

Vehicles

SettingDefaultDescription
EnableVehiclestrueEnable/disable vehicles
CarSpawnRate3Vehicle spawn frequency (1=Very Rare ... 5=Abundant)
ChanceHasGas3Chance vehicles have fuel
InitialGas3Starting fuel level in vehicles
CarGeneralCondition3Average vehicle condition (1=Terrible ... 5=Pristine)
CarDamageOnImpact3Damage vehicles take on impact
CarGasConsumption1.0Fuel consumption rate

Construction & Crafting

SettingDefaultDescription
ConstructionBonusPoints0Bonus construction XP
CookingBonusPoints0Bonus cooking XP
FarmingBonusPoints0Bonus farming XP
MaxPlanksPerTree3Planks obtained per tree
AllClothesUnlockedfalseUnlock all clothing recipes

Casual PvE

DayLength = 3,
XPMultiplier = 2.0,
WaterShut = 6,
ElecShut = 6,
Temperature = 3,
ZombieCount = 4,
LootRespawn = 4,

Hardcore Survival

DayLength = 2,
XPMultiplier = 1.0,
WaterShut = 1,
ElecShut = 1,
Temperature = 2,
ZombieCount = 2,
LootRespawn = 2,
HoursForLootRespawn = 0,

Roleplay Server

DayLength = 4,
XPMultiplier = 1.5,
WaterShut = 6,
ElecShut = 6,
ZombieCount = 5,
PopulationMultiplier = 0.3,
EnableVehicles = true,
CarSpawnRate = 4,

See also: Zombie Settings | Loot Respawn | 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