๐Ÿ—ฃ๏ธDayZ Chat

Overview

Advanced Chat System is a premium, feature-rich FiveM resource designed specifically for serious roleplay servers. Built with performance and user experience in mind, this system provides everything you need for immersive in-character communication, out-of-character coordination, and server administration.

Why Choose This Chat System?

  • Framework Agnostic: Full support for both ESX and QBCore frameworks

  • Squad Integration: Seamless integration with hate-squad resource for tactical communication

  • Multi-Mode Chat: Normal, Squad, and Global OOC modes with easy toggle system

  • Roleplay Focused: Extensive roleplay commands with 3D text display

  • Anti-Spam Protection: Advanced spam detection and rate limiting

  • Discord Integration: Comprehensive logging with webhook support

  • Highly Configurable: Over 100+ configuration options

  • Visual Excellence: Beautiful UI with smooth animations and effects


Key Features

Communication Features

  • Proximity Chat: Distance-based communication with customizable ranges

  • 3D Text Display: Messages appear above player heads with stunning visual effects

  • Multiple Chat Modes:

    • Normal proximity chat

    • Squad-only communication (with hate-squad integration)

    • Global Out-of-Character chat

  • Voice Levels: Whisper, normal, and shout with different ranges

  • Private Messaging: Send direct messages to specific players

Roleplay Commands

  • Action Commands: /me, /do for immersive roleplay

  • Atmospheric Commands: /ame, /amy for above-head actions

  • Game Commands: /roll dice, /flipcoin with animations

  • Location-based Actions: Commands that work within specific areas

Administration Tools

  • Report System: Comprehensive player reporting with admin management

  • Announcement System: Server-wide and event announcements

  • Chat Moderation: Word filtering and message validation

  • Permission System: ACE-based permission control

  • Discord Logging: Detailed logs for all chat activities

Visual & UX Features

  • Modern UI: Clean, responsive chat interface

  • Chat Suggestions: Auto-complete for commands with helpful hints

  • Visual Indicators: Clear mode indicators and status displays

  • Smooth Animations: Fade effects and transitions

  • Customizable Themes: Adaptable color schemes and fonts

Security & Performance

  • Spam Protection: Multi-layer anti-spam system

  • Rate Limiting: Prevent chat flooding per player

  • Input Validation: Secure message processing

  • Optimized Code: Efficient event handling and minimal resource usage

  • Error Handling: Robust error management and fallbacks

Integration Capabilities

  • Framework Support: ESX and QBCore ready

  • Third-party Resources: Compatible with popular resources

  • Webhook Support: Discord, Slack, and custom webhook integration

  • Database Integration: Optional database logging

  • API Endpoints: Extensible for custom integrations

Mobile & Accessibility

  • Responsive Design: Works perfectly on all screen sizes

  • Keyboard Shortcuts: Quick access to features

  • Accessibility Options: Support for various accessibility needs

  • Multi-language Support: Localization system for international servers


Table of Contents


Installation

Installation Steps

  1. Download & Extract: Place the chat resource in your resources/[fivem]/[cfx-default]/[gameplay]/ folder

  2. Server Configuration: Add ensure chat to your server.cfg

  3. Framework Setup: Configure your framework (ESX/QBCore) in config.lua

  4. Dependencies: Install optional dependencies:

    • hate-squad (for squad chat functionality)

    • hate-nametagv2 (for mask system integration)

  5. Permissions: Set up ACE permissions for admin commands

  6. Restart: Restart your server and test the system

Quick Configuration

Player Controls

  • Normal Chat: Type and press Enter

  • Squad Toggle: Shift + T to toggle between Normal โ†’ Squad โ†’ Global OOC

  • Commands: Type / to see available commands with auto-complete


Framework Configuration

Settings:

  • Type: Choose between 'esx' or 'qbcore'

  • QBCoreName: Name of your QBCore export (if using QBCore)

  • ESXEvent: ESX shared object event name (if using ESX)


General Settings

Settings:

  • Masked: Enable mask system integration (requires hate-nametagv2)

  • TextRPMessage: Enable 3D text above player heads for roleplay commands

  • EnableChatSuggestions: Show command suggestions in chat

  • TextDisplayTime: Duration text appears above heads (milliseconds)

  • MaskCheckInterval: How often to check player mask status (milliseconds)

  • UseRPName:

    • true: Use roleplay character name (firstname + lastname)

    • false: Use player's Steam/FiveM nickname


Squad Mode Settings

Features:

  • Toggle Key: Press Shift + T to toggle between normal chat and squad chat

  • Hate-Squad Integration: Works with the hate-squad resource for squad management

  • Visual Indicators: Shows [SQUAD CHAT] indicator when in squad mode

  • Notifications: Displays notification when switching modes


Global OOC Settings

Features:

  • Global Chat: Out-of-character chat visible to all players

  • Permission System: Optionally restrict to specific jobs

  • Toggle System: Press Shift + T multiple times to cycle: Normal โ†’ Squad โ†’ Global OOC


Spam Protection

Protection Features:

  • Rate Limiting: Limit messages per time window

  • Temporary Blocking: Block spammers for specified duration

  • Configurable Thresholds: Customize detection sensitivity


Chat Message Settings

Features:

  • Message Validation: Length limits, empty message blocking

  • Word Filtering: Configurable profanity filter

  • Rate Limiting: Prevent chat spam per player

  • Discord Logging: Optional chat logging to Discord


3D Text Display Settings

Visual Features:

  • Customizable Fonts: Choose from 9 different text fonts

  • Text Effects: Drop shadows, outlines, and edge enhancement

  • Multi-line Support: Display multiple lines with custom spacing

  • Distance Scaling: Text size adjusts based on distance


Proximity Settings

Distance System:

  • Proximity Chat: Messages only visible within specified distance

  • Visual Range: 3D text appears within draw distance

  • Configurable Ranges: Different distances for different command types


Discord Webhook Settings

Logging Features:

  • Multiple Webhooks: Separate webhooks for different log types

  • Colored Embeds: Different colors for different message types

  • Selective Logging: Choose what to log and what to ignore

  • Rich Formatting: Detailed embed messages with player information


Report System Settings

Report Commands:

  • /report send [message] - Submit a new report

  • /report list - List all active reports (admin)

  • /report info [id] - Get detailed report information

  • /report take [id] - Take a report (admin)

  • /report answer [id] [message] - Respond to a report

  • /report close [id] [reason] - Close a report


Money & Economy Settings

Economic Features:

  • Paid Commands: Charge money for certain commands like /advert

  • Location Restrictions: Require players to be at specific locations

  • Visual Markers: Blips and markers for special locations

  • Cooldown System: Prevent command spam with time restrictions


Animation Settings

Supported Animations:

  • Dice Rolling: Plays animation when using /roll command

  • Coin Flipping: Animation for /flipcoin command

  • Radio Usage: Animation for LEO chat and radio commands

  • Customizable: Change animation dictionaries, names, and durations


Command Configuration

The system includes numerous built-in commands organized by categories:

Roleplay Commands

  • /me [action] - Perform an action (shows above head and in chat)

  • /do [description] - Describe something happening

  • /ame [action] - Action shown only above head

  • /amy [description] - Description shown only above head

Communication Commands

  • /l [message] - Low voice (5m range)

  • /s [message] - Shout (25m range)

  • /w [message] - Whisper (2m range)

  • /b [message] - Local OOC (15m range)

  • /ooc [message] - Out of character chat

Special Commands

  • /advert [message] - Server-wide advertisement (costs money)

  • /pm [playerID] [message] - Private message

  • /roll [dice] [sides] - Roll dice

  • /flipcoin - Flip a coin

Admin Commands

  • /ann [message] - Server announcement

  • /event [message] - Event announcement

Information Commands

  • /money - Check your money

  • /charinfo - Character information

Each command can be individually:

  • Enabled/Disabled: Turn commands on or off

  • Customized: Change colors, distances, prefixes

  • Restricted: Require specific jobs or permissions

  • Animated: Add custom animations


Chat Mode Toggle System

The system supports three chat modes that players can cycle through:

  1. Normal Chat Mode: Standard proximity chat

  2. Squad Chat Mode: Private chat with squad members (requires hate-squad resource)

  3. Global OOC Mode: Server-wide out-of-character chat

How to Toggle:

  • Press Shift + T to cycle through modes

  • Visual indicators show current mode

  • Notifications inform players of mode changes


Integration Requirements

Required Resources:

  • Framework: ESX or QBCore

  • Optional: hate-squad (for squad chat functionality)

  • Optional: hate-nametagv2 (for mask system)

Permissions:

The system uses FiveM's built-in ACE permission system. Configure permissions in your server.cfg:


Troubleshooting

Common Issues:

  1. Names not showing correctly:

    • Check Config.General.UseRPName setting

    • Verify framework configuration is correct

  2. Squad chat not working:

    • Ensure hate-squad resource is running

    • Check Config.SquadMode.HateSquadResource name

  3. Commands not responding:

    • Verify ACE permissions are set correctly

    • Check console for error messages

  4. 3D text not appearing:

    • Check Config.General.TextRPMessage is enabled

    • Verify proximity distance settings


Last updated