Lockpick
client
Start

start

Start the lockpick minigame with customizable parameters.

Parameters

  • params (table): A table containing optional configuration for the minigame.
    • speed (number): The speed modifier for the lockpick rotation. Defaults to 1.0.
    • slices (number): The number of slices (segments) in the lockpick circle. Defaults to 8.
    • time (number): The total time in milliseconds for the player to complete the minigame. Defaults to 6000.

Returns

  • boolean: true if the player successfully completes the minigame, false otherwise.

Example

local success = exports.sleepless_lockpick:start({
    speed = 1.5,
    slices = 10,
    time = 8000
})
 
if success then
    print("Lockpicking succeeded!")
else
    print("Lockpicking failed.")
end