> For the complete documentation index, see [llms.txt](https://docs.wise-scripts.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wise-scripts.vip/scripts/wise-notify/exports-and-triggers.md).

# Exports & Triggers

## Exports

{% hint style="info" %}
For all exports it is important to use <mark style="color:red;">exports.wise\_notify:</mark> before the export Name

e.g: <mark style="color:red;">exports.wise\_notify:Notify(type, title, message, time)</mark>
{% endhint %}

<table><thead><tr><th width="401" align="center">Export</th><th align="center">Arguments</th></tr></thead><tbody><tr><td align="center">Notify(type, title, message, time) => <mark style="color:red;"><code>void</code></mark></td><td align="center">type => <mark style="color:red;"><code>string</code></mark> <br>title => <mark style="color:red;"><code>string</code></mark><br>message => <mark style="color:red;"><code>string</code></mark><br>time => <mark style="color:red;"><code>number</code></mark></td></tr><tr><td align="center">Announce(title, message, time) => <mark style="color:red;"><code>void</code></mark></td><td align="center">title => <mark style="color:red;"><code>string</code></mark><br>message => <mark style="color:red;"><code>string</code></mark><br>time => <mark style="color:red;"><code>number</code></mark></td></tr><tr><td align="center">PoliceAnnounce(title, message, time) => <mark style="color:red;"><code>void</code></mark></td><td align="center">title => <mark style="color:red;"><code>string</code></mark><br>message => <mark style="color:red;"><code>string</code></mark><br>time => <mark style="color:red;"><code>number</code></mark></td></tr><tr><td align="center">Warn(title, message, time) => <mark style="color:red;"><code>void</code></mark></td><td align="center">message => <mark style="color:red;"><code>string</code></mark><br>time => <mark style="color:red;"><code>number</code></mark></td></tr><tr><td align="center">HelpNotify(key, message) => <mark style="color:red;"><code>void</code></mark></td><td align="center">key => <mark style="color:red;"><code>string</code></mark><br>time => <mark style="color:red;"><code>number</code></mark></td></tr></tbody></table>

## Notify Types

* info <img src="/files/5q2nEEVVwBQ1PrwZiatO" alt="" data-size="line">
* warn <img src="/files/dQCXEUdxXSmrTiJ1j0dH" alt="" data-size="line">
* success <img src="/files/kRiVmU17TmCTU5BkisNa" alt="" data-size="line">
* error <img src="/files/8iIJNoAFgzI92CAZAY2o" alt="" data-size="line">

## Color Codes

```lua
~r~ = Red
~b~ = Blue
~g~ = Green
~y~ = Yellow
~p~ = Purple
~c~ = Grey
~m~ = Dark Grey
~u~ = Black
~o~ = Orange
~s~ = Reset
```

## Examples

{% tabs %}
{% tab title="Client Side" %}
{% code fullWidth="true" %}

```lua
local message = "I ~r~LOVE~s~ WiseScripts"
local time = 5000

-- NOTIFY
local notifyType = "info"
exports.wise_notify:Notify(notifyType, "Information", message, time)
TriggerEvent("wise_notify", notifyType, "Information", message, time)

-- ANNOUNCE
exports.wise_notify:Announce("Announce", message, time)
TriggerEvent("wise_announce", "Announce", message, time)

-- POLICE ANNOUNCE
exports.wise_notify:PoliceAnnounce("Police Announce", message, time)
TriggerEvent("wise_policenotify", "Police Announce", message, time)

-- WARN
exports.wise_notify:Warn("Server Name", message, time)
TriggerEvent("wise_warn", "Server Name", message, time)

-- LIFEINVADER
local phonenumber = 123
TriggerEvent("wise_lifeinvader", "Server Name", phonenumber, time)

-- HELPNOTIFY ONLY USE IN LOOP (in use ~0.05ms)
exports.wise_notify:HelpNotify("E", message)
TriggerEvent("wise_helpnotify", "E", message)
```

{% endcode %}
{% endtab %}

{% tab title="Server Side" %}

<pre class="language-lua" data-full-width="true"><code class="lang-lua">local message = "I ~r~LOVE~s~ WiseScripts"
local time = 5000

<strong>-- NOTIFY
</strong><strong>TriggerClientEvent("wise_notify", playerId, "info", "Title", message, time)
</strong><strong>
</strong><strong>-- ANNOUNCE
</strong>TriggerClientEvent("wise_announce", -1, "ANNOUNCE", message, time)

-- POLICE ANNOUNCE
TriggerClientEvent("wise_policenotify", -1, "Police Announce", message, time)

-- WARN
TriggerClientEvent("wise_warn", playerId, "Server Name", message, time)

-- LIFEINVADER
TriggerClientEvent("wise_lifeinvader", playerId, "Server Name", 123, time)
</code></pre>

{% endtab %}
{% endtabs %}
