# GuiInterface.createHorizontalSlider

Creates a slider at the specified widget

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:createHorizontalSlider(
    widgetName,
    range,
    value,
    functionName,
    numbered?,
    inverted?
)
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#createhorizontalslider)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `widgetName` | string | The name of the widget |
| `range` | number | The range of the slider |
| `value` | number | The start value on the slider |
| `functionName` | string | Slider change callback function name |
| `numbered` *(optional)* | boolean | Enable numbered steps (Defaults to false) |
| `inverted` *(optional)* | boolean | Invert slider direction (Defaults to false) |
