# Container.resize

Resize a container.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
container:resize( size, stackSize? )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `container` | [Container](../Game-Script-Environment/Userdata/Container.md) | The container instance. |
| `size` | integer | The new size of the container. |
| `stackSize` *(optional)* | integer | The stack size. Defaults to maximum possible stack size(65535). |
