# GuiInterface.setContainer

Sets a container to a grid

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:setContainer( gridName, container )
```

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

**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 |
| `container` | [Container](../Game-Script-Environment/Userdata/Container.md) | The container |
