From 4d4c45d99ec317ba133557484e05fc02169637b2 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:42:52 -0700 Subject: [PATCH] Update functions.lua --- client/functions.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index ad4ba4d..df21eee 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -157,7 +157,11 @@ end function GetImage(img) if GetResourceState('ox_inventory') == 'started' then local Items = exports['ox_inventory']:Items() - return Items[img]['client']['image'] or Items[img] + if Items[img]['client']['image'] == nil then + return Items[img] + else + return Items[img]['client']['image'] + end elseif GetResourceState('ps-inventory') == 'started' then return "nui://ps-inventory/html/images/".. QBCore.Shared.Items[img].image elseif GetResourceState('lj-inventory') == 'started' then