AW ScriptsDocs
AW Chat

Installation

#Requirements

Requirement Status
QBCore, Qbox, ESX or standalone (detected automatically) Auto detected
OneSync (on by default on current servers) Required

#Installation

  1. Stop the default chat: remove ensure chat (it is in [system] / [cfx-default]) or delete that folder.
  2. Put aw_chat in your resources folder and add:
    server.cfg
    ensure aw_chat
    
    If a script uses exports['chat'], rename the folder from aw_chat to chat. Everything keeps working.
  3. Give your staff access:
    server.cfg
    add_ace group.admin awchat.staff allow
    
  4. Edit config.lua (channels, job chats, ranges, auto messages).
  5. Discord logs (optional). config.lua is sent to every player, so the webhooks go in server.cfg:
    server.cfg
    set aw_chat_webhook_chat   "https://discord.com/api/webhooks/..."
    set aw_chat_webhook_staff  "https://discord.com/api/webhooks/..."
    set aw_chat_webhook_report "https://discord.com/api/webhooks/..."
    
    Logs are sent in groups every 3 seconds, so a busy server stays under Discord's limits.

Using AW HUD? It turns its own /me and /do off when AW Chat is running.