From e33b68bd55027de3cf8e0a147e926306aa701ea1 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Wed, 17 Jan 2024 23:39:10 +0000 Subject: [PATCH] change qs-inv getinventory to getuserinventory --- crafting.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crafting.lua b/crafting.lua index 80d0267..b39dd5e 100644 --- a/crafting.lua +++ b/crafting.lua @@ -308,7 +308,7 @@ function hasItem(items, amount, src) local amount, count = amount and amount or else if Config.System.Debug then print("^6Bridge^7: ^3HasItem^7: ^2"..tostring(items).." ^1NOT FOUND^7") end return false end elseif GetResourceState(QSInv):find("start") then - for _, itemData in pairs(exports[QSInv]:GetInventory()) do + for _, itemData in pairs(exports[QSInv]:getUserInventory()) do if itemData and (itemData.name == items) then if Config.System.Debug then print("^6Bridge^7: ^3HasItem^7: ^2Item^7: '^3"..tostring(items).."^7' ^2Slot^7: ^3"..itemData.slot.." ^7x(^3"..tostring(itemData.amount).."^7)") end count += (itemData.amount or 1)