> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get item label

> Gets the display label of an item.

Gets the display label of an item.

<CodeGroup>
  ```lua Export theme={null}
  exports['jaksam_inventory']:getItemLabel(itemName)
  ```

  ```lua Example theme={null}
  -- Get item label
  local label = exports['jaksam_inventory']:getItemLabel('bread')
  print(label) -- prints "Bread" or whatever label is set

  -- Check if item exists using label (despite this would work, the best way would be to use getStaticItem)
  if not exports['jaksam_inventory']:getItemLabel('invalid_item') then
      print('Item does not exist')
  end
  ```
</CodeGroup>

### Parameters

| Name       | Data Type | Description                               |
| ---------- | --------- | ----------------------------------------- |
| `itemName` | string    | The name of the item to get the label for |

### Return value

| Name    | Data Type     | Description                                              |
| ------- | ------------- | -------------------------------------------------------- |
| `label` | string \| nil | The display label of the item, nil if item doesn't exist |


## Related topics

- [Get item label](/jaksam-inventory/functions/shared/get-item-label.md)
- [Shared](/jaksam-inventory/functions/shared/index.md)
- [Server](/jaksam-inventory/functions/server/index.md)
- [Get static item](/jaksam-inventory/functions/shared/get-static-item.md)
- [Get static items list](/jaksam-inventory/functions/shared/get-static-items-list.md)
