jpr seems to be qb only so updating this for image pathing

This commit is contained in:
MrNewb committed 2025-04-10 07:04:46 -04:00
1 parent 6ddbb47e97
commit d52574a3ce
1 file changed
+14
@@ -24,3 +24,17 @@ Inventory.GetImagePath = function(item)
local imagePath = file and string.format("nui://jpr-inventory/html/images/%s.png", item)
return imagePath or "https://avatars.githubusercontent.com/u/47620135"
end
Inventory.GetItemInfo = function(item)
local itemData = Framework.Shared.Items[item]
if not itemData then return {} end
local repackedTable = {
name = itemData.name,
label = itemData.label,
stack = itemData.unique,
weight = itemData.weight,
description = itemData.description,
image = Inventory.GetImagePath(itemData.name)
}
return repackedTable
end