Skip to content
/SLASHPLAY

How to change canned food loot in Project Zomboid

Set CannedFoodLootNew = 1.2, in Zomboid/Server/main_SandboxVars.lua on the Files tab and restart; the default is 0.6.

CannedFoodLootNew

The loot rarity value for canned and dried food and drinks, from 0 to 4; higher means more. Default 0.6.

CannedFoodLootNew = <number>,

Examples

CannedFoodLootNew = 1.2,

More of it.

What it does

Covers canned and dried food and drinks. Raise it for more of it in containers, lower it for less.

Good to know

  • Set it in Zomboid/Server/main_SandboxVars.lua on the **Files** tab (under **Advanced**) and restart the server.
  • Loot that has already spawned stays as it is; the new value applies to containers that haven't been filled yet.

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.