Events
Here are some events that could be used for different purposes
Client Events
AddMessage
TriggerEvent('chat:addMessage', message)
message:
table
args:
table
orstring
title?:
string
barColor?:
string
or[number, number, number]
type?:
string
(error, warning, info, success, debug)timestap?:
string
icon?:
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:
string
help:
string
params:
table
name:
string
help:
string
disasbled:
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