> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/game-systems/inventory/has-item.md).

# HasItem

Check if the player has an item.

{% hint style="info" %}
**Side:** Client / Server · **Category:** Inventory · **API:** `LT.Inventory.HasItem`
{% endhint %}

## Example

```lua
-- Client
local hasWater = LT.Inventory.HasItem('water', 1)

-- Server
local hasWater = LT.Inventory.HasItem(source, 'water', 1)
```

## Parameters

| Name     | Required    | Description                 |
| -------- | ----------- | --------------------------- |
| `source` | Server only | Player server ID            |
| `item`   | Yes         | Item name                   |
| `count`  | No          | Required count (default: 1) |

## Returns

* `boolean`
