Hooks/Server/onAllowedToOwnRemoved

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name onAllowedToOwnRemoved(Player ply, Entity ent, Player target)
Description:
When a player removes 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/onAllowedToOwnRemoved]onAllowedToOwnRemoved hook[/url][/b]

Parameters

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

  3. ent (Entity)
  4. The door.

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

Return values

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