You are currently viewing FiveM AFK Status

FiveM AFK Status

Hello everyone,
I hope you’re doing well. Today we will take a look at script which help you to manage afk players on your server. Player will be able to set an afk status in order to prevent getting kicked from the server after certain amount of time.

Enter /afk command and you can set an AfK status in the menu after that you will be teleported to the afk location which position you can adjust in config.lua (we will take a look at the files a little later).

Per default you will be teleported to the watch tower in fort Zancudo.

config.js
Here you can:

  • adjust header picture
  • adjust menu messages

config.lua
Here you can:

  • Set webhook for discord server
  • Set whether afk message should be visible for all player on the server
  • Set afk location
  • Set whether player should be disconnected from the server after a certain period of time

client.lua
Here you can:

  • set messages for webhook
  • set server messages before player will be kicked
  • set time frames when afk warnings should be sent to the player

You can end afk mode whenever you want. Just enter /afkoff and you will be teleported to the position where you entered /afk

Before we will be kicked, we get 3 messages (half time, 1/3 of the time and 1/6 of the time). e.g. I have set 60 sec. as allowed time and I will get massages at 30, 20 and 10 sec.

[RELEASE] [STANDALONE] qAFK
https://forum.cfx.re/t/release-standalone-qafk/2381764

If you need FiveM Gameserver with one click installation check this:
https://zap-hosting.com/rpscripts
20% discount if you want: denmak-a-6883

If you need some general Fivem help, you can take a look at this Discord server:
https://discord.gg/Bdk3QHX

Dependencies
None, but this may not work on ESX or VRP. Tested it on ESX everything was fine

Installation
Download resource
Add the resource to your resources folder (Must be named qAFK or it wont work.)
Customize both the config.lua, and config.js in the config folder.
Add start qAFK to your server.cfg
(re)start your server
Enjoy!

Here you can take a look at the script on the RP Scripts Youtube Channel: