ItemDecay – Open-Source Automatic Item Expiration & Degradation for VORP Inventory
Description:
ItemDecay enhances the VORP Inventory system by introducing automatic item expiration and degradation. This open-source script eliminates the need for manual database edits—it dynamically sets degradation parameters for every item based on your configuration.
Whether you want food spoilage, material decay, or other item expiration mechanics, ItemDecay ensures a fully automated, immersive experience for your RedM roleplay server.
Key Features:
Full Automation – No need to manually adjust your database! The script automatically updates the database with degradation settings for every item based on your config.
Custom Expiration Rules – Define degradation time, expiration thresholds, replacements, or full removal of items.
Works with Any Item (Except Weapons) – Apply expiration to food, crafting materials, medical supplies, or any other inventory item.
Performance Optimized – Periodically checks and updates item conditions without server lag.
Realistic Player Notifications – Players get notified when an item degrades, is replaced, or removed.
Database Integration – On startup, the script scans your database and updates item degradation values based on
config.lua
, so you never have to do it manually.
Developer-Friendly API Export – Easily modify item degradation dynamically in your scripts.
Open-Code – Freely access, modify, and contribute to the script’s development.
Configuration Made Easy:
All settings are managed in config.lua, allowing you to:
- Define which items degrade and how fast.
- Set replacement items or choose if expired items should be removed.
- Adjust the frequency of degradation checks.
- Enable or disable player notifications.
The script automatically synchronizes with your database, applying configured values without requiring any manual SQL edits.
Degration System (Items in the Custom inventory do not lose degradation level(Only when dropped in the main inventory or on the ground))
Each item can optionally have an expiration date
Expired items cannot be used
Expired items are displayed in inventory with low opacity
[Download Free(https://gg-scripts-store.tebex.io/package/6679681)
Code is accessible | Yes |
Subscription-based | No |
Lines (approximately) | 200 |
Requirements | VORP CORE, VORP Inventory, ghmattimysql |
Support | Yes |