π Description
AFK Zone & Rewards System is an advanced AFK solution designed exclusively for ESX servers.
It allows players to safely go AFK without occupying active gameplay areas, while rewarding them for their time.
Players can manually enter AFK mode using a command, which teleports them to a secure AFK zone where movement is completely blocked. A modern NUI interface is displayed, showing the total AFK time.
While AFK, players periodically receive AFK points (fully configurable). These points can later be exchanged for rewards through an in-game shop.
β¨ Main Features
β /afk command to enter AFK mode
β Teleport to a protected AFK zone
β Player movement fully disabled
β NUI interface showing AFK time
β Configurable reward interval
β Automatic AFK point rewards
β AFK shop accessible with /afkshop
β Fully configurable via config.lua
β Optimized and low resource usage
π₯οΈ How It Works
- Player uses
/afk - Player is teleported to the AFK zone
- Movement and actions are blocked
- AFK UI displays elapsed time
- AFK points are rewarded at configured intervals
- Points can be spent in the AFK Shop
ποΈ AFK Shop
Players can open the AFK Shop using:
/afkshop
AFK points can be exchanged for server-defined rewards such as items, money, or custom rewards, fully configurable by the server owner.
βοΈ Configuration
All settings are editable from config.lua:
β’ AFK teleport location
β’ Reward interval
β’ Points per reward
β’ UI texts
β’ Shop items and prices
π¦ Framework
β ESX only