# Container.canCollect

Checks if `sm.container.collect` is allowed using the same parameters.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
container:canCollect( itemUuid, quantity )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `container` | [Container](../Game-Script-Environment/Userdata/Container.md) | The container. |
| `itemUuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the item. |
| `quantity` | integer | The number of items. |

**Returns:**

| Type | Description |
| --- | --- |
| boolean | Indicates if the action is possible. |
