# GuiInterface.setGridItem

Sets an item in a grid

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:setGridItem( gridName, index, item )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#setgriditem)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `gridName` | string | The name of the grid |
| `index` | integer | The item index |
| `item` | table | The item |
