Events
Here are some events that could be used for different purposes
Client Events
AddMessage
TriggerEvent('chat:addMessage', message)message:
tableargs:
tableorstringtitle?:
stringbarColor?:
stringor[number, number, number]type?:
string(error, warning, info, success, debug)timestap?:
stringicon?:
string
Example:
TriggerEvent('chat:addMessage', {
args = {'Test message'},
barColor = '#00FF00',
type = 'info',
title = 'INFO',
timestamp = "13:00",
icon = 'lucide:info'
})AddSuggestion
TriggerEvent('chat:addSuggestion', name, help, params)name:
stringhelp:
stringparams:
tablename:
stringhelp:
stringdisasbled:
boolean
Example:
TriggerEvent('chat:addSuggestion', 'test_command', 'Test description', {
{
name = 'player',
help = 'The player to greet',
disabled = false
},
{
name = 'message',
help = 'The message to send',
disabled = false
}
}, false)Last updated