# Exports

## Notify

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

```lua
exports.gx_notify:Notify("Notificación Message test")
```

{% endtab %}

{% tab title="Server" %}

```lua
TriggerClientEvent("gx_notify:Notify", source, "Notificación Message test")
```

{% endtab %}
{% endtabs %}

## NotifyAdvanced

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

```lua
exports.gx_notify:NotifyAdvanced({
    title = "Bank of YourServer",
    subject = "Transaction",
    message = "You have received ~g~$1000~s~ from YourServer",
    icon = "CHAR_BANK_MAZE",
    timeout = 10,
    flash = false
})
```

{% endtab %}

{% tab title="Server" %}

```lua
TriggerClientEvent("gx_notify:NotifyAdvanced", source, {
    title = "Bank of YourServer",
    subject = "Transaction",
    message = "You have received ~g~$1000~s~ from YourServer",
    icon = "CHAR_BANK_MAZE",
    timeout = 10,
    flash = false
})
```

{% endtab %}
{% endtabs %}

## Text-Ui

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

```lua
exports.gx_notify:Help(targetCoords, "~INPUT_CONTEXT~ - Interaction")
```

{% endtab %}
{% endtabs %}

## Example Code

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

```lua
-- client

RegisterCommand("client_test", function() 
    exports.gx_notify:Notify("Notificación Message test")
end)

-- server

RegisterCommand("server_test", function(source) 
    TriggerClientEvent("gx_notify:Notify", source, "Notificación Message test")
end)
```

{% endtab %}

{% tab title="NotifyAdvanced" %}

```lua
-- client

RegisterCommand("client_test", function() 
    exports.gx_notify:NotifyAdvanced({
        title = "Bank of YourServer",
        subject = "Transaction",
        message = "You have received $1000 from YourServer",
        icon = "CHAR_BANK_MAZE",
        timeout = 10,
        flash = false
    })
end)

-- server

RegisterCommand("server_test", function(source) 
    TriggerClientEvent("gx_notify:NotifyAdvanced", source, {
        title = "Bank of YourServer",
        subject = "Transaction",
        message = "You have received ~g~$1000~s~ from YourServer",
        icon = "CHAR_BANK_MAZE",
        timeout = 10,
        flash = false
    })
end)
```

{% endtab %}

{% tab title="Text-Ui" %}

```lua
-- client
local targetCoords = vector3(-232.5460, 588.5023, 190.5363)
local radius = 2.0
Citizen.CreateThread(function()
    while true do
    Citizen.Wait(0)
    local playerPed = PlayerPedId()
    local playerCoords = GetEntityCoords(playerPed)
    local distance = #(playerCoords - targetCoords)
        if distance < radius then
            exports.gx_notify:Help(targetCoords, "~INPUT_CONTEXT~ - Interaction")
            if IsControlJustReleased(0, 38) then  -- 38 => E (button)
                print("Wow! Hello!! w-w")
            end
        end
    end
end)
```

{% endtab %}
{% endtabs %}
