mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-16 21:46:03 +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 = ""
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user