Creating Messages
Introduction​
How to send messages with the custom template
Syntax​
templateId = 'ccChat',
multiline = false,
args = {
color,
icon,
subtitle,
timestamp,
msg
}
Arguments​
Argument | Data Type | Explanation |
---|---|---|
color | String | Accent Color of the message; Accepts HEX , RGB & HSL . |
icon | String | The icon on the message found at FontAwesome. |
subtitle | String | The string next to the icon. |
timestamp | String | The string on the top right of the message. |
msg | String | The main message being sent. |
Example​
-- Server
TriggerClientEvent('chat:addMessage', -1 , {
templateId = 'ccChat',
multiline = false,
args = {
'#e74c3c',
'fa-solid fa-fire',
'Lit',
'',
'This message is lit!'
}
})