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 tag and mode elements to the message table so that you can filter it in the different sections of the chat

Event

CLIENT / chat:addMessage

-- 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
    arg = {'Title','Message text'} -- arguments for the chat box
    tag = 'me', -- is new,
    mode = 'game' -- is new
}

TriggerEvent('chat:addMessage', message)

Last updated