overextended / ox_inventory

Slot-based inventory with metadata.
https://overextended.dev/ox_inventory
GNU General Public License v3.0
451 stars 701 forks source link

Remove a bulletproof or parachute #1190

Open Bulle93230 opened 1 year ago

Bulle93230 commented 1 year ago

Hi, is it possible to add a button in the inventory to remove a bulletproof and a parachute if equipped ? (or something else) And for bulletproof maybe if you took damages it durability is lower and the next time you'll equip it, it will give less armor ? :) Thank you for you work !

jnccloud commented 1 year ago

I feel like this is going too far for what the inventory should do. You could create logic using events in your items.lua that do something like:

These can be done by modifying your armor and parachute scripts to update the items/inventory as needed. Because of the variability in armor and parachutes between frameworks and even individual servers, it doesn't make sense to me to include it in the inventory system.