> For the complete documentation index, see [llms.txt](https://docs.qubitstudios.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qubitstudios.net/redm-scripts/native-alert/installation-and-configuration.md).

# Installation & Configuration

First, you need to install the scripts **required** for **Qubit Notification** to work. After installing these scripts, you can put **qubit-notification** into your resources folder and run it.

* xsound - [**Download here**](https://github.com/Xogy/xsound/archive/refs/tags/1.4.1.zip)

## 1. Framework Configration

This script is completely standalone; you can use it with all frameworks. You don't need to make any extra adjustments.

## 2. Edit xSound fxmanifest.lua

Qubit Notification has separate sound effects for each different notification type. We need to load these sound effects into xSound, so we need to update the fxmanifest.lua as follows.

## 3. Add Sound files to xSound

You need download and add sound fx file to `xsound/html/sounds` folder,

{% file src="/files/N1OMzKIZ6glLeTu4ZGdR" %}

{% file src="/files/tGY8KO4uhGxYbnowyYZk" %}

{% file src="/files/KlqxniGttowhaJPrpBCp" %}

## Setup Finished 🎉

Our setup is complete, and now Qubit Notification is fully ready to use. Below, you can find a few example codes that you can run on both the client and server side.

{% hint style="success" %}
**Server-Side Usage Examples**
{% endhint %}

```lua
TriggerClientEvent('qubit-alert:client:send', src, 'TELEGRAPH', 'WE NEED HELP ON TUMBLEWEED', 'MESSAGE', 6000)
TriggerClientEvent('qubit-alert:client:send', src, 'ALERT', 'VALENTINE MARKET IS ROBBERING', 'ROBBERY', 6000)
TriggerClientEvent('qubit-alert:client:send', src, 'INFO', 'SERVER IS RESTARTIN IN 5 MINUTES', 'ANNOUNCEMENT', 6000)
```

```lua
TriggerClientEvent("qubit-alert:client:send", src, type, message, title, timeout)
```

{% hint style="success" %}
**Client-Side Usage Examples**
{% endhint %}

```lua
TriggerEvent('qubit-alert:client:send', 'TELEGRAPH', 'WE NEED HELP ON TUMBLEWEED', 'MESSAGE', 6000)
TriggerEvent('qubit-alert:client:send', 'ALERT', 'VALENTINE MARKET IS ROBBERING', 'ROBBERY', 6000)
TriggerEvent('qubit-alert:client:send', 'INFO', 'SERVER IS RESTARTIN IN 5 MINUTES', 'ANNOUNCEMENT', 6000)
```

```lua
TriggerEvent('qubit-alert:client:send', type, type, message, title, timeout)
```
