JM-AdvancedAFK Documentation
JM Advanced AFK System Docs
๐ JM Advanced AFK System Documentation
๐ฆ Installation
- Drag
jm-afkinto yourresourcesfolder - Add to
server.cfg:ensure jm-afk
- Restart your server
โ๏ธ Configuration
Config.AFKTime = 300
Config.WarningTime = 600
Config.KickTime = 900
Config.IgnoreJobs = {
["police"] = true,
["ems"] = true
}
Config.Webhook = "YOUR_WEBHOOK"๐ฎ Features
- Real-time input detection
- Modern AFK UI with countdown
- Job-based AFK bypass
- Sound alerts
- Discord webhook logging
- Standalone (no framework)
๐ Exports
exports['jm-afk']:SetPlayerJob("police")๐ Framework Integration
QB-Core
RegisterNetEvent('QBCore:Client:OnJobUpdate', function(job)
exports['jm-afk']:SetPlayerJob(job.name)
end)ESX
RegisterNetEvent('esx:setJob', function(job)
exports['jm-afk']:SetPlayerJob(job.name)
end)๐ก Webhook Events
- Player AFK
- Player Returned
- Player Kicked
๐จ UI System
The UI includes:
- Countdown timer
- Progress bar
- Sound alerts
โ ๏ธ Troubleshooting
- UI not showing โ check
ui_pagein fxmanifest - Webhook not working โ verify URL
- Jobs not ignoring โ ensure export is triggered
๐ฌ Support
Need help? Join our Discord or contact JM Scripts.
