[Release]Advanced AFK System [V1 & V2] — Nightz Development
Nightz Development is proud to present the Advanced AFK System – an intelligent, customizable, and modular solution to handle AFK players with precision and style.
Version 1 – Lightweight Starter AFK System
Perfect for small to mid-sized servers needing basic AFK detection, UI prompts, and Discord logging.
Features
-
AFK Detection Types:
- Keyboard Movement Check
- Mouse Movement Check
- Camera Rotation Check
- UI Interaction Check
- Idle Time Tracker
- Chat Interaction Check
-
AFK Timeout Settings:
AFKTimeout1 = 300 – 5 minutes
AFKTimeout2 = 600 – 10 minutes
AFKTimeout3 = 950 – Final Warning (11 mins)
KickDelay = 10 – Delay before kick (in seconds)
Safe Zones:
- Example zones (configurable with radius)
{coords = vector3(200.0, 200.0, 20.0), radius = 50.0}
{coords = vector3(-500.0, -300.0, 30.0), radius = 70.0}
{coords = vector3(181.24, -968.70, 29.57), radius = 50.0}
- UI:
- AFK Status messages
- Theme customization
- AFK Messages:
[1] = “You are AFK! Move within 5 minutes to avoid being kicked.”
[2] = “You are still AFK!. You have 10 minutes to avoid being kicked.”
[3] = “Final Warning! You will be kicked in 10 seconds!”
Discord Logging:
- Webhook integration
- Custom bot name and avatar
- Logs AFK status and kick events
Download & Photos of V1
Drop into your resources folder
Configureconfig.lua
to match your server
Start the resource in yourserver.cfg
ND AFK (1).zip (7.1 KB)
Version 2 – Complete Rewrite & Expanded Features
An all-new build with enhanced AFK tracking, full customization, and Discord-first notifications.
Core Config Options
Config.AFKTimeout1 = 600 – 10 mins
Config.AFKTimeout2 = 900 – 15 mins
Config.AFKTimeout3 = 1120 – 19 mins
Config.AFKTimeout4 = 1200 – 20 mins (Final warning)
Config.KickDelay = 10 – After final message
Detailed AFK Messages
[1] = “You are AFK! You have been AFK for 10 minutes!”
[2] = “You are still AFK! You have been AFK for 15 minutes!”
[3] = “You’re still AFK! You have been AFK for 18 minutes! Move now or be kicked.”
[4] = “Final Warning! You have been AFK for 20 minutes! Kicking after this message.”
Smart Detection
- Sensitivity Control:
Config.AFKDetectionSensitivity = 0.5
- Supports:
- Menu usage detection
- Typing detection
- Vehicle movement check (
speed > 7.0 m/s
) - Chat interaction
- Exemptions for admins using ACE permissions:
"afk.bypass"
Safe Zones
Config.SafeZones = {
{coords = vector3(172.58, -977.06, 30.00), radius = 50.0},
{coords = vector3(300.0, 400.0, 25.0), radius = 60.0},
{coords = vector3(500.0, 600.0, 35.0), radius = 70.0},
}
Config.SafeZoneBehavior = {
immuneToAFK = true,
notifyOnEnter = true,
notifyOnExit = true
}
UI & HUD
- Toggle Idle Time Display
- Custom positioning
- Format in
mm:ss
- Example:
Notification System Support
Choose your preferred system:
Config.NotificationSystem = “okokNotify”
– Options: native, okokNotify, mythic_notify, sx-notify
Discord Integration
- Fully customizable webhooks
- Choose bot name and avatar
- Rich embeds with AFK status updates and kick reasons
- Enable/disable granular notification types:
- Player AFK
- Player Kick
- Player Exemption
- Detailed Mode
Download & Photos of V2
Drop into your resources folder
Configureconfig.lua
to match your server
Start the resource in yourserver.cfg
ND-AFKV2.zip (11.9 KB)
Join the Conversation
This script is actively maintained by Nightz Development. If you have feedback, suggestions, or ideas, let’s talk!
Join the Discord: Nightz Development
Terms of Use: Respect original credits, no unauthorized redistribution.
V1 or V2?
Features | V1 | V2 |
---|---|---|
Keyboard / Mouse Check | ![]() |
![]() |
UI + Chat Interaction | ![]() |
![]() |
Safe Zones | ![]() |
![]() |
Kick Delay Config | ![]() |
![]() |
Webhooks | ![]() |
![]() |
AFK UI & Timer Display | ![]() |
![]() |
Detection Sensitivity | ![]() |
![]() |
ACE & Exemption System | ![]() |
![]() |
Multi-Level Timeout | ![]() |
![]() |
Requirements
Code is accessible | ![]() |
Subscription-based | ![]() |
Lines (approximately) | ~1200+ (V2) |
Requirements | FiveM, FXServer, Discord Webhook |
Support | ![]() |