/qb-inventory-decay

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

qb-inventory with decay system and lj-inventory look

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

Dependencies

How to install

  • Download source files from github
  • Drag source files into your resources folder
  • Rename folder to qb-inventory

image

TO DO

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"] = nil, ["decay"] = 28.0 -- for 28 days

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},

In this example our sandwich will decay in 3 days.

Previews

full inventory


Credits


Issues and Suggestions

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.