Inventory
Follow this instructions only if you have one of the following inventories:
qb-inventory, lj-inventory, ps-inventory
If using qb-inventory, open qb-inventory/fxmanifest.lua if the version is 2.0.0 or higher then jump straight to Version 2.x.
The following steps are for qb-inventory old versions 1.x.x
Go to av_laptop/config/_inventory.lua and set
Config.OldQBInventory = trueGo to inventory-folder/server/main.lua
Search the function SetItemData and replace it with:
local function SetItemData(source, itemName, key, val, slot)
if not itemName or not key then return false end
local Player = QBCore.Functions.GetPlayer(source)
if not Player then return end
local item = nil
if slot then
item = Player.PlayerData.items[slot]
else
item = GetItemByName(source, itemName)
end
if not item then return false end
item[key] = val
Player.PlayerData.items[item.slot] = item
Player.Functions.SetPlayerData("items", Player.PlayerData.items)
return true
endSearch the function RemoveFromStash and place the export at the end:
Search the function AddToStash and place the export at the end like this:
Search the function addTrunkItems and replace it with:
Search the function GetStashItems and place the export like this:
Search for SaveStashItems function and add an export like this:
Search for the event inventory:server:SaveInventory and replace it with:
Search for the event inventory:server:OpenInventory and add the field newLabel like this:
Copy/paste this code at the end of the file:
Version 2.x
Go to qb-inventory/server/functions.lua and replace function SetItemData with the following:
In qb-inventory/server/functions.lua edit the function
InitializeInventory:

Add this export in qb-inventory/server/main.lua at the end of the file:
Last updated