Shared
Compatibility
Shared functions
getStaticItemsList
exports['jaksam_inventory']:getStaticItemsList()Returns
Example
-- Get the list of items
local items = exports['jaksam_inventory']:getStaticItemsList()
local weaponsCount = 0
for itemName, item in pairs(items) do
if item.type == 'weapon' then
weaponsCount = weaponsCount + 1
end
end
print("There are in total " .. weaponsCount .. " registered weapons in the inventory")getStaticItem
Parameters
Returns
Example
getItemLabel
Parameters
Returns
Example
getItemImagePath
Parameters
Returns
Example
Last updated