# EXPORTY

### DRAWTEXT EXPORTY

<details>

<summary><strong>DrawText</strong></summary>

**Popis:** Zobrazí text UI ve stylu jg-textui. Podporuje víc slotů (stack pod sebou).

|               |                                                         |
| ------------- | ------------------------------------------------------- |
| **Parametry** | `text: string`, `slot?: string \| number` (výchozí `1`) |
| **Návrat**    | `boolean`                                               |

**Formát textu:** `<b>Titulek</b></p>[E] Řádek 1</p>[H] Řádek 2`

```lua
exports['secretrp-vehiclekeys']:DrawText(text)

exports['secretrp-vehiclekeys']:DrawText('<b>Obchod</b></p>[E] Nakoupit', 2)
```

</details>

<details>

<summary><strong>HideText</strong></summary>

**Popis:** Skryje DrawText UI.

|               |                                                                         |
| ------------- | ----------------------------------------------------------------------- |
| **Parametry** | `slot?: string \| number` — bez parametru skryje všechny DrawText sloty |
| **Návrat**    | `boolean`                                                               |

```lua
exports['secretrp-vehiclekeys']:HideText()
exports['secretrp-vehiclekeys']:HideText(2)
```

</details>

<details>

<summary><strong>ShowTextUI</strong></summary>

**Popis:** Zobrazí vlastní card / text hint (hotwire, vlastní scripty).

|               |                                 |
| ------------- | ------------------------------- |
| **Parametry** | `data: table`, `owner?: string` |
| **Návrat**    | `boolean`                       |

```lua
exports['secretrp-vehiclekeys']:ShowTextUI({
    mode = 'text',
    title = 'Hotwire',
    lines = { '[H] Stiskni klávesu pro zapalování' },
}, 'my-script')
```

</details>

<details>

<summary><strong>HideTextUI</strong></summary>

**Popis:** Skryje card hint podle ownera.

|               |                                              |
| ------------- | -------------------------------------------- |
| **Parametry** | `owner?: string \| true` — `true` skryje vše |
| **Návrat**    | `boolean`                                    |

```lua
exports['secretrp-vehiclekeys']:HideTextUI('my-script')
exports['secretrp-vehiclekeys']:HideTextUI(true)
```

</details>

<details>

<summary><strong>UpdateTextUI</strong></summary>

**Popis:** Aktualizuje existující card hint.

|               |                                 |
| ------------- | ------------------------------- |
| **Parametry** | `data: table`, `owner?: string` |
| **Návrat**    | `boolean`                       |

```lua
exports['secretrp-vehiclekeys']:UpdateTextUI({
    mode = 'text',
    title = 'Garáž',
    lines = { '[G] Uložit vozidlo' },
}, 'my-script')
```

</details>

<details>

<summary><strong>IsTextUIVisible</strong></summary>

**Popis:** Je TextUI viditelné?

|               |                  |
| ------------- | ---------------- |
| **Parametry** | `owner?: string` |
| **Návrat**    | `boolean`        |

```lua
local visible = exports['secretrp-vehiclekeys']:IsTextUIVisible('my-script')
```

</details>

<details>

<summary><strong>GetTextUIOwner</strong></summary>

**Popis:** Vrátí owner aktivního slotu.

|               |           |
| ------------- | --------- |
| **Parametry** | —         |
| **Návrat**    | `string?` |

```lua
local owner = exports['secretrp-vehiclekeys']:GetTextUIOwner()
```

</details>

<details>

<summary><strong>IsDrawTextActive</strong></summary>

**Popis:** Je aktivní DrawText (garáž / zóna)?

|               |           |
| ------------- | --------- |
| **Parametry** | —         |
| **Návrat**    | `boolean` |

```lua
local active = exports['secretrp-vehiclekeys']:IsDrawTextActive()
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scripty.secretrp.eu/scripty/drawtext-ui/exporty.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
