inventory
Go to qb-inventory > server > functions.lua
At the bottom add the following.
function ClearStash(stashID)
if not Inventories[stashID] then return end
Inventories[stashID].items = {}
MySQL.prepare('INSERT INTO inventories (identifier, items) VALUES (?, ?) ON DUPLICATE KEY UPDATE items = ?', { stashID, json.encode(Inventories[stashID].items), json.encode(Inventories[stashID].items) })
end
exports('ClearStash', ClearStash)
function GetStashItems(stashID)
return Inventories[stashID] and Inventories[stashID].items or {}
end
exports('GetStashItems', GetStashItems)If done correctly should look like this.

Last updated