Closed ghost closed 2 years ago
Update: It seems that the event for updating the object isn't working correctly because if I manually reget the QBCore object at the start of my function AddItem seems to work again. although /giveitem still isn't working
You need the refresh object in the inventory resource as well as pretty much every other resource you want to access the new items.
So intended behavior but wrong use case? Can this be closed then @Waves966?
This is still an issue. I am able to reproduce this in a qb-core / qb-inventory environment by:
Why was this issue closed?
I'll add, this seems related to the open issue #854
Describe the bug When you add/remove items via the export
exports['qb-core']AddItems(items)
and try to use/giveitem
it will always say the item does not exist.To Reproduce Steps to reproduce the behavior:
exports['qb-core']AddItem(item)
Expected behavior I expect the giveitem command to be able to give items that are added via the exports.
Screenshots If applicable, add screenshots to help explain your problem.
Questions (please complete the following information):
qb-
to something custom? [e.g. yes/no] noAdditional context It seems that sometimes the shared object in the resource isn't getting updated even though I have