0R Hacking Mini Game
FiveM Advanced Minigame Scripts
Adapting with Your Scripts
You can adapt your scripts by following this code example.
local minigame3started = false
RegisterCommand("testminigame3", function()
if Config.Animation then
TriggerEvent("0resmon:anim:Hacking")
end
Wait(7500)
if minigame3started == false then
minigame3started = true
local minigame = exports['0r-hackingminigame']:DoAllOfThem()
if minigame then
minigame3started = false
lib.notify(
{
title = "Minigames",
description = "You have successfully completed the minigames.",
type = "success",
position = "center-right",
duration = 7500
}
)
else
minigame3started = false
lib.notify(
{
title = "Minigames",
description = "You have failed the minigames.",
type = "error",
position = "center-right",
duration = 7500
}
)
end
else
SendNUIMessage({
justopen=true,
})
SetNuiFocus(true, true)
end
end)
Last updated