Item Decay. Free

ItemDecay – Open-Source Automatic Item Expiration & Degradation for VORP Inventory

:small_blue_diamond: 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.


:rocket: Key Features:

:white_check_mark: :arrows_counterclockwise: 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.
:white_check_mark: :hammer_and_wrench: Custom Expiration Rules – Define degradation time, expiration thresholds, replacements, or full removal of items.
:white_check_mark: :package: Works with Any Item (Except Weapons) – Apply expiration to food, crafting materials, medical supplies, or any other inventory item.
:white_check_mark: :zap: Performance Optimized – Periodically checks and updates item conditions without server lag.
:white_check_mark: :loudspeaker: Realistic Player Notifications – Players get notified when an item degrades, is replaced, or removed.
:white_check_mark: :electric_plug: 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.
:white_check_mark: :bar_chart: Developer-Friendly API Export – Easily modify item degradation dynamically in your scripts.
:white_check_mark: :globe_with_meridians: Open-Code – Freely access, modify, and contribute to the script’s development.


:hammer_and_wrench: 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

Discord Support

[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

Hey, will this also work in storages, stashes, bags etc.?

Please update your post to remove references to “open source”, as this is misleading. Consider using the word “source” instead; for example: “the client source is editable, while the server is escrowed”.

Thank you!
:mascot:

1 Like

Hello. The script is open-source, and all code is fully accessible to users.

I would also like to remind you that Tebex still does not support Escrow for RedM Lua scripts.

@redweststudios Currently, Vorp Core does not support custom inventory. This script only helps update the database via the config and control actions that occur when an item decays.

But that means an Item can also decay when in an custom inventory or am I understanding something wrong?

Vorp Inventory is responsible for tracking item decay. Currently, decay is not calculated in custom inventory—it freezes and becomes unaffected, making items safe from degradation.

You are operating off an incorrect definition of open source, please see below:

A paid resource inherently cannot be open source.

Please resolve this issue:

Updated