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

# Installation Guide ESX

## This way replaces all ESX notifications

Open file es\_extented/functions/client.lua

\
Find:

```lua
function ESX.ShowNotification(message, type, length)
    if GetResourceState("esx_notify") ~= "missing" then
        return exports["esx_notify"]:Notify(type, length, message)
    end

    print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
end
```

Replace:

```lua
function ESX.ShowNotification(message, tipo, length)
    if GetResourceState("zcmg_advanced-notify") ~= "missing" then
        length = length or 5000
        tipo = tipo or 'info'

        if type(tipo) ~= string then tipo = 'info' end

        TriggerEvent('zcmg_advanced-notify:open', 'Esx Developer PT', message, length, tipo)
    else
        print("[^1ERROR^7] ^5zcmg_advanced-notify^7 não está instalado!")
    end
end
```
