Hooks/Shared/onLockpickCompleted

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name onLockpickCompleted(Player ply, boolean success, Entity ent)
Description:
Result of a player attempting to lockpick an entity.
Returns: boolean override
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/onLockpickCompleted]onLockpickCompleted hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player attempting to lockpick the entity.

  3. success (boolean)
  4. Whether the player succeeded in lockpicking the entity.

  5. ent (Entity)
  6. The entity that was lockpicked.

Return values

  1. override (boolean)
  2. Return true to override default behaviour, which is opening the (fading) door.