> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/ui-and-interaction/textui.md).

# TextUI

## TextUI

Show and hide on-screen text prompts — the "Press E to interact" style UI.

### Supported resources

* `ox_lib`
* `lt-ui`
* `jg-textui`
* `esx_textui`
* `okokTextUI`
* `cd_drawtextui`
* `lation_ui`
* `lab-HintUI`

### Functions

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>GetResource</strong></td><td>Returns TextUI resource name.</td><td><a href="#getresource">#getresource</a></td></tr><tr><td><strong>Hide</strong></td><td>Hides Text UI from screen.</td><td><a href="#hide">#hide</a></td></tr><tr><td><strong>SetResource</strong></td><td>Force set TextUI resource.</td><td><a href="#setresource">#setresource</a></td></tr><tr><td><strong>Show</strong></td><td>Show Text UI on screen.</td><td><a href="#show">#show</a></td></tr></tbody></table>

***

## GetResource

Returns TextUI resource name.

{% hint style="info" %}
**Side:** Client · **Category:** TextUI · **API:** `LT.TextUI.GetResource`
{% endhint %}

### Example

```lua
local result = LT.TextUI.GetResource()
```

### Returns

* `'ox_lib'|'lt-ui'|'jg-textui'|'esx_textui'|'okokTextUI'|'cd_drawtextui'|'lation_ui'|'lab-HintUI'|nil`

***

## Hide

Hide Text UI from screen.

{% hint style="info" %}
**Side:** Client · **Category:** TextUI · **API:** `LT.TextUI.Hide`
{% endhint %}

### Example

```lua
LT.TextUI.Hide()
```

***

## SetResource

Force set TextUI resource.

{% hint style="info" %}
**Side:** Client · **Category:** TextUI · **API:** `LT.TextUI.SetResource`
{% endhint %}

### Example

```lua
LT.TextUI.SetResource('ox_lib')
```

### Parameters

| Name   | Required | Description |
| ------ | -------- | ----------- |
| `name` | Yes      | 'ox\_lib'   |

***

## Show

Show Text UI on screen. Silently no-ops if no TextUI resource is detected.

{% hint style="info" %}
**Side:** Client · **Category:** TextUI · **API:** `LT.TextUI.Show`
{% endhint %}

### Example

```lua
LT.TextUI.Show('[E] Open Shop')
```

### Parameters

| Name   | Required | Description             |
| ------ | -------- | ----------------------- |
| `text` | Yes      | Text to show on screen. |
