UseLockpick
lua
Call this when a player uses your lockpick item, for example in your inventory's usable item callback. It picks the target in this order:
- The closest property door (MLO door) or furniture door the player can see.
- The property entrance, when the player is inside a shell or IPL.
- The entrance of a shell or IPL property, when the player is near it.
The server then checks the rest: whether the door can be lockpicked, the anti-burglary upgrade, a police lockdown, and the lockpick minigame. The player gets a notification with the result.
Calls less than 500 ms apart are ignored.
Return Value
- None
Example
Usable item