2025-01-10 16:36:20 -05:00
|
|
|
if GetResourceState('codem-inventory') ~= 'started' then return end
|
|
|
|
|
|
2025-01-31 19:15:33 -05:00
|
|
|
local codem = exports['codem-inventory']
|
|
|
|
|
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory = Inventory or {}
|
|
|
|
|
|
|
|
|
|
Inventory.GetImagePath = function(item)
|
2025-02-22 19:20:49 -05:00
|
|
|
local file = LoadResourceFile("codem-inventory", string.format("html/images/%s.png", item))
|
|
|
|
|
local imagePath = file and string.format("nui://codem-inventory/html/images/%s.png", item)
|
2025-01-10 16:36:20 -05:00
|
|
|
return imagePath or "https://avatars.githubusercontent.com/u/47620135"
|
|
|
|
|
end
|