# 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)
```


---

# 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.qubitstudios.net/redm-scripts/native-alert/installation-and-configuration.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.
