The client-side script (client.lua) continuously monitors player activity. It checks for:
client.lua
Movement controls
Walking, running, or sprinting
Camera rotation (mouse movement)
If no activity is detected for the duration specified in Config.IdleTimeThreshold, the player is marked as AFK.
Config.IdleTimeThreshold
The server-side script (server.lua) manages the AFK states of all players. It:
server.lua
Receives AFK notifications from clients
Manages the list of AFK players
Handles the kicking of AFK players (if enabled)
Checks for admin/mod exemptions
When a player is AFK, a 3D "AFK" text appears above their character, visible to all players.
Last updated 1 year ago