# sm.garage.getGarage

Gets a already existing garage returns nil if it does not exist.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.garage.getGarage( garageId )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `garageId` | uint | The id of the garage to get |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `Garage` | [Garage](../Game-Script-Environment/Userdata/Garage.md) | The Garage object |
