Skip to content

lixsady/afkkick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFK-kick

Fivem LUA AFK Kick & Notify Script By Lixsady

v1.0.0

Simple Fivem LUA AFK kick script, this script will notify a person in game once they have been AFK for 15 or more minutes. If the person does not move their character in game after a total of 30 minutes, the person will be kicked.

Primary Features

  • Kick Warning After 15 Minutes & 30 Seconds Prior To Getting Kicked (changeable)
  • Automatically Kicks Users After 30 Minutes (changeable)
  • Express Discord Webhook Logging (Logs: Discord ID, GTA5 License, Cfx Username, Server ID, Server Cords)
  • Admin Exemption List Using Discord IDs
  • Simple Usage & Setup

Changing Settings

All settings can be found under the 'settings.ini' file, within this file you will find a place to add your Discord webhook url, and your exempt users Discord ID's. You will also be able to edit the time until someone is notified that they are AFK, and the time until someone is kicked for being AFK to long.

'settings.ini' Values

  • URL = https://discord.com/api/webhooks/yourwebhookid (replace url with webhook url)
  • ExemptDiscordIDs = 123456789012345678,987654321098765432 (replace placeholder ids with discord user ids)
  • WarningTimeMinutes = 15 (time in minutes until afk warning is given)
  • KickTimeMinutes = 30 (time in minutes until afk user is kicked)

note: do not share discord webhooks with anyone

About

Fivem LUA AFK Kick & Notify Script

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages