function createDisplayItem(item, esxItem, slot, price, type)
local max = 1000000000
return {
617= id = esxItem.name,
itemId = esxItem.name,
qty = item.count,
slot = slot,
label = esxItem.label,
type = type or 'item',
max = getItemDataProperty(esxItem.name, 'max') or max,
stackable = true,
unique = esxItem.rare,
usable = esxItem.usable,
giveable = true,
description = getItemDataProperty(esxItem.name, 'description'),
weight = getItemDataProperty(esxItem.name, 'weight'),
metadata = {},
staticMeta = {},
canRemove = esxItem.canRemove,
price = price or 0,
needs = false,
closeUi = getItemDataProperty(esxItem.name, 'closeonuse'),
}