It is necessary to open a sequence of numbers for a given time
Features Setup:
- custom pause between moving digits
- time out speed
- sound effects volume
- amount of time for bonus/penalty
- custom text for game over
- fade delay after completion
demo:
It is necessary to open a sequence of numbers for a given time
Features Setup:
demo:
Well done!
The king of mini games!
how do you implimnet this into another script? There are no exports. Sorry, im just a little confused.
good release(20characters3)
Still looking on how to implement this script into other scripts…
Are there any events ?
-- Commands
RegisterCommand('startg1', function()
SetNuiFocus(true, true)
SendNUIMessage({
start = true,
})
end)
-- Callback
RegisterNUICallback('cb:game:result', function(x)
SetNuiFocus(false, false)
if (x.result) then
print("access_allowed")
else
print("access_denied")
end
end)
Thats it
I guess you need to make events or exports yourself then…
I hope you can still do anything with that, that’s a bit sad for a paid script…
I did not bought this script so I can’t really help you more than that at the moment 
what is the difficulty, you need to study the fivem documentation a little. Look
-- Commands
RegisterCommand('startg1', function()
TriggerEvent('startgame')
end)
-- Trigger
RegisterNetEvent("startgame")
AddEventHandler("startgame", function()
SetNuiFocus(true, true)
SendNUIMessage({
start = true,
})
end)
-- Callback
RegisterNUICallback('cb:game:result', function(x)
SetNuiFocus(false, false)
if (x.result) then
print("access_allowed")
else
print("access_denied")
end
end)
replace lua and in any script
TriggerEvent('startgame')
So I purchase a script and i have to finish writting it? Sorry, I wasnt aware that was the case.
that doesnt return anything in another script. How does the script know pass of failed?
local notComplete = false
local failure = false
-- Commands
--[[RegisterCommand('startg1', function()
TriggerEvent('G1:start', function(success)
if success then
print('success')
else
print('fail')
end
end)
end)]]
-- Callback
RegisterNUICallback('cb:game:result', function(x)
SetNuiFocus(false, false)
if (x.result) then
failure = false
notComplete = false
print("access_allowed")
else
failure = true
notComplete = false
print("access_denied")
end
end)
RegisterNetEvent('G1:start')
AddEventHandler('G1:start', function(func)
Callback = func
SetNuiFocus(true, true)
SendNUIMessage({
start = true,
})
notComplete = true
while notComplete do
Citizen.Wait(100)
end
if failure then
SetNuiFocus(false, false)
Callback(false)
else
SetNuiFocus(false, false)
Callback(true)
end
end)
Replace This
Where can I find password after purchase?