# Integration

### Notifications

#### Client Side

```lua
exports['mxo-notify']:Alert('Title', 'Message', Time, 'type')
```

#### Server Side

```lua
TriggerClientEvent('mxo-notify:Alert', source, 'Title', 'Message', Time, 'type')
```

### Announcements

#### Client Side

```lua
exports['mxo-notify']:Announce('Title', 'Message', Time, 'type')
```

#### Server Side

```lua
TriggerClientEvent('mxo-notify:Announce', source, 'Title', 'Message', Time, 'type')
```

### Configuration

#### Available types

These types are configured by default. Feel free to add more types by your own.

* success (<mark style="color:green;">green</mark>)
* info (<mark style="color:blue;">blue</mark>)
* error (<mark style="color:red;">red</mark>)
* warning (<mark style="color:yellow;">yellow</mark>)

#### **Add more types**

You can add your own types by simply adding them to config.lua. Once you have added them there, you can integrate the new types into other scripts. See more at the config.lua

#### Ad

#### Changing Sound

To change the sound of the notification, you need to replace the sound.mp3 file.&#x20;

The file is located at <mark style="color:blue;">`mxo-notify/html/sound.mp3`</mark>

#### Common Errors

<details>

<summary>Help, the icons are not displayed</summary>

If the items are not displayed, you have probably selected a premium icon from FontAwesome. Make sure that the icon is a Free icon.

</details>

<details>

<summary>The message is displayed only for a short time</summary>

This happens when you specify the Time as seconds. The time must be specified in milliseconds. 1 Second = 1000 milliseconds

</details>
