Fivem LUA AFK Kick & Notify Script By Lixsady
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.
- 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
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.
- 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