# Implementation

:thumbsup: **Icons get from here**: <https://fontawesome.com/search?o=r&m=free>

:rainbow: **Color get from here**: <https://g.co/kgs/QWXhVf>

## Notification

{% tabs %}
{% tab title="Client side" %}

```lua
exports["vms_notify"]:Notification("TITLE", "MESSAGE", TIME, "#HEX_COLOR", "ICON")
```

{% endtab %}

{% tab title="Server side" %}

```lua
TriggerClientEvent("vms_notify:Notification", source, "TITLE", "MESSAGE", TIME, "#HEX_COLOR", "ICON")
```

{% endtab %}
{% endtabs %}

***Parameters***

<table><thead><tr><th>PARAMETER</th><th width="249">TYPE</th><th>EXAMPLE</th></tr></thead><tbody><tr><td>title</td><td>string</td><td>"HOUSE"</td></tr><tr><td>message</td><td>string</td><td>"You entered the house."</td></tr><tr><td>time</td><td>number</td><td>5000</td></tr><tr><td>hex_color</td><td>string</td><td>"#5feb34"</td></tr><tr><td>icon</td><td>string</td><td>"fa-solid fa-house"</td></tr></tbody></table>

## Question

{% tabs %}
{% tab title="Client side" %}

```lua
local question = exports['vms_notify']:Question(
    'TITLE', 
    'MESSAGE', 
    '#HEX_COLOR', 
    'ICON'
)
Citizen.Await(question)
if question == 'y' then -- export return 'y' when player accept and 'n' when player reject
    print('ACCEPTED')
else
    print('NOT ACCEPTED')
end
```

{% endtab %}
{% endtabs %}

***Parameters***

<table data-full-width="false"><thead><tr><th width="209">PARAMETER</th><th width="203.33333333333331">TYPE</th><th>EXAMPLE</th></tr></thead><tbody><tr><td>title</td><td>string</td><td>"ANIMATION"</td></tr><tr><td>message</td><td>string</td><td>"Do you want to dance with vames?"</td></tr><tr><td>hex_color</td><td>string</td><td>"#25dbf7"</td></tr><tr><td>icon</td><td>string</td><td>"fa-solid fa-user"</td></tr></tbody></table>


---

# 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/outdated/vms_notify/guides/implementation.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.
