Fix inventory config check to check "starting" scripts

This commit is contained in:
Jim Shield
2025-07-17 12:38:31 +01:00
parent 3d0eb3df65
commit bf759ebaf8

View File

@@ -376,7 +376,10 @@ for script, data in pairs(invWeightTable) do
if checkExists(script) then if checkExists(script) then
if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then goto skip end 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 attempts = data.fallback or { data }
local lookup, used, err local lookup, used, err