Skip to content
/SLASHPLAY

How to make food last longer in Project Zomboid

Set FoodRotSpeed = 4, in Zomboid/Server/main_SandboxVars.lua on the Files tab and restart the server.

FoodRotSpeed

How fast food spoils, in or out of a fridge, from 1 very fast to 5 very slow. Default 3.

FoodRotSpeed = <number>,

Examples

FoodRotSpeed = 4,

Slow.

Values

ValueWhat it does
1 Very Fast
2 Fast
3Default Normal
4 Slow
5 Very Slow

What it does

Slower rot makes food last longer.

Good to know

  • Set it in Zomboid/Server/main_SandboxVars.lua on 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.