🥩 Advanced Item Decay System 2.0
Give food and supplies a shelf life with CS Item Decay, built for RedM servers using VORP Inventory v2.
Players can see what will spoil first right in their satchel. Server owners decide how long items last, which storages preserve them, and what they turn into when they spoil.
⭐ Features
✔ Visible freshness and time remaining in the VORP item description
✔ Persistent freshness that follows stacks between inventories and survives restarts
✔ Configurable storage rates with default modifiers of 75% for horse storage and 50% for wagons and safes, applied to each item’s storage shelf life
✔ Paused decay in any registered storage configured with a zero decay rate
✔ Optional spoilage warnings when a stack is close to expiring
✔ Configurable spoilage outcomes that replace expired items or remove them
✔ Spoilage recovery that queues a replacement when the satchel is full and retries once there’s space
✔ Shared item presets with individual overrides for shelf life and spoilage results
✔ Admin tools for inspecting stack freshness and reviewing pending replacements
✔ Low-overhead updates driven by inventory events, scheduled expirations, and a batched fallback scan
✔ Automatic startup version check
📦 How Spoilage Works
When a stack spoils in your satchel, it turns into the configured replacement or disappears, depending on the item rule. An expired stack in storage displays Spoiled and converts when withdrawn.
✅ Perfect For
- Survival and economy-focused roleplay
- Hunting, fishing, farming, and cooking
- Player-run food shops and supply businesses
- Servers that want storage and restocking to matter
⚙️ Requirements
- RedM
- VORP Core
- VORP Inventory v2
- oxmysql
The included README covers installation, upgrades, configuration, admin commands, and optional consumption integrations. No SQL migration is required.
