From DarkRP
Revision as of 18:39, 26 August 2020 by DarkRPWikiBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hook name canKeysUnlock(Player ply, Entity door)
Whether the player can unlock a given door. This hook is run when ply:canKeysUnlock is called.
Returns: boolean allowed
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canKeysUnlock]canKeysUnlock hook[/url][/b]


  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 unlock the door.