# sm.jsonGui.createGui

Creates a new gui.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.jsonGui.createGui( settings? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `settings` *(optional)* | table | Table with bool settings for: isHud, isInteractive, needsCursor, hidesHotbar, isOverlapped, backgroundAlpha, handleKeySetup, name, layer |

**Returns:**

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