Hooks
Hooks provided by the Simple Lockpicking module for managing lockpicking mechanics.
Overview
The Simple Lockpicking module adds a simple lockpick tool for doors, logging of successful picks, brute-force style gameplay, configurable pick time, and chance for tools to break.. It provides comprehensive hook integration for customizing managing lockpicking mechanics and extending functionality.
CanPlayerLockpick
đ Purpose
Called to determine if a player can lockpick a target.
â° When Called
When a player attempts to use a lockpick item.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
ply |
Player | The player attempting to lockpick |
target |
Entity | The door or vehicle being lockpicked |
âŠī¸ Returns
boolean - Return false to prevent lockpicking
đ Realm
Server
Overview
The Simple Lockpicking module adds a simple lockpick tool for doors, logging of successful picks, brute-force style gameplay, configurable pick time, and chance for tools to break.. It provides comprehensive hook integration for customizing managing lockpicking mechanics and extending functionality.
LockpickFinished
đ Purpose
Called when a lockpicking attempt finishes (success or failure).
â° When Called
After the lockpicking action completes or is interrupted.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
ply |
Player | The player who was lockpicking |
target |
Entity | The target entity |
success |
boolean | Whether the lockpick succeeded |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Simple Lockpicking module adds a simple lockpick tool for doors, logging of successful picks, brute-force style gameplay, configurable pick time, and chance for tools to break.. It provides comprehensive hook integration for customizing managing lockpicking mechanics and extending functionality.
LockpickInterrupted
đ Purpose
Called when a lockpicking attempt is interrupted.
â° When Called
When the lockpicking action is cancelled or interrupted.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
ply |
Player | The player whose lockpick was interrupted |
target |
Entity | The target entity |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Simple Lockpicking module adds a simple lockpick tool for doors, logging of successful picks, brute-force style gameplay, configurable pick time, and chance for tools to break.. It provides comprehensive hook integration for customizing managing lockpicking mechanics and extending functionality.
LockpickStart
đ Purpose
Called when a lockpicking attempt starts.
â° When Called
When the lockpicking action begins.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
ply |
Player | The player starting to lockpick |
target |
Entity | The target entity being lockpicked |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Simple Lockpicking module adds a simple lockpick tool for doors, logging of successful picks, brute-force style gameplay, configurable pick time, and chance for tools to break.. It provides comprehensive hook integration for customizing managing lockpicking mechanics and extending functionality.
LockpickSuccess
đ Purpose
Called when a lockpicking attempt succeeds.
â° When Called
After the lock is successfully picked and the door/vehicle is unlocked.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
ply |
Player | The player who succeeded |
target |
Entity | The target entity that was unlocked |
âŠī¸ Returns
nil
đ Realm
Server