CHAT
ES-CHAT-OS is a next-gen chat system designed for FiveM servers. Powered by modern web technologies, it introduces cutting-edge features to elevate your players' in-game communication experience.
How to Use
This is a usage example for the Lua event handler that listens to chat:addMessage and sends formatted chat messages to the NUI frontend.
Trigger the event chat:addMessage with the following parameters to display a chat message:
TriggerEvent('chat:addMessage', author, ctype, text, id)
-- Normal chat message from player with ID 42 TriggerEvent('chat:addMessage', "JohnDoe", "ooc", "Hello everyone!", 42)
-- OOC message from player with ID 7 TriggerEvent('chat:addMessage', "Jane", "ooc", "Is the server up?", 7)
-- System message (author can be empty string if you want) TriggerEvent('chat:addMessage', "System", "ooc", "Server will restart in 5 minutes.", 0)
📋 Command System
👤 Player Commands
👑 Admin Commands
⚙️ Configuration
📁 shared/cfg.lua
🎨 Color Customization
Last updated