Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-07-06 15:22:39 -07:00
1 parent 8690348917
commit e21b4e11d5
1 file changed
+9
+9
View File
@@ -198,3 +198,12 @@ function GetImage(img)
return "nui://core_inventory/html/img/".. QBCore.Shared.Items[img].image
end
end
function GetLabel(label)
if GetResourceState('ox_inventory') == 'started' then
local Items = exports['ox_inventory']:Items()
return Items[label]['label']
else
return QBCore.Shared.Items[label]['label']
end
end