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
Recommended Comments
Create an account or sign in to comment