How to make loot respawn in Project Zomboid
Set HoursForLootRespawn = 168, in Zomboid/Server/main_SandboxVars.lua on the Files tab and restart the server.
HoursForLootRespawn
When above 0, containers in towns and trailer parks respawn loot after this many hours. Default 0, off.
HoursForLootRespawn = <number>, Examples
HoursForLootRespawn = 168, Loot respawns after a week.
What it does
A container must have been looted once to respawn. Respawn ignores whether anyone can see it.
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.