Hooks/Server/playerAdverted

From Official DarkRP Wiki
Revision as of 12:43, 13 July 2016 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hook
Hook name playerAdverted(Player player, string arguments, Entity entity)
Description:
Called when a player placed an advertisement billboard.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerAdverted]playerAdverted hook[/url][/b]

Parameters

  1. player (Player)
  2. The player.

  3. arguments (string)
  4. The advertisement itself.

  5. entity (Entity)
  6. The placed advertisement billboard.

Return values

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