Anti-Afk Captcha System

Overview

This is a Anti-AFK system for FiveM servers that detects inactive players and presents them with a captcha challenge to prevent automatic kicks. This resource helps maintain server performance by removing idle players while giving legitimate players a chance to prove they're still present.

Features

  • Configurable AFK detection thresholds
  • Customizable captcha system
  • Permission-based exemptions
  • Multiple UI styles for captcha panel
  • Detailed notification system
  • Debug mode for testing

Configuration

The system can be fully customized through the config.lua file.

dfb6340c2cb8277790711309e766ff592b2e8c1f.png

How It Works

AFK Detection

The system monitors player activity through:

  • Movement detection
  • Key presses
  • Mouse movements

If a player is inactive for the specified threshold time, the AFK warning is displayed.

Captcha Challenge

When triggered, players are presented with a captcha they must enter correctly to avoid being kicked. The captcha:

  • Is randomly generated
  • Can be case-sensitive (configurable)
  • Has customizable styling

Exemption System

The permissions.lua file handles checking if a player has permission to bypass AFK checks based on ACE permissions defined in the config.

This item is free.

Add to cart