From Official DarkRP Wiki
|Hook name||playerBuyDoor(Player ply, Entity ent)|
|When a player purchases a door.|
|Returns:||boolean allowed, string reason, boolean surpress|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBuyDoor]playerBuyDoor hook[/url][/b]|
- allowed (boolean)
- reason (string)
- surpress (boolean)
Whether the player is allowed to buy the door.
The reason why a player is not allowed to buy the door, if applicable.
Whether to show the reason in a notification to the player, return true here to surpress the message.