Mps Ox Invhooks
This script adds server-side hooks to ox_inventory that alter item degradation behavior during transfers into and out of special containers.
The fridge hook extends remaining lifespan of degradable items stored in any stash containing the keyword “fridge” by scaling durability timestamps and metadata. The freezer hook pauses degradation entirely by converting timestamps to static percentages for stashes containing “freezer”.
- Works with ox_inventory v2.47.0+ for reliable metadata handling
- Configurable stash name patterns via fridgePattern and freezerPattern
- Adjustable durability multiplier for fridge storage
- Automatic reversal of effects when items are removed