Cuxial Chat needs no SQL import and no inventory items. It creates its own tables on first start.
Check the dependencies
These resources must be installed and working before you add the chat:
ox_liboxmysqlcuxial_bridge, with one of the supported frameworks: QBox, QBCore or ESX- OneSync enabled on the server
cuxial_gang is optional. When it is running, each organization uses its own colour in /gchat. Without it, all organizations use gchat.fallbackColor.
Copy the resource
Place the cuxial_chat folder inside your resources directory. Keep the folder name as it is.
Remove the default chat
Cuxial Chat takes the place of the chat resource. Delete or comment out every line that starts another chat:
# ensure chatTwo chats running at once fight over the same key and the same events. Leave only Cuxial Chat.
Set the convars
All of them are optional.
# Language of the chat (en and es are included)
setr ox:locale "en"
# Discord webhook for message logs
set cuxial_chat_webhook "https://discord.com/api/webhooks/..."
# Debug traces in the console
setr cuxial_chat_debug "0"The webhook goes in server.cfg, never in shared/config.lua. The name of the convar can be changed in logs.discord.convar.
Start the resource
Start the chat after its dependencies and after your framework:
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure cuxial_bridge
# optional
ensure cuxial_gang
ensure cuxial_chatNo SQL to run. The resource creates cuxial_chat_settings (with persistSettings = true) and cuxial_chat_logs (with logs.database = true) when it starts.
Check that it works
- Join the server and press T. The chat opens.
- Type
/me waves. The action appears above your head. - Type
/and check that the command list shows up. - Open the settings panel in the chat, move it to another corner, then reconnect. The position is kept.
Next: adjust the chat to your server in Configuration.
