From DarkRP
Jump to navigation Jump to search
Hook name onAllowedToOwnAdded(Player ply, Entity ent, Player target)
When a player adds a co-owner to a door.
Returns: boolean allowed
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onAllowedToOwnAdded]onAllowedToOwnAdded hook[/url][/b]


  1. ply (Player)
  2. The player who adds the co-owner.

  3. ent (Entity)
  4. The door.

  5. target (Player)
  6. The target who will be allowed to own the door.

Return values[edit]

  1. allowed (boolean)
  2. Whether the player is allowed to add this player as co-owner.