Hooks/Shared/canLockpick

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]

ParametersEdit

  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 valuesEdit

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