π½οΈ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 givenchance
= (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
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