Clears the chat messages/history and the sent messages history buffer.
chat:clear
This event has no parameters.
This example registers a /clear
command that clears the chat.
RegisterCommand('clear', function(source, args)
TriggerEvent('chat:clear')
end, false)
// In a method or the class constructor
RegisterCommand("clear", new Action<int, List<object>, string>(source, args, raw) =>
{
TriggerEvent("chat:clear")
}, false);
RegisterCommand('clear', (source, args) => {
emit('chat:clear');
}, false);