https://cdn.discordapp.com/attachments/1087171203099271211/1154887538452988054/image.png
LINK
Template
exports[‘qb-lock’]:StartLockPickCircle(amount, time, function(success)
Example useage
RegisterCommand(“lpgame”, function()
local time = math.random(7,10)
local circles = math.random(2,4)
local success = exports[‘qb-lock’]:StartLockPickCircle(circles, time, success) print(success)
if success then print(“WIN”) else print(“FAIL”) end
end)
Useful Snippet
for everyone here that wants to add the minigame to other script in a very simple way
local seconds = math.random(9,12)
local circles = math.random(1,3)
local success = exports[‘qb-lock’]:StartLockPickCircle(circles, seconds, success)
if success then QBCore.Functions.Notify(" Success", “success”) end
Other Scripts:
[[STANDALONE] V-VehicleCamShake IMERSIVE GAMEPLAY CAMERA SHAKE]
[STANDALONE][ESX][QB] Cinematic Camera Control Using TriggerEvent
Code is accessible | Yes |
Subscription-based | No |
Lines (approximately) | 400 |
Requirements | None/Interactsounds |
Support | Yes |