Hooks/Server/playerBoughtDoor

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name playerBoughtDoor(Player ply, Entity ent, number cost)
Description:
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]

Parameters

  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

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