Hooks/Server/playerSetAFK

From DarkRP
Jump to navigation Jump to search
Hook
Hook name playerSetAFK(Player ply, boolean afk)
Description:
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]

Parameters[edit]

  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.