# Triggers and Exports

For other scripts to send information to the CHAT, you must use a TriggerEvent, a function that will make the CHAT display the message you want. This has many uses.

{% tabs %}
{% tab title="Client" %}
The parameters are: **`playerId, text, title, background`**. All required.

<pre class="language-lua" data-overflow="wrap" data-line-numbers><code class="lang-lua"><strong>exports["forge-chat"]:Message(-1, "Test3", "Auto", "background: linear-gradient(270deg, rgb(171 222 0 / 56%) 0%, rgb(255 0 0 / 23%) 46.31%); border: 1px solid rgb(0 0 0 / 40%);")
</strong></code></pre>

{% endtab %}

{% tab title="Server" %}
{% code overflow="wrap" lineNumbers="true" %}

```lua
TriggerEvent('forge-chat:exportSendMessage', playerId, text, title, background)
```

{% endcode %}
{% endtab %}
{% endtabs %}

<figure><img src="https://4159800367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHHDsfKk7Fcfm3YOKFrN%2Fuploads%2FD9OOaJohc1H4IMdhzK1F%2Fimage.png?alt=media&#x26;token=e109e4b0-a221-43da-9213-d773b466079c" alt=""><figcaption></figcaption></figure>

These types of messages are the ones you can send by adding them to your script, being able to change the color of the label, the title and everything.
