# How to work with Chat Messages & Suggestions

## Setup

## Here is a short tutorial how to use our chatmessages with our channels/categories



* TriggerEvent("chatMessage", "OOC Karma Developments \[123]", 2 , 'OOC Message goes here', 'ooc')



* TriggerEvent('chatMessage', "SYSTEM", 3, "You have been banned from OOC\nReason: Annoying", 'game')



* TriggerEvent('chatMessage', 'DISPATCH ', { 238, 230, 0 }, 'The VIN is scratched off.', 'dispatch')



* TriggerEvent('chatMessage', 'PLAYER REPORT ', 5, 'Someone reported nobody?', 'staff')



## TUTORIAL TO ADD CHAT SUGGESTIONS :

RegisterCommand('me', function(source, args, rawCommand)

TriggerEvent('chat:addSuggestion', '/me', 'Just a /me', {\
{ name = 'me', help = 'Write what do you want.' }\
})
