# GuiInterface.setText

Sets the text caption of a textbox widget

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:setText( textbox, text )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `textbox` | string | The name of the textbox widget |
| `text` | string | The text |
