Hooks/Shared/canLockpick

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name canLockpick(Player ply, Entity ent, table trace)
Description:
Whether an entity can be lockpicked.
Returns: boolean allowed
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canLockpick]canLockpick hook[/url][/b]

Parameters

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

  3. ent (Entity)
  4. The entity being lockpicked.

  5. trace (table)
  6. The trace result.

Return values

  1. allowed (boolean)
  2. Whether the entity can be lockpicked