From DarkRP
Jump to navigation Jump to search
Hook name playerBoughtDoor(Player ply, Entity ent, number cost)
Called when a player has purchased a door.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerBoughtDoor]playerBoughtDoor hook[/url][/b]


  1. ply (Player)
  2. The player who has purchased the door.

  3. ent (Entity)
  4. The purchased door.

  5. cost (number)
  6. The cost of the purchased door.

Return values[edit]

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