# Container.setAllowSpend

Sets whether the container can spend items.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `container` | [Container](../Game-Script-Environment/Userdata/Container.md) | The container. |
| `allow` | boolean | True if the container can spend. |
