mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 22:36:04 +01:00
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
This commit is contained in:
@@ -365,7 +365,7 @@ local invWeightTable = {
|
|||||||
local invResource = ""
|
local invResource = ""
|
||||||
for script, data in pairs(invWeightTable) do
|
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 return end
|
if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then goto skip end
|
||||||
|
|
||||||
local lookup, err = getInventoryConfig(script, data)
|
local lookup, err = getInventoryConfig(script, data)
|
||||||
if not lookup then
|
if not lookup then
|
||||||
@@ -389,6 +389,7 @@ for script, data in pairs(invWeightTable) do
|
|||||||
invResource = script:gsub("-", "^7-^4"):gsub("_", "^7_^4")
|
invResource = script:gsub("-", "^7-^4"):gsub("_", "^7_^4")
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
::skip::
|
||||||
end
|
end
|
||||||
endTimer("InvWeight")
|
endTimer("InvWeight")
|
||||||
endTimer("InvSlots")
|
endTimer("InvSlots")
|
||||||
|
|||||||
Reference in New Issue
Block a user