Version 1.x
This is for qb-inventory version 1.x, you can verify it in the fxmanifest.lua
Go to
av_laptop/config/_inventory.luaand set
Config.OldQBInventory = trueGo to
qb-inventory/fxmanifest.luaand delete anyserver_scriptline you might have and replace it with:
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/*.lua',
}Place the following file in
qb-inventory/server/folder:
The following edits should be made in
qb-inventory/server/main.luaSearch the event inventory:server:SetInventoryData, inside this event you should have a line pretty similar to this:
if (fromInventory == "player" or fromInventory == "hotbar") and (QBCore.Shared.SplitStr(toInventory, "-")[1] == "itemshop" or toInventory == "crafting") then
return
endReplace that line with the following:
Search the function SetItemData and replace it with:
Replace the function AddToStash:
Search the function addTrunkItems and replace it with:
Search for the event inventory:server:SaveInventory and replace it with:
Search for the event inventory:server:OpenInventory and do the following:
Add the parameter newLabel inside the function()
Replace
secondInv.label = 'Stash-'..idwith the following:
Should look something like this:
Copy/paste this code at the end of the file:
Last updated