From DarkRP
Jump to navigation Jump to search
Hook name playerSetAFK(Player ply, boolean afk)
When a player is set to AFK or returns from AFK.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerSetAFK]playerSetAFK hook[/url][/b]


  1. ply (Player)
  2. The player.

  3. afk (boolean)
  4. True when the player starts being AFK, false when the player stops being AFK.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.