# sm.game.setEnableRestrictions

Enables and disables the use of restrictions. If true restrictions will be applied, if false the restrictions will default to unrestricted.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.game.setEnableRestrictions( enableRestrictions )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.game.md#setenablerestrictions)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `enableRestrictions` | boolean | Restrictions enable state. |
