Troubleshooting
Common Issues and Solutions
Players Not Getting Kicked
Possible Causes:
Player is whitelisted
Timer not reaching kick threshold
Detection is resetting too frequently
Solutions:
Check
Config.Whitelist.Groups- player's job may be whitelistedEnable debug mode and check console output
Verify timer values in config (use minutes, not seconds)
Check if player is actually moving (enable debug to see coordinates)
Warnings Not Appearing
Possible Causes:
Notification function not working
Message format issue
Chat system not loaded
Solutions:
Check
SendNotificationfunction in config.luaVerify chat resource is running
Test notification function directly:
Try alternative notification method (see Customization)
False Positives (Players Kicked While Active)
Possible Causes:
Movement threshold too high
Detection not recognizing certain activities
Players in certain situations (e.g., menu, phone)
Solutions:
This is rare but can happen in edge cases
Check debug logs to see what the system detected
Consider adding custom detection in
client/editable.luaVerify player wasn't actually AFK (may have moved slightly but not enough)
Whitelist Not Working
Possible Causes:
Framework not detected
Job name mismatch
Framework not started before this resource
Solutions:
Verify framework is running:
GetResourceState('es_extended')orGetResourceState('qb-core')Check exact job names - they're case-sensitive
Ensure framework starts before this resource in
server.cfgEnable debug mode to see whitelist check results
Resource Not Starting
Possible Causes:
Syntax error in config.lua
Missing files
Incorrect folder structure
Solutions:
Check server console for errors
Verify all files exist in correct locations
Check
fxmanifest.luasyntaxEnsure
ensure LuaBeans-afkis in server.cfg
Debug Mode
Enable debug mode for detailed troubleshooting:
Debug Output Includes:
Current AFK time for each player (every 30 seconds)
Warning triggers
Kick events with player ID
Whitelist check results
Interpreting Debug Output:
Shows player's current AFK time
Warning was successfully sent to player
Player is being kicked from server
Getting Help
If you're still experiencing issues:
Check Logs: Enable debug mode and review console output
Verify Configuration: Double-check all config values
Test in Isolation: Start with default config, test basic functionality
Check Dependencies: Verify framework integration (if using)
Review Recent Changes: Check what was modified in editable files
Failing that, you can Join our Discord
Last updated
