# Interactable.getContainer

Returns the container stored in the given index inside the controller

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
interactable:getContainer( index? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable. |
| `index` *(optional)* | integer | The index of the container (default: 0). |

**Returns:**

| Type | Description |
| --- | --- |
| [Container](../Game-Script-Environment/Userdata/Container.md) | The container. |
