"i probably wouldnt use this and would use a different one" (Luci from 04/07/2023)
Taken from a different repo, and fixed because it was buggy.
FEEL FREE TO CHANGE RESOURCE NAME DO NOT DISTURBUTE AS YOUR OWN THIS IS NOT MY ORIGINAL SCRIPT IT CAME FROM SOMEONE ELSES REPO BUT IT WAS BROKEN
ORIGINAL LINK: https://github.com/JoeSzymkowiczFiveM/varhack
ORIGINAL README:
NoPixel Based VAR hacking minigame
I'm not entirely sure the origin of this code, but shoutout to sharkiller for hosting the javascript files on their github. This is simply a repackaging of those files into a Fivem NUI resource.
exports['varhack']:OpenHackingGame(function(success)
if success then
print("success")
else
print("failed")
end
end, 2, 3)
The first argument in this example represents the number of blocks in the puzzle. The second argument in this example represents the number of seconds that the player will see the exposed numbers, before they are hidden and the puzzle begins.