|  Developer
Updated on November 22, 2021

get_item()

  • Get item registered within the hub by specified id.
Edit
  • params: item id (string).
  • return: item (table) or nil in a case of an error.
Edit
				
					require "core"

local item = core.get_item( item_id )
if item then
    print( "item name:" .. item.name )
end