mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
Stop invImg giving errors if no image
This commit is contained in:
10
wrapper.lua
10
wrapper.lua
@@ -1144,13 +1144,13 @@ function invImg(item)
|
|||||||
local imgLink = ""
|
local imgLink = ""
|
||||||
if item ~= "" and Items[item] then
|
if item ~= "" and Items[item] then
|
||||||
if GetResourceState(OXInv):find("start") then
|
if GetResourceState(OXInv):find("start") then
|
||||||
imgLink = "nui://"..OXInv.."/web/images/"..Items[item].image
|
imgLink = "nui://"..OXInv.."/web/images/"..(Items[item].image or "")
|
||||||
elseif GetResourceState(QSInv and QSInv or ""):find("start") then
|
elseif GetResourceState(QSInv and QSInv or ""):find("start") then
|
||||||
imgLink = "nui://"..QSInv.."/html/images/"..Items[item].image
|
imgLink = "nui://"..QSInv.."/html/images/"..(Items[item].image or "")
|
||||||
elseif GetResourceState(CoreInv and CoreInv or ""):find("start") then
|
elseif GetResourceState(CoreInv and CoreInv or ""):find("start") then
|
||||||
imgLink = "nui://"..CoreInv.."/html/img/"..Items[item].image
|
imgLink = "nui://"..CoreInv.."/html/img/"..(Items[item].image or "")
|
||||||
elseif GetResourceState(QBInv and QBInv or ""):find("start") then
|
elseif GetResourceState(QBInv and QBInv or ""):find("start") then
|
||||||
imgLink = "nui://"..QBInv.."/html/images/"..Items[item].image
|
imgLink = "nui://"..QBInv.."/html/images/"..(Items[item].image or "")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return imgLink
|
return imgLink
|
||||||
@@ -1165,4 +1165,4 @@ function registerStash(name, label)
|
|||||||
exports[QSInv]:RegisterStash(name, 50, 4000000)
|
exports[QSInv]:RegisterStash(name, 50, 4000000)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- IN NO WAY PERFECT --
|
-- IN NO WAY PERFECT --
|
||||||
|
|||||||
Reference in New Issue
Block a user