> For the complete documentation index, see [llms.txt](https://jota-dev-documentation.gitbook.io/jota-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jota-dev-documentation.gitbook.io/jota-dev/scripts/notify.md).

# Jota Dev Notify

<figure><img src="/files/Py32OaFWg1he03XrM0hy" alt=""><figcaption></figcaption></figure>

**Put in your server.cfg**

```markdown
# JotaDev Notify
ensure jc_noty
```

## Instalallation

{% tabs %}
{% tab title="QB-Core" %}
Go to your `qb-core/client/functions.lua` and look for `QBCore.Functions.Notify`, replace it and add the function `QBCore.Functions.ShowHelpNotification`

```lua
function QBCore.Functions.Notify(text, texttype, length, icon)
    exports["jc_noty"]:Notify(texttype, text, 5000) 
end

function QBCore.Functions.ShowHelpNotification(msg)
    exports['jc_noty']:DrawText(msg)
end
```

```lua
-- For Example Help Notify:
QBCore.Functions.ShowHelpNotification("Press ~INPUT_CONTEXT~ to access the bank") 
```

{% endtab %}

{% tab title="ESX" %}
Go to your `es_extended/client/functions.lua` file and find and replace the following functions:

```lua
---@param message string The message to show
---@param notifyType? string The type of notification to show
---@param length? number The length of the notification
---@param title? string The title of the notification
---@param position? string The position of the notification
---@return nil
function ESX.ShowNotification(message, notifyType, length, title, position)
    exports["jc_noty"]:Notify(notifyType, message, 5000) 
end

---@param msg string The message to show
---@param thisFrame? boolean Whether to show the message this frame
---@param beep? boolean Whether to beep
---@param duration? number The duration of the message
---@return nil
function ESX.ShowHelpNotification(msg, thisFrame, beep, duration)
    exports['jc_noty']:DrawText(msg)
end

```

{% endtab %}
{% endtabs %}

**This would be the script Config**

{% tabs %}
{% tab title="Config" %}

```lua
Config = {}

Config.Zones = {
    {coords = vector3(-81.4136, -1568.43, 31.165), radius = 50.0, message = "Several masked individuals dressed in green were seen walking around the area"},
    {coords = vector3(407.8462, -992.849, 28.842), radius = 40.0, message = "Several patrol cars could be seen parked and police officers walking around the area"},
    {coords = vector3(1200.0, -600.0, 70.0), radius = 60.0, message = ""},
}

Config.ZonesActivate = true -- Activate Zones via RDE (environment role)

Config.Debug = false
```

{% endtab %}
{% endtabs %}
