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 to1.0.slices(number): The number of slices (segments) in the lockpick circle. Defaults to8.time(number): The total time in milliseconds for the player to complete the minigame. Defaults to6000.
Returns
boolean:trueif the player successfully completes the minigame,falseotherwise.
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