# Container.canSpend

Checks if [sm.container.spend](../Game-Script-Environment/Static-Functions/sm.container.md#spend) is allowed.

**Kind:** Function

**Environments:** Game

## Game

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

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

**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. |
