# Installation guide

{% hint style="info" %}
**The script works on all FiveM servers!**
{% endhint %}

### How can I edit the Notify in any other scripts? <a href="#how-can-i-edit-the-notify-in-any-other-scripts" id="how-can-i-edit-the-notify-in-any-other-scripts"></a>

Every script use a notify function. So you have to change the notify trigger / export in all your scripts, which not use the brutal notify or the default ESX / QB notify.

**Use these triggers to use the END Notification.**

Okay, but wait. What is the source, title, message, time, type?

* Title (This is the notify Title, Enter a custom text here, e.g. 'Notify')
* Message (You have to add the notify message here.)
* Time (Time of visibility of the notify. (Between 1000-15000) 1000 = 1 sec)
* Type **\[** <mark style="color:green;">Success</mark> **/** <mark style="color:red;">Error</mark> **/** <mark style="color:yellow;">Info</mark> **]**

## ***Event***&#x20;

```
TriggerClientEvent('end-notify:client:SendAlert', source, type, message, duration)
```

## ***Export***

```
exports['end-notify']:SendAlert('type', 'message', duration)
```

## How to change the notify in your server to END NOTIFY?

## **QBCORE**

**`qb-core/client/functions.lua`**

**Replace this function:**

```lua
function QBCore.Functions.Notify(text, texttype, length)
    if not text then return end
    
    local endtext = text
    local endtype = texttype or 'info'
    
    if type(text) == "table" then
        endtext = text.text
        endtype = text.type or 'info'
        
        if not endtext then return end
    end
    
    exports['end-notify']:SendAlert(endtype, endtext)
end
```

## ESX

**`es_extended/client/functions.lua`**

**Replace this function:**

```lua
function ESX.ShowNotification(message, texttype, length)
    if texttype == 0 or texttype == false then
        texttype = "error"
    elseif texttype == 1 then
        texttype = "info"
    elseif texttype == 2 then
        texttype = "success"
    elseif texttype == 3 then
        texttype = "warning"
    elseif type(texttype) ~= "string" then
        texttype = "info"
    end

    exports['end-notify']:SendAlert(texttype, message, length or 5000)
end
```

<br>
