Skip to main content

getInventoryItem

xPlayer.getInventoryItem(item)

This function gets an inventory item.

Argument

ArgumentData TypeOptionalDefault ValueExplanation
itemstringNo-Item name

Returned Table Content

ChildData TypeExplanation
namestringItem name
countnumberItem count
labelstringItem label
weightnumberItem weight
usablebooleanWhether or not the item is usable
rarebooleanWhether or not the item is rare
canRemovebooleanWhether or not the item can be thrown