Garry's Mod

Garry's Mod

[NNT] Anti-AFK
13 Comments
Hickup - RD 11 Feb, 2022 @ 8:23pm 
Fufy, If your using a rank called Owner, It will not work until you whitelist that role. I suggest using superadmin as your default owner group, There is not point in making a User group as founder or owner.
@beingsuz  [author] 24 Jan, 2022 @ 6:27am 
cami is there only for the groups whitelist but should work for the next update
ZuFy 23 Jan, 2022 @ 9:46pm 
So this addon does not work with cami then? I saw in the config it did refer to cami so I assumed that the founder user group having the cami permission for super admin was enough.
@beingsuz  [author] 20 Jan, 2022 @ 8:21pm 
you need to have the superadmin rank.
ZuFy 20 Jan, 2022 @ 4:14pm 
How do I get access to the /afkpanel command? I am the owner with all permissions and have no access to it.
Restion 13 Oct, 2021 @ 8:50am 
how do you do the statistic anyway cause I was viewing the code and tried to do a jsontotable via php but nothing worked.
Restion 13 Oct, 2021 @ 6:36am 
oh ok
@beingsuz  [author] 12 Oct, 2021 @ 8:51pm 
the function is not getting called anymore and that was not tracking but statistic.
Restion 12 Oct, 2021 @ 10:23am 
So you want to track people?

local function NNTUploadStats()
if AFK_VERSION == nil then
AFK_VERSION = "1.7.0"
end

local servercurrentinfo = {
["servername"] = GetHostName(),
["serverip"] = game.GetIPAddress(),
["time"] = os.date("%H:%M:%S - %d/%m/%Y", Timestamp),
["numplayer"] = player.GetCount() .. "/" .. game.MaxPlayers(),
["afk"] = tostring(AFK_ENABLE),
["version"] = AFK_VERSION
}

http.Post(" http://api.natsu-net.ca:2095/api/v1/anti-afk/stats.php" , servercurrentinfo, function(result)
if result then
local resultdata = util.JSONToTable(result)

if resultdata == nil then
print("[ANTI-AFK] Stats Error : Server API is offline !")

return
end
Calvinator 18 Jul, 2021 @ 8:16pm 
i hate when i get kicked cause i constantly have to do chores when im playing gmod, 1/10 hate it (no offense)
Runawaybrute63 22 Sep, 2020 @ 9:47am 
Nice Addons ! best afk menu !!
WrenHowl 29 Apr, 2019 @ 8:22pm 
Nice addon mon beau Aiko