Hooks/Server/playerSellDoor

From DarkRP
Jump to navigation Jump to search
Hook
Hook name playerSellDoor(Player ply, Entity ent)
Description:
When a player is about to sell a door.
Returns: boolean allowed, string reason
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerSellDoor]playerSellDoor hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player who is to sell the door.

  3. ent (Entity)
  4. The door.

Return values[edit]

  1. allowed (boolean)
  2. Whether the player is allowed to sell the door.

  3. reason (string)
  4. The reason why a player is not allowed to sell the door, if applicable.