JM Modifications

JM-AdvancedAFK Documentation

JM Advanced AFK System Docs

๐Ÿš€ JM Advanced AFK System Documentation

๐Ÿ“ฆ Installation

  1. Drag jm-afk into your resources folder
  2. Add to server.cfg:
    ensure jm-afk
  3. 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_page in fxmanifest
  • Webhook not working โ†’ verify URL
  • Jobs not ignoring โ†’ ensure export is triggered

๐Ÿ’ฌ Support

Need help? Join our Discord or contact JM Scripts.

Back to home