Hooks/Shared/canKeysUnlock

From Official DarkRP Wiki
Revision as of 14:53, 31 October 2015 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hook
Hook name canKeysUnlock(Player ply, Entity door)
Description:
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]

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