# Text UI

**Function `TextUI(data)`**

Displays the text-based UI.

**Parameters:**

* **`data.input`** (string): The activation key (e.g., "E").
* **`data.type`** (string): The type of interaction (e.g., "press" or "hold").
* **`data.desc`** (string): The description displayed in the UI.

***

**Function `HideUI()`**

Hides the text-based UI.

***

**Exports**

The module exports two functions that can be used in other scripts:

* `exports["script_name"]:TextUI(data)`
* `exports["script_name"]:HideUI()`

***

**Example Usage**

```lua
exports["KOJA_HUD"]:TextUI({
    input = "E",
    type = "press",
    desc = "Open door"
})
```

```lua
exports["script_name"]:HideUI()
```

## Related pages

- [Creating/Editing Locales](/new/hud/guides/creating-editing-locales) — A quick guide on editing locales to your likings!
- [Progress Bar](/new/hud/guides/progress-bar) — Starts a progress bar and returns a completion status.
- [Stress](/new/hud/guides/stress) — Stress Management Functions
- [Guides](/new/hud/guides) — back to the section overview
