# 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)
```
