Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Advance AFK Script V2 - Made By Nightz Development 2.00

(0 reviews)

5 Screenshots

A Complete workup from the old V1  

 

 

Config = {}
 
-- Debug Mode
Config.Debug = false
 
-- Notification System: Choose between 'native', 'okokNotify', 'mythic_notify', 'sx-notify'
Config.NotificationSystem = "okokNotify"
 
-- AFK Timeouts (in seconds)
Config.AFKTimeout1 = 600 -- 10 minutes
Config.AFKTimeout2 = 900 -- 15 minutes
Config.AFKTimeout3 = 1120 -- 19 minutes (Final warning before kick)
Config.AFKTimeout4 = 1200 -- 20 minutes (Additional warning before kick)
Config.KickDelay = 10 -- Delay after the final warning (in seconds)
 
-- AFK Messages
Config.AFKMessages = {
    [1] = "You are AFK! You have been AFK for 10 minutes!",
    [2] = "You are still AFK! You have been AFK for 15 minutes!",
    [3] = "Your 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"
}
 
-- Discord Settings
Config.DiscordWebhookURL = ""
Config.DiscordBotName = "AFK System"
Config.DiscordAvatarURL = ""  -- Optional: Set the bot's avatar URL if desired
Config.PlayerExemptNotifications = true  -- Enable notifications for when players are exempt
Config.PlayerAFKNotifications = true     -- Enable notifications for when players go AFK or stop being AFK
Config.PlayerKickNotifications = true    -- Enable notifications for when players are kicked for AFK
Config.DiscordDetailedNotifications = true
 
-- Idle Time Display
Config.IdleTimeUI = {
    enabled = true,
    position = "top-right",
    format = "mm:ss",
    text = "Idle Time: "
}
 
Config.AFKDetectionSensitivity = 0.5 -- Lower value means more sensitive
 
Config.SafeZones = {
    {coords = vector3(172.5817, -977.0687, 30.0011), radius = 50.0}, -- Example safe zone
    {coords = vector3(300.0, 400.0, 25.0), radius = 60.0}, -- Additional safe zone
    {coords = vector3(500.0, 600.0, 35.0), radius = 70.0}, -- New safe zone
}
 
Config.SafeZoneBehavior = {
    immuneToAFK = true, -- Disable AFK detection in safe zones
    notifyOnEnter = true, -- Notify players when entering a safe zone
    notifyOnExit = true -- Notify players when leaving a safe zone
}
 
-- Ace Permissions
Config.AcePermission = { "afk.bypass" }
 
Config.ExemptFromAFK = {
    inVehicle = true,         -- Exempt players in vehicles
    inVehicleSpeed = 7.0,     -- Minimum speed (in m/s) for exemption to apply (5.0 = ~18 km/h or ~11 mph)
    typing = true,           -- Exempt players typing in chat
    usingMenu = true,        -- Exempt players with menus open
    Notify = true             -- Notify players when they are exempt
}
 

Edited by Nightz Development


Short Description

A Complete workup from the old V1  

User Feedback

Recommended Comments

There are no comments to display.

Create an account or sign in to comment

Latest Mods

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.