Garry's Mod

Garry's Mod

Simple AFK System
34 Comments
@ your service 12 Feb @ 1:09am 
Would be cool if the player became a CPU bot while AFK like in Left 4 Dead 1 & 2.
RobPlayzPL 15 Nov, 2020 @ 2:56am 
the error message on the console says this:

[Simple AFK System] lua/autorun/server/sv_command.lua:144: attempt to concatenate a nil value
1. v - lua/autorun/server/sv_command.lua:144
2. unknown - lua/includes/modules/hook.lua:84
viral32111  [author] 15 Nov, 2020 @ 1:48am 
What's the error message? There should be one printed in the console.
RobPlayzPL 14 Nov, 2020 @ 4:53am 
how do i actually activate it cause when i type in !afk on chat on the top left it keeps saying "Simple AFK System" is creating an error
viral32111  [author] 15 Mar, 2020 @ 3:24am 
I'll add it to my to do list and get around to it when I can, but I don't really work on this addon much anymore. Sorry.
Can you add a function when players get AFK they kill themselves and after back to the game spawn again?
viral32111  [author] 29 Nov, 2018 @ 6:00am 
It's a table called "afkPositions" inside lua/autorun/server/sv_command.lua
Zeity 28 Nov, 2018 @ 8:28pm 
I am currently using this for my server but i am wondering how to set locations for being afk?
MysteriousGirl 25 Oct, 2018 @ 11:43pm 
Cool! Can't wait for the next update! Once those features are added I will definitely be adding this to the server. The auto afk and the hovering text especially.
viral32111  [author] 25 Oct, 2018 @ 5:27pm 
Update 222

Big overhaul, basically rewrote the entire addon and heavily optimized it.

For a detailed changelog see the GitHub Commit: https://github.com/viral32111/simple-afk-system/commit/30ef1171443a1b0f1caf0d593f5af5cd1519c922

In the next updates i'll probably add the following:
- Automatic AFK or auto kick/spectate when the player doesn't move for an extended period of time. (Haley and Brad's/TestBot's request)
- Overhead text above AFK players.
- "I'll be AFK in..."-like system where you can specify when you'll be AFK, then it will auto-afk you after that time has elapsed. (This is a maybe though, still thinking about it.)
viral32111  [author] 25 Oct, 2018 @ 2:39am 
Alright I accepted you.
[Love City RP] Jame Osbone 24 Oct, 2018 @ 12:10pm 
i have found exploit i add you to steam
MysteriousGirl 18 May, 2018 @ 9:38pm 
Awesome. I would love that feature if possible.
viral32111  [author] 18 May, 2018 @ 2:26am 
Currently, there is not, It is a manual AFK system at the moment.

I may add this as a feature in a later update If I do the update will be out probably tonight or tomorrow.
MysteriousGirl 18 May, 2018 @ 12:24am 
Is there a way to make this automatically afk someone if they dont move for a period of time?
viral32111  [author] 14 Oct, 2017 @ 3:40am 
I've updated this addon to the version on this GitHub, Sorry guys i didn't realise how far behind the workshop version was. Changelog: https://github.com/viral32111/simple-afk-system/commits/master
viral32111  [author] 15 Aug, 2017 @ 4:03am 
No this does not kick someone. Please read the description
Hackers Inc. 11 Aug, 2017 @ 5:55pm 
can this automatically afk and kick someone?
KB 25 May, 2017 @ 9:41am 
Yes it does; thanks.
viral32111  [author] 25 May, 2017 @ 9:33am 
Should do, Works with any gamemode!
KB 25 May, 2017 @ 3:43am 
Does this work with DarkRP 2.7.0?
viral32111  [author] 12 May, 2017 @ 11:28am 
Thanks for the suggestion. I'll add it soon!
Sauce' 12 May, 2017 @ 10:24am 
This is a great addon. Would it be possible to type /afk again to get out of afk mode? Or a message on the afk screen that says "!return to get back into game" or something? Because everybody is calling admins to ask "How do I get back?"
viral32111  [author] 22 Apr, 2017 @ 1:38pm 
I'll try to, Thanks for the suggestion
viral32111  [author] 29 Mar, 2017 @ 1:46pm 
wow
ubercharged keter 29 Mar, 2017 @ 11:25am 
np man it helps with the people who have to eat and stuff XD
viral32111  [author] 29 Mar, 2017 @ 3:54am 
thanks!
ubercharged keter 28 Mar, 2017 @ 10:33am 
btw im giving your credit on my server ;)
viral32111  [author] 28 Mar, 2017 @ 12:46am 
np
ubercharged keter 27 Mar, 2017 @ 2:17pm 
k thanks fam
viral32111  [author] 27 Mar, 2017 @ 11:42am 
Use !return in chat
Bmo 26 Mar, 2017 @ 7:42pm 
How do you get out of it?
ubercharged keter 26 Mar, 2017 @ 6:45pm 
how do i unafk?