> For the complete documentation index, see [llms.txt](https://zsx-development.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zsx-development.gitbook.io/docs/resources/user-interface-v2/exports/interfaces/textui/updating-text-and-key.md).

# Updating text & key

Here you can find the exports to update the text or key of your TextUI.

### Updating text

To update text you can use following export:

```lua
local serial = exports['ZSX_UIV2']:TextUI_UpdateText(serial, text)
```

Or if you want to update persistent one, use:

```lua
local serial = exports['ZSX_UIV2']:TextUI_UpdateTextPersistent(text)
```

### Updating key

To update key you can use following export:

```lua
local serial = exports['ZSX_UIV2']:TextUI_UpdateKey(serial, key)
```

Or if you want to update persistent one, use:

```lua
local serial = exports['ZSX_UIV2']:TextUI_UpdateKeyPersistent(key)
```
