From bf759ebaf82f7484b1799d139b25f24f160b1dbd Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 17 Jul 2025 12:38:31 +0100 Subject: [PATCH] Fix inventory config check to check "starting" scripts --- frameworkCache.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frameworkCache.lua b/frameworkCache.lua index 172d892..b953b9f 100644 --- a/frameworkCache.lua +++ b/frameworkCache.lua @@ -376,7 +376,10 @@ for script, data in pairs(invWeightTable) do if checkExists(script) then if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then goto skip end - while GetResourceState(script) ~= "started" do Wait(100) print("Waiting for script start") end + while GetResourceState(script) ~= "started" and GetResourceState(script) ~= "stopped" do + Wait(100) + print("Waiting for script start") + end local attempts = data.fallback or { data } local lookup, used, err