Hooks/Server/canAdvert

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name canAdvert(Player player, table arguments)
Description:
Whether someone can place an advertisement billboard.
Returns: boolean canAdvert, string message
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canAdvert]canAdvert hook[/url][/b]

Parameters

  1. player (Player)
  2. The player trying to advertise.

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

Return values

  1. canAdvert (boolean)
  2. A yes or no as to whether the player can place the billboard.

  3. message (string)
  4. The message that is shown when they can't place the billboard.