Hooks/Shared/canKeysLock

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name canKeysLock(Player ply, Entity door)
Description:
Whether the player can lock a given door. This hook is run when ply:canKeysLock is called.
Returns: boolean allowed
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canKeysLock]canKeysLock hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player

  3. door (Entity)
  4. The door

Return values

  1. allowed (boolean)
  2. Whether the player is allowed to lock the door.