Installation

Installation

  1. Download the script files from the provided source.

  2. Place the folder in your FiveM server's resources directory.

  3. Add ensure b2_afkSystem (or whatever you named the folder) to your server.cfg file.

If using QB-Core (framework)
  1. Go to qb-smallresources

  2. 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.
    }

  3. Delete afk.lua from both the /server and /client folders

  4. Type 'refresh' and 'restart qb-smallresources' in the server/txadmin console

Last updated