DMD Store Anti-AFK V2 | Advanced AFK Detection | QB ESX
DMD-AntiAFK V2
Advanced AFK (Away From Keyboard) detection and automatic kicking system.
Prevents players from staying idle on your server, freeing up slots for active players. Features intelligent movement detection, configurable timers, warning systems, and whitelist support.
Perfect for high-traffic servers, queue systems, and maintaining active player counts.
----------------------------------------------------------------
FEATURES
Smart AFK Detection
• Movement tracking (WASD, mouse)
• Camera position monitoring
• Idle time calculation
• Configurable AFK timeout
• Warning countdown system
Whitelist System
• Admin bypass
• Job-based exemptions
• Permission groups
• Identifier whitelist (license, steam, discord)
Warning System
• Progressive warnings (3-2-1 minute alerts)
• On-screen notifications
• Chat messages
• Configurable warning times
Configurable Settings
Config = {
AFKTime = 10, -- Minutes until kick
WarningTime = 3, -- First warning (minutes)
CheckInterval = 60000, -- Detection frequency (ms)
AdminBypass = true,
WhitelistedJobs = {"police", "ambulance"},
}
Modern UI
• Clean web interface
• Progress indicators
• Real-time countdown
• Responsive design
• CSS animations
----------------------------------------------------------------
DETECTION METHODS
1. Keyboard Input - W, A, S, D monitoring
2. Mouse Movement - Camera rotation tracking
3. Position Change - Coordinate comparison
4. Action Detection - Shooting, jumping, entering vehicles
----------------------------------------------------------------
WHITELIST OPTIONS
By Job
WhitelistedJobs = {"police", "ambulance", "mechanic"}
By Identifier
WhitelistedPlayers = {
"license:abc123",
"steam:110000123456789",
"discord:987654321"
}
By Permission
AdminBypass = true -- Admins never kicked
----------------------------------------------------------------
COMPATIBILITY
• Frameworks: QBCore, ESX
• Admin Systems: All compatible
• Queue Systems: Compatible with all
• Discord Integration: Whitelist support
----------------------------------------------------------------
NOTIFICATIONS
Visual and chat notifications:
WARNING: You will be kicked in 3 minutes for being AFK
WARNING: You will be kicked in 1 minute for being AFK
You have been kicked for being AFK
----------------------------------------------------------------
SECURITY
Protected by DMD-LIB security system:
- Script name verification
- Dependency validation
- Anti-leak protection
----------------------------------------------------------------
PERFORMANCE
- Resmon: ~0.00ms idle, ~0.01ms during checks
- Optimized: Event-based detection
- Server Load: Minimal
- Client Load: Negligible
----------------------------------------------------------------
INSTALLATION
1. Ensure "dmd-lib" is installed
2. Extract "dmd-antiafkv2" to resources
3. Add to server.cfg:
ensure dmd-lib
ensure dmd-antiafkv2
4. Configure AFK time and whitelist in config.lua
5. Restart server
----------------------------------------------------------------
DMD Store - Professional FiveM Resources