> 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/set-item-metadata.md).

# SetItemMetadata

Set or change metadata on an inventory item.

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

## Example

```lua
local success = LT.Inventory.SetItemMetadata(source, 'water', 1, { durability = 50 })
```

## Parameters

| Name       | Required | Description        |
| ---------- | -------- | ------------------ |
| `source`   | Yes      | Player server ID   |
| `item`     | Yes      | Item name          |
| `slot`     | Yes      | Item slot          |
| `metadata` | Yes      | New metadata table |

## Returns

* `boolean`
