If you like my work and want to support me :
For issues and enhancements you can send a PR or contact me from my Discord channel!
Team Hi-Dev
Runs at ~ 0.00 to 0.01 ms if you have more optimization suggestions feel free to reach out
Inventory is up to date with the latest qb-inventory fixes and dupe
- Download source files from github
- Drag source files into your resources folder
- Rename folder to
qb-inventory
you need to add a decay and created value in your qb-core/shared/items for all items, the decay is set to be the days the item lasts
-- created = this will get filled in with the time when it's created, just leave this
-- decay = amount of days that an item will decay
-- delete = choice whether to remove the item when it's decayed or not
["created"] = nil, ["decay"] = 28.0, ["delete"] = true
Example:
['sandwich'] = {['name'] = 'sandwich', ['label'] = 'Sandwich', ['weight'] = 200, ['type'] = 'item', ['image'] = 'sandwich.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Nice bread for your stomach', ["created"] = nil, ["decay"] = 3.0, ["delete"] = true},
In this example our sandwich will decay in 3 days and removed when used.
Please use the GitHub issues system to report issues or make suggestions, when making suggestion, please keep [Suggestion] in the title to make it clear that it is a suggestion.