Update functions.lua
This commit is contained in:
1 parent
f8bb79b640
commit
4d4c45d99e
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user