Hooks/Shared/canKeysLock

From DarkRP
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:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canKeysLock]canKeysLock hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player

  3. door (Entity)
  4. The door

Return values[edit]

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