# Events & Exports

You can continue sending messages to the chat through the `chat:addMessage` event and the export `addMessage`  just like before, except now you can add a <mark style="color:yellow;">tag</mark> and <mark style="color:yellow;">mode</mark> elements to the message table so that you can filter it in the different sections of the chat

## Event

<mark style="color:green;">`CLIENT`</mark> <mark style="color:green;"></mark><mark style="color:green;">/</mark> chat:addMessage

```lua
-- tag  => can be anything | default 'feed'
-- mode => can be feed, ooc, game, dispatch, staff | default 'feed'

local message = {
    color = {240, 40, 0}, -- color of the left border
    args = {'Title','Message text'} -- arguments for the chat box
    tag = 'me', -- is new,
    mode = 'game' -- is new
}

TriggerEvent('chat:addMessage', message)
```

***
