# Implementation

:thumbsup: **Icons get from here**: [https://fontawesome.com/search?o=r\&m=free](https://fontawesome.com/search?o=r\&m=free)

:rainbow: **Color get from here**: [https://g.co/kgs/QWXhVf](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>
