# sm.game.setEnableAmmoConsumption

Enables and disables ammo consumption. If true, ammo will be required to shoot spudguns.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.game.setEnableAmmoConsumption( enableAmmoConsumption )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `enableAmmoConsumption` | boolean | The enable state. |
