cobalt_chat
Proximity chat and scoped channels; it also answers as chat.
System
ServerBroadcasts a System message on a channel from config.Channels. ac reaches staff only; the rest reach everyone.
exports.cobalt_chat:System(text, channel)| Parameter | Type | Optional | Description |
|---|---|---|---|
text | string | No | |
channel | string | Yes | defaults to ooc |
exports.cobalt_chat:System('Server restart in 10 minutes', 'SYSTEM')addMessage
ServerSends a stock-chat message, the same as TriggerClientEvent('chat:addMessage', target, message).
exports.cobalt_chat:addMessage(target, message)| Parameter | Type | Optional | Description |
|---|---|---|---|
target | integer | No | server id, or -1 for everyone |
message | string | ChatLegacyMessage | No |
exports.cobalt_chat:addMessage(source, 'Vehicle stored in Legion Square garage')