Inventory Update

Added serverside iteminfo and consolidated image path. Now returns full nui path in .image
This commit is contained in:
gononono64 committed 2025-04-16 05:24:03 -05:00
1 parent 5d3a9d1950
commit bd0074a156
22 files changed
+83 -9

No files matched your search

@@ -135,6 +135,7 @@ end
---@param item string
---@return string
Inventory.GetImagePath = function(item)
item = Inventory.StripPNG(item)
local pngPath = LoadResourceFile("inventory_images", string.format("html/images/%s.png", item))
local webpPath = LoadResourceFile("inventory_images", string.format("html/images/%s.webp", item))
local imagePath = pngPath and string.format("nui://inventory_images/html/images/%s.png", item) or webpPath and string.format("nui://inventory_images/html/images/%s.webp", item)