> For the complete documentation index, see [llms.txt](https://mstudio-1.gitbook.io/mstudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mstudio-1.gitbook.io/mstudio/kz-resources/editor-6/exports.md).

# Exports

{% hint style="info" %}
Follow this documentation to learn how to integrate the notifications with your framework
{% endhint %}

## ESX NOTIFICATION

{% hint style="warning" %}
File path: ..\es\_extended\client\functions.lua
{% endhint %}

```lua
function ESX.ShowNotification(message, notifyType, length)
    if not message then return end
    
    if type(notifyType) == 'number' then
        length = notifyType
        notifyType = 'info'
    end

    local type = notifyType or 'info'

    TriggerEvent('kz_notify:show', {
        title = "SERVER NAME",
        message = tostring(message),
        type = type,
        duration = length or 5000
    })
end
```

***

## QB NOTIFICATION

{% hint style="warning" %}
File path: ..\qb-core\client\functions.lua
{% endhint %}

```lua
function QBCore.Functions.Notify(text, texttype, length)
    if type(text) == "table" then
        local ttext = text.text or 'No message content'
        local caption = text.caption or "SYSTEM"
        local ttype = texttype or 'info'
        local tlength = length or 5000
        TriggerEvent('kz_notify:show', {
            title = caption,
            message = tostring(ttext),
            type = ttype,
            duration = tlength
        })
    else
        local ttype = texttype or 'info'
        local tlength = length or 5000
        TriggerEvent('kz_notify:show', {
            title = "SERVER NAME",
            message = tostring(text),
            type = ttype,
            duration = tlength
        })
    end
end
```
