start to doc functs

This commit is contained in:
MrNewb committed 2025-03-03 01:09:24 -05:00
1 parent 269fe5dcb6
commit 83b982c400
18 files changed
+426 -3

No files matched your search

@@ -10,10 +10,16 @@ RegisterNetEvent('community_bridge:client:qb-inventory:openStash', function(id,
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
end)
---comment
---@param item string
---@return boolean
Inventory.HasItem = function(item)
return qb:HasItem(item)
end
---comment
---@param item string
---@return string
Inventory.GetImagePath = function(item)
local file = LoadResourceFile("qb-inventory", string.format("html/images/%s.png", item))
local imagePath = file and string.format("nui://qb-inventory/html/images/%s.png", item)