# Container.getAllowCollect

Returns whether the container can collect items.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
container:getAllowCollect(  )
```

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

**Availability:** Server only

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| boolean | Returns true if the container can collect. |
