From a9000443066861dfbb4e7f1958dcaf2cb7f6dd99 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Fri, 4 Jul 2025 23:44:37 +0100 Subject: [PATCH] Fix hang when using jpr-inventory The script was randomly looping the config file check, if it hit qb-inventory first it would end the check and break the script, changed it to skip instead and fixed it --- frameworkCache.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworkCache.lua b/frameworkCache.lua index 530cd4c..b197a74 100644 --- a/frameworkCache.lua +++ b/frameworkCache.lua @@ -365,7 +365,7 @@ local invWeightTable = { local invResource = "" for script, data in pairs(invWeightTable) do if checkExists(script) then - if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then return end + if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then goto skip end local lookup, err = getInventoryConfig(script, data) if not lookup then @@ -389,6 +389,7 @@ for script, data in pairs(invWeightTable) do invResource = script:gsub("-", "^7-^4"):gsub("_", "^7_^4") break end + ::skip:: end endTimer("InvWeight") endTimer("InvSlots")