🍽️Prison Food System

The prison food system in Dynyx Prison allows inmates to receive meals at scheduled times using an interactive progress bar and configurable tray rewards. You can customize what meals are served, when they’re available, and even include surprise contraband drops.


πŸ“¦ Configuration Location

You’ll find all food settings inside:

Config.PrisonTrayFoods

🍴 Tray Item

trayItem = "prison_tray"

This is the name of the item used as the prison food tray. When the player collects food, this item is temporarily used during the progress bar action.


⏳ Progress Bar

progressbarDuration = 5000

This is the duration (in milliseconds) that it takes to grab the food from the counter. 5000ms = 5 seconds


🎁 Reward Items

rewardItems = {
    { name = "sandwich", amount = 1 },
    { name = "water_bottle", amount = 1 },
    { name = "prison_note", amount = 1, chance = 30 },
}
  • Items listed here are given to the player after the progress bar finishes.

  • name = item name (must exist in your inventory)

  • amount = how many are given

  • chance = (optional) percent chance of the item dropping

If no chance is listed, the item is guaranteed.


⏰ Meal Time Restrictions

Meals can only be collected during these two time windows:

AvailableHours = {
    morning = {
        startHour = 7,
        endHour = 9,
    },
    evening = {
        startHour = 18,
        endHour = 20
    }
}
  • Players can only grab a tray once during each time window.

  • If they miss the time, they must wait for the next meal period.

This enforces realistic timing and prevents food spam inside the prison.


🧠 Tips

Want This?
Do This

Only serve meals once a day

Remove one of the time periods (e.g., remove evening)

Add contraband to trays

Add rare reward items with a low chance value

Make trays faster to grab

Lower progressbarDuration to 3000

Last updated