# sm.garage.createGarage

Creates a new garage.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.garage.createGarage( garageId, worldId, halfextents, position )
```

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

The garage is a spawn area for creations defined by a bounding box. The garage can track blueprints and import them into the world.

The garage is identified by an user specified id.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `garageId` | int | The id of the garage to create |
| `worldId` | uint | The world the garage is in |
| `halfextents` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | Half extents of the spawnbox inside the garage |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | Position of the spawn box inside the garage |

**Returns:**

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