Hooks/Server/onAllowedToOwnAdded
Jump to navigation
Jump to search
Hook | |
Hook name | onAllowedToOwnAdded(Player ply, Entity ent, Player target) |
Description: | |
When a player adds a co-owner to a door. | |
Returns: | boolean allowed |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onAllowedToOwnAdded]onAllowedToOwnAdded hook[/url][/b] |
Parameters[edit]
- ply (Player)
- ent (Entity)
- target (Player)
The player who adds the co-owner.
The door.
The target who will be allowed to own the door.
Return values[edit]
- allowed (boolean)
Whether the player is allowed to add this player as co-owner.