# sm.gui.setGarageButtonCallback

Sets a button callback to be called when the button is pressed.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.gui.setGarageButtonCallback( callback )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `callback` | string | Function to be called when button is pressed |
