Event and Exports
START PUZZLE EVENT
TriggerEvent('bp_vehiclepuzzle:startPuzzle', puzzleData)TriggerEvent('bp_vehiclepuzzle:startPuzzle', {type = "middle"})
PUZZLE CALLBACK
TriggerEvent('bp_vehiclepuzzle:startPuzzle', {
type = 'middle',
timer = 120,
point = 0,
level = 1,
callback = true
}, function(success)
if success then
TriggerEvent('bp_vehiclepuzzle:notify', "Congratulations on completing the minigame", 2000, 'base', "success")
else
TriggerEvent('bp_vehiclepuzzle:notify', "Sorry, the minigame failed.", 2000, 'base', "error")
end
end)ADMIN PART EVENT
Last updated