# ESX

{% stepper %}
{% step %}

### Go to es\_extended/client/functions.lua

Find <mark style="color:blue;">**ESX.ShowNotification**</mark>

```lua
function ESX.ShowNotification(message, notifyType, length)
    return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end
```

**Add code in top&#x20;**<mark style="color:blue;">**ESX.ShowNotification**</mark>

<pre class="language-lua"><code class="lang-lua">if GetResourceState("jc-notify") ~= "missing" then
<strong>    TriggerEvent('jc-notify:client:notify', message, notifyType, length)
</strong>    return true
end
</code></pre>

**Full code**

<pre class="language-lua"><code class="lang-lua">function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("jc-notify") ~= "missing" then
        TriggerEvent('jc-notify:client:notify', message, notifyType, length)
        return true
    end
    return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end
<strong>
</strong></code></pre>

{% endstep %}
{% endstepper %}
