# DrawText

## drawText.lua

These functions handle drawing and hiding styled on-screen prompts or UI overlays, compatible with different styling frameworks such as OX Lib.

###

### **drawText(image, input, style, oxStyleTable)**

Displays styled text or prompts on screen.

Designed to adapt styling depending on which UI system (e.g., OX) is in use.

**Parameters:**

* `image` (`string`): Optional icon or image path.
* `input` (`string`): The main text to display.
* `style` (`string|table`): Preset or custom styling.
* `oxStyleTable` (`table`, optional): Extended style options if using OX UI.

**Example:**

```lua
drawText("img_link", { "Test line 1", "Test Line 2" }, "~g~")
```

***

### **hideText()**

Hides any active text or UI element previously drawn with `drawText()`.

**Example:**

```lua
hideText()
```

***


---

# 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://jixelpatterns.gitbook.io/docs/dependency/jim_bridge/drawtext.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.
