Hooks/Server/playerSetAFK

From Official DarkRP Wiki
Jump to: navigation, 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

  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

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