Jump to content
  • Welcome, Guest!

    Welcome to GTAPoliceMods — the premier destination and ultimate hub for all things emergency modding. Discover the latest mods for GTA and FiveM, connect with a supportive community, and access quality resources to enhance your GTA experience.

    Log in or sign up to download a vast selection of mods, upload your own creations, and engage with fellow enthusiasts.

[Free] FL AFK Kick (Standalone) 1.0.0

   (2 reviews)

4 Screenshots

 FleeLive's AFK Kick System for FiveM

This FiveM resource is a simple AFK Kick System designed to improve server performance and free up slots by automatically kicking inactive players after a set period. It provides a customizable warning and kick timer with a notification and sound alert.

Interested in more resources like this? Join my Discord: https://discord.gg/ZZARjzKvvm

 

Features

- Detects player inactivity based on movement.

- Sends a warning notification with an icon and sound in the top-leftcorner.

- Kicks players if they remain AFK after the warning period.

- Optimized, runs at 0ms.

 

Installation

1. Download into your FiveM server's resources folder.

2. Add the following line to your `server.cfg` to ensure the resource is loaded:

   ensure FL-AFK_Kick

3. Restart the server or load the resource using:

   /ensure FL-AFK_Kick

 

 

Configuration

You can modify the AFK timeout and warning time in the `client.lua` client script:

local afkTimeout = 300 -- time in seconds before AFK warning (default: 5 minutes)

local afkKickTime = 60 -- time in seconds after warning before kicking (default: 1 minute)

 

 

Usage

This resource will automatically monitor player activity:

- If a player is inactive for the `afkTimeout` duration, a notification appears with an icon and sound alerting them they’re about to be kicked.

- If the player remains inactive for `afkKickTime` after the warning, they will be kicked from the server.

 

License

This project is open-source and can be freely used, modified, and shared. Please provide credit where due. 

 

Edited by FleeLive

FleeLive - KF Creative Studios

This project is open-source and can be freely used, modified, and shared. Please provide credit where due. 

 

  • Like 2

User Feedback

Recommended Comments

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Welcome to GTAPoliceMods! By using our platform, you agree to our Terms of Use, Privacy Policy, and our Guidelines. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.