|  Developer
Updated on November 22, 2021

get_items()

  • Get all items registered within the hub.
Edit
  • params: none.
  • return: an array of items (table) or nil in a case of an error.
Edit
				
					require "core"

local items = core.get_items()
if items then
    for _, item in ipairs( items ) do
        print( "item name:" .. item.name )
    end
end