{"id":18268564,"url":"https://github.com/viral32111/simple-afk-system","last_synced_at":"2025-04-09T02:47:14.285Z","repository":{"id":133672811,"uuid":"79658750","full_name":"viral32111/simple-afk-system","owner":"viral32111","description":"Simple AFK System for Garry's Mod","archived":false,"fork":false,"pushed_at":"2022-01-01T10:57:36.000Z","size":347,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T21:27:02.286Z","etag":null,"topics":["addon","afk","garry-mod","lua","player","weapons"],"latest_commit_sha":null,"homepage":"https://viral32111.com","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viral32111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-21T16:50:07.000Z","updated_at":"2023-09-24T03:34:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e025a5ad-9ef0-4f60-8586-0d90d12bbd0b","html_url":"https://github.com/viral32111/simple-afk-system","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fsimple-afk-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fsimple-afk-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fsimple-afk-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fsimple-afk-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viral32111","download_url":"https://codeload.github.com/viral32111/simple-afk-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968239,"owners_count":21025797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addon","afk","garry-mod","lua","player","weapons"],"created_at":"2024-11-05T11:32:11.907Z","updated_at":"2025-04-09T02:47:14.271Z","avatar_url":"https://github.com/viral32111.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple AFK System\n#### Version: 222\n\nA simple addon for Garry's Mod that allows a player to toggle being AFK by typing `!afk` in chat.\n\nFeatures:\n* Allows you to provide a reason.\n* Stops other players from interacting with you.\n* Blocks the player from doing anything when there AFK.\n* Informs other players that your AFK.\n* Remembers your weapons.\n* Remembers your active weapon.\n* Remembers your ammo.\n* Change AFK reason while your AFK.\n* Admins can set 'AFK Locations' where the player will be teleported to.\n\nThis addon includes a few hooks and functions for developers to use, examples:\n```lua\n-- All hooks are in both server and client realms.\n-- afkSystemPlayerEnter is called when the player becomes AFK.\nhook.Add(\"afkSystemPlayerEnter\", \"playerEnteredAFK\", function(ply, reason)\n\tprint(ply:Nick() .. \" is now AFK because \" .. reason)\nend)\n\n-- afkSystemPlayerUpdate is called when the player updates their reason.\nhook.Add(\"afkSystemPlayerUpdate\", \"playerUpdateReason\", function(ply, reason)\n\tprint(ply:Nick() .. \" updated their AFK reason to \" .. reason)\nend)\n\n-- afkSystemPlayerLeave is called when the player returns to the game.\nhook.Add(\"afkSystemPlayerLeave\", \"playerLeftAFK\", function(ply)\n\tprint(ply:Nick() .. \" has returned to the game.\")\nend)\n\n-- All functions are in both server and client realms.\n-- 'PLAYER' in this case is a player entity.\nPLAYER:isAFK() -- Is the player AFK? Returns a boolean either true or false.\nPLAYER:afkReason() -- Reason for AFK. Returns a string.\nPLAYER:afkTime() -- Time they started being AFK. Returns a timestamp integer. (`os.time()`)\n```\n\nThis addon is also available on the [Steam Workshop here](http://steamcommunity.com/sharedfiles/filedetails/?id=884852300).\n\n###### [Copyright 2017 - 2022 viral32111](LICENCE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviral32111%2Fsimple-afk-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviral32111%2Fsimple-afk-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviral32111%2Fsimple-afk-system/lists"}