Skip to content

function getItemBySlot (client-side)

Available since version: 0.0.2

The function is used to get the item from hero inventory that is on specified slot.

Declaration

{instance, amount, name} getItemBySlot(int inventorySlot)

Parameters

  • int inventorySlot: the inventory slot.

Returns {instance, amount, name}

the item that is on specified slot or null.