Hooks/Server/canGoAFK
Jump to navigation
Jump to search
Hook | |
Hook name | canGoAFK(Player ply, boolean afk) |
Description: | |
When a player can MANUALLY start being AFK by entering the chat command. Note: this hook does NOT get called when a player is set to AFK automatically! That hook will not be added, because I don't want asshole server owners to make AFK rules not apply to admins. | |
Returns: | boolean canGoAFK |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canGoAFK]canGoAFK hook[/url][/b] |
Parameters[edit]
- ply (Player)
- afk (boolean)
The player.
True when the player starts being AFK, false when the player stops being AFK.
Return values[edit]
- canGoAFK (boolean)
Whether the player is allowed to go AFK