# sm.gui.hasActiveGui

Returns whether the player has an active gui or not

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `guiActive` | boolean | Whether the player has an active gui or not. |
