> For the complete documentation index, see [llms.txt](https://theadam4.gitbook.io/wonder-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theadam4.gitbook.io/wonder-scripts-docs/scripts/wonder-notify.md).

# Wonder Notify

## Installation

### Putting script to server

* Download script from [keymaster](https://keymaster.fivem.net/)
* Put in your server files
* put **ensure wonder\_notify** in your server.cfg

## How to use script?

**If you want to insert our notify to other script, simple use export (client side) or trigger (server side)**

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

```lua
exports['wonder_notify']:Alert(title, message, type, duration, position, sound)
```

* title: `string`
* message: `string`
* type: `"info"` ,  `"error"` , `"success"` or `"alert"`
  * Default: `"info"`
* duration: `number`
  * Default: `5000`
* position: `"top-right"` or `"right"` or `"left"`
  * Default: `"top-right"`
* sound: `boolean`
  {% endtab %}

{% tab title="Server Side" %}

```lua
TriggerClientEvent("wonder_notify:Alert", source, title, message, type, duration, position, sound)
```

* title: `string`
* message: `string`
* type: `"info"` ,  `"error"` , `"success"` or `"alert"`
  * Default: `"info"`
* duration: `number`
  * Default: `5000`
* position: `"top-right"` or `"right"` or `"left"`
  * Default: `"top-right"`
* sound: `boolean`
  {% endtab %}
  {% endtabs %}
