Better chat for QB-Core Framework
(You can easly change colors)
If your alert
is ambualert
...local msg = table.concat(args, " ")
TriggerClientEvent("chatMessage", -1, "EMS ALERT", "ambualert", msg)...
Do this on chat's style.css
.ambualert {
background-color: rgba(##, ##, ##, ##);
}
If alert
is error
...local msg = table.concat(args, " ")
TriggerClientEvent("chatMessage", -1, "EMS ALERT", "error", msg)...
Do this
.error {
background-color: rgba(##, ##, ##, ##);
}
- Before you do it backup your old chat.
- Download the script and put it in this path - \resources \ [cfx-default] \ [gameplay].
- You don't need to ensure your script on config.
credits here