Presenting another hacking mission for GTA Casino heist which was surprisingly teased by Utku back in his fingerprint hacking release but was never released for unknown reasons so here it is.
Basic concept of the game is to remember the pattern generated and enter the same pattern to make the hack successful. You can understand it as the GTA version of the memory based hacking minigame used in well known NoPixel server.
This is supported on all game builds.
Preview:
Usage:
Client command:
TriggerEvent('ultra-keypadhack', life, time, function(outcome, reason)
-- life: Number of lives player has. Min is 1 and max is 6.
-- time: Time in seconds which player has. Min and max time can be set in config.lua
-- result: Reason is the reason of result. Result is an integer code which represents result.
-- 0: Hack failed by player
-- 1: Hack successful
-- 2: Time ran out and hack failed
-- -1: Error occurred i.e. passed input or contents in config is wrong
if outcome == 0 then
print('Hack failed', reason)
elseif outcome == 1 then
print('Hack successful')
elseif outcome == 2 then
print('Timed out')
elseif outcome == -1 then
print('Error occurred',reason)
end
end)