LDefcon by LPStudios
Advanced Citywide Alert Status System for FiveM
Take your FiveM roleplay server's public safety operations to the next level with LDefcon, a modern and fully configurable citywide alert status system designed for professional roleplay communities.
LDefcon allows authorized law enforcement personnel to manage citywide DEFCON levels through a clean, intuitive interface while providing server administrators with complete control over HUD positioning, permissions, menu integrations, and framework compatibility — all without modifying the core encrypted code.
Built for performance, flexibility, and ease of use, LDefcon integrates seamlessly into your server's existing infrastructure.
━━━━━━━━━━━━━━━━━━━━
KEY FEATURES
Multi-Framework Compatibility
Works out of the box with:
- ESX
- QBCore
- Qbox
- vRP
- Standalone
Includes automatic framework detection through a flexible bridge system.
Modular Menu Integration
Choose the menu system that best fits your server:
- ox_lib context menus with position control and automatic exit callbacks
- qb-menu using standard QBCore exports
- esx_menu_default with classic ESX alignment and callbacks
- Custom menu adapter for integration with other menu resources
- Automatic mode to detect supported menu resources
In-Game HUD Position Editor
Use /defconpos to visually drag and reposition the DEFCON status badge and announcement banner directly in-game.
Position adjustments are saved globally to the database, allowing administrators to customize the interface without manually editing coordinates.
Dual Visual Interface
LDefcon includes two complementary UI elements:
- Permanent DEFCON Badge: Displays the currently active alert level from DEFCON 1 to DEFCON 5, featuring custom styling and glow effects.
- Dynamic Announcement Banner: Displays a large, animated broadcast banner whenever the city's alert level changes.
Smart HUD Overlap Protection
Automatically hides the permanent HUD badge while interacting with supported selection menus, helping prevent overlapping elements, visual clipping, and interface conflicts.
Built-In Audio Notifications
Includes a notification sound system with configurable volume controls and the ability to enable or disable audio for individual DEFCON tiers.
Database Persistence
Powered by oxmysql, LDefcon saves the active DEFCON level and global HUD coordinates, keeping the city's alert status synchronized across server restarts.
Flexible Permission System
Choose the permission method that suits your server:
- Framework Permissions: Restrict access based on jobs, ranks, and administrator groups.
- ACE Permissions: Use native FiveM ACE permissions.
- Combined Mode: Allow access through either framework-based authorization or ACE permissions.
You can also configure minimum rank requirements for individual alert levels, allowing you to reserve critical alerts, such as DEFCON 1, for command staff.
Multilingual Support
Fully localized in:
- English
- Spanish
- Portuguese
Localization covers the NUI, commands, and developer console logs.
Optimized Performance
Designed for efficiency, with an advertised idle resource usage of 0.00 ms. Synchronization is handled through FiveM StateBags to minimize unnecessary processing.
Tebex & Escrow Friendly
Configuration files, locale files, and the framework bridge remain unencrypted inside the shared/ folder.
Customize framework logic, permissions, localization, and menu integrations without modifying the protected core files.
━━━━━━━━━━━━━━━━━━━━
REQUIREMENTS
Required:
- oxmysql
Optional menu dependencies — choose the one that matches your configuration:
- ox_lib
- qb-menu
- esx_menu_default
Framework compatibility depends on your server setup and the included bridge configuration.
━━━━━━━━━━━━━━━━━━━━
INSTALLATION GUIDE
- Download the resource and place the LDefcon folder inside your server's resources directory.
- Execute the SQL file located at sql/schema.sql in your database.
- Open shared/config.lua and configure your framework, menu type, language, and permission settings.
- Add the following line to your server.cfg:
ensure LDefcon
- Restart your server or start the resource.
- Verify that your dependencies and permissions are configured correctly.
━━━━━━━━━━━━━━━━━━━━
AVAILABLE COMMANDS
/defcon or /alertas
Opens the DEFCON alert selection menu. Requires an authorized law enforcement rank or the appropriate ACE permission.
/defconpos
Opens the in-game HUD position editor. Requires administrator authorization or the appropriate ACE permission.
━━━━━━━━━━━━━━━━━━━━
ACE PERMISSIONS CONFIGURATION
Add the following permissions to your server.cfg if you use ACE mode or combined permissions mode.
Grant law enforcement personnel access to manage alert levels:
add_ace group.police ldefcon.alerts allow
Grant administrators access to the HUD position editor:
add_ace group.admin ldefcon.admin allow
Make sure your players or groups are assigned to the appropriate ACE groups according to your server's permission setup.
━━━━━━━━━━━━━━━━━━━━
WHY CHOOSE LDefcon?
✔ Modern and professional alert management interface
✔ Support for multiple FiveM frameworks
✔ Configurable menus and HUD positions
✔ Advanced permissions and rank restrictions
✔ Persistent database synchronization
✔ Built-in audio notifications
✔ English, Spanish, and Portuguese localization
✔ Lightweight, performance-focused design
✔ Editable configuration and bridge files
✔ Designed for serious law enforcement roleplay
━━━━━━━━━━━━━━━━━━━━
LDefcon by LPStudios
Give your law enforcement departments the tools they need to coordinate citywide alert levels with a professional, reliable, and customizable system.
Take control of your city's alert status.
