TRD AFK SYSTEM

TRD AFK SYSTEM

$2.00

Add to Basket

**TRD AFK **is a robust and flexible Anti-AFK script tailored for FiveM servers running either the ESX or Qbox frameworks. It efficiently manages inactive players to free up server slots or safely isolate them, ensuring a smooth and active roleplay environment.

Key Features

Framework Auto-Detection: Seamlessly works out of the box by automatically detecting whether your server is running `es_extended` or `qbx_core`.

Configurable Timers:

  * Set a custom inactivity threshold (e.g., 10 minutes) before a player is flagged as AFK.

  * Features an interactive warning phase (e.g., 60 seconds) with a clean `ox_lib` progress UI, giving players a chance to respond and cancel the punishment.

Dual Punishment System:

  * Kick Mode: Automatically drops the player from the server with a customizable disconnect message.

  * Teleport Mode (Isolation): Teleports the player to a predefined "AFK Zone" and places them into an isolated routing bucket (dimension). Once the player moves or returns to their keyboard, they are seamlessly teleported back to their original location and routing bucket.

* Smart Bypass Capabilities:

  * Admin Bypass: Exempts specific staff or admin groups (e.g., `admin`, `superadmin`, `god`) from AFK checks.

  * Job Bypass: Allows you to whitelist specific in-game jobs (e.g., `police`, `ambulance`) so they aren't penalized for standing still or camping during RP scenarios.

* Modern UI & Dependencies: Relies on `ox_lib` for modern, sleek notifications and progress bars, ensuring a premium user experience.

* Optimized Tracking: Uses distance and heading differential checks rather than heavy performance-intensive loops to accurately determine if a player is genuinely AFK.

Dependencies

- [ox_lib](https://github.com/overextended/ox_lib)

- ESX or Qbox Framework