Installation
Installation
Download the script files from the provided source.
Place the folder in your FiveM server's
resourcesdirectory.Add
ensure b2_afkSystem(or whatever you named the folder) to yourserver.cfgfile.
If using QB-Core (framework)
Go to qb-smallresources
Remove the following from the config.lua file:
Config.AFK = { ignoredGroups = { ['mod'] = true, ['admin'] = true, ['god'] = true }, secondsUntilKick = 1800, -- AFK Kick Time Limit (in seconds) kickInCharMenu = false -- Set to true if you want to kick players for being AFK even when they are in the character menu. }Delete afk.lua from both the /server and /client folders
Type 'refresh' and 'restart qb-smallresources' in the server/txadmin console
Last updated