Inventory Feature for QBCore Inventorynp And inspired by NoPixel 4.0.
Manual
pappu-inventorynp
from our GitHubpappu-inventorynp
into your resources folder or any subfolderpappu-inventorynp
and not pappu-inventorynp-main
pappu-inventorynp
with pappu-inventorynp
.If you want the decay system to work, then please read the information below, otherwise it won't work.
You need to add a decay value for all items in your qb-core/shared/items.lua
file, the variable stands for the number of days it takes to decay.
-- decay = The number of days it takes for an item to decay
-- delete = If set to true, the item will be removed once it decays
["decay"] = 28.0, ["delete"] = true
['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', ["decay"] = 3.0, ["delete"] = true},
In this example, the sandwich item would take 3 days to decay and once it does, it would be removed.
Runs at ~ 0.00 to 0.01 ms if you have more optimization suggestions feel free to reach out