# Text Formating

<figure><img src="/files/4V76FHOHnzhGI39YqR5k" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

## **Classes List:**

* header
* center

#### **Text Colors:**

* darkred, red, lightred, darkgreen, green, lightgreen, darkblue, blue, lightblue, yellow, orange, pink, purple

\
\
\&#xNAN;*Also if you know about CSS you can create your own custom style classes or use style="" option and create your own unique look, for people who have no idea about CSS style default classes have been created which usage is shown below*
{% endhint %}

<table><thead><tr><th width="276.0001220703125">Name</th><th>Usage</th></tr></thead><tbody><tr><td>Header Text</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="header">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Center Text</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="center">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Bolded Text</td><td><pre class="language-html"><code class="lang-html">&#x3C;div>&#x3C;b>TEXT_HERE&#x3C;/b>&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Dark Red</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="darkred">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Red</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="red">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Light Red</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="lightred">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Dark Green</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="darkgreen">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Green</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="green">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Light Green</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="lightgreen">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Dark Blue</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="darkblue">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Blue</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="blue">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Light Blue</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="lightblue">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Yellow</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="yellow">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Orange</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="orange">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Pink</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="pink">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Color - Purple</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="purple">TEXT_HERE&#x3C;/div>
</code></pre></td></tr><tr><td>Clickable Link</td><td><pre class="language-html"><code class="lang-html">&#x3C;div>&#x3C;a onclick="openUrl('URL_HERE')">TEXT_HERE&#x3C;/a>&#x3C;/div>
</code></pre></td></tr><tr><td>Clickable function in game<br><strong>Below is an explanation of usage.</strong></td><td><pre class="language-html"><code class="lang-html">&#x3C;div onclick="useAction(1)">USE ME&#x3C;/div>
</code></pre></td></tr><tr><td>Image</td><td><pre class="language-html"><code class="lang-html">&#x3C;img src="URL_IMAGE" draggable="false"/>
</code></pre></td></tr><tr><td>New Line</td><td><pre class="language-html"><code class="lang-html">&#x3C;br>
</code></pre></td></tr></tbody></table>

{% hint style="info" %}
You can use the ***clickable function***, e.g. to start job, to teleport on coords and many others, you add the function action to Config.Actions

```lua
Config.Actions = {
    [1] = function()
        -- Here you can add what you want, triggers, exports and everything
        SetEntityCoords(PlayerPedId(), vector3(414.3, -978.43, 28.45)) -- thats example usage
        SetEntityHeading(PlayerPedId(), 266.26) -- thats example usage
        closeBook() -- this function closes the book when you press on the text above
    end
}
```

{% endhint %}

The page shown above was written in this way:

```javascript
const pages = {
    'default': {
        [1]: `
                <div class="header">HEADER TEXT</div>
                <div class="center">CENTER TEXT</div>
                <div><b>BOLD</b></div>
                <div class="darkred">DARK RED TEXT</div>
                <div class="red">RED TEXT</div>
                <div class="lightred">LIGHT RED TEXT</div>
                <div class="darkgreen">DARK GREEN TEXT</div>
                <div class="green">GREEN TEXT</div>
                <div class="lightgreen">LIGHT GREEN TEXT</div>
                <div class="darkblue">DARK BLUE TEXT</div>
                <div class="blue">BLUE TEXT</div>
                <div class="lightblue">LIGHT BLUE TEXT</div>
                <div class="yellow">YELLOW TEXT</div>
                <div class="orange">ORANGE TEXT</div>
                <div class="pink">PINK TEXT</div>
                <div class="purple">PURPLE TEXT</div>
                <div><a onclick="openUrl('URL_HERE')">CLICKABLE LINK</a></div>
        `,
        [2]: `
                <br>
                <br>
                <br>
                <div class="header center red" onclick="useAction(1)">CLICKABLE FUNCTION IN GAME</div>
                <br>
                <img src="https://i.imgur.com/vkYfkdB.gif" style="border-radius:15px" draggable="false"/>
        `
    }
}
```


---

# 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://docs.vames-store.com/assets/vms_guidebook/guides/text-formating.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.
