From 4e645001fb5bd9464e0c753cfd1624365723d27c Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 18 Jan 2024 00:50:54 +0000 Subject: [PATCH] Stop invImg giving errors if no image --- wrapper.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wrapper.lua b/wrapper.lua index 6e51e24..33bb1f4 100644 --- a/wrapper.lua +++ b/wrapper.lua @@ -1144,13 +1144,13 @@ function invImg(item) local imgLink = "" if item ~= "" and Items[item] 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 - 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 - 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 - imgLink = "nui://"..QBInv.."/html/images/"..Items[item].image + imgLink = "nui://"..QBInv.."/html/images/"..(Items[item].image or "") end end return imgLink @@ -1165,4 +1165,4 @@ function registerStash(name, label) exports[QSInv]:RegisterStash(name, 50, 4000000) end end --- IN NO WAY PERFECT -- \ No newline at end of file +-- IN NO WAY PERFECT --