Closed ShomyTKD closed 1 year ago
server
RegisterNetEvent('qb-inventory:server:SaveStashItems', function(stashId, items)
MySQL.Async.insert('INSERT INTO stashitems (stash, items) VALUES (:stash, :items) ON DUPLICATE KEY UPDATE items = :items', {
['stash'] = stashId,
['items'] = json.encode(items)
})
end)
This issue has had 60 days of inactivity & will close within 7 days
Describe the bug When repairing a vehicle as a mechanic, you should be using the items inside mechanic's stash. However, once the vehicle is fixed, items don't get removed from the stash since the event SaveStashItems doesn't exist in qb-inventory anymore.
To Reproduce Steps to reproduce the behavior:
Expected behavior After fixing a vehicle, stash should update it's items.
Screenshots N/A
Questions (please complete the following information):
qb-
to something custom? NoAdditional context N/A