[STANDALONE] DataCrack Hacking Mini Game


This is the DataCrack mini-game from GTA5 that you can use in your own scripts.

Usage

To start the mini-game:

exports["datacrack"]:Start(difficulty)

To catch the outcome:

AddEventHandler("datacrack", function(output)
    -- your code here, for example:
    if output then
          ESX.ShowHelpNotification('Hack complete!', false, true, 5000)
    else
          ESX.ShowHelpNotification('Hack failed!', false, true, 5000)
     end
end)

Download:https://github.com/utkuali/datacrack
Video Example:https://streamable.com/7y0s1

15 Likes

Wow, without CEF, definitely will check it, thanks for sharing!

ofc nice one

Oops!

We couldn’t find your video.

1 Like

JS usage:

RegisterCommand('datacrack', () => {
    exports['datacrack'].DataCrack(3)
    on("datacrack", () => {
        console.log("hack complete");
    });
}, false);
1 Like

amazing

Citizen.CreateThread(function()
	while true do
			Citizen.Wait(1)
			local plyPos = GetEntityCoords(GetPlayerPed(-1))
			local place = vector3(-936.3391, -375.8193, 108.0377)

			if isNear(plyPos, place, 2.0) then
				if IsControlJustPressed(0, 38) then
					exports["datacrack"]:Start(4)
				end
			end
			
	end
end)

AddEventHandler("datacrack", function()
	exports['mythic_notify']:DoHudText('inform', "You did it, good job")
end)

Gives this error, am I doing something wrong?

My bad, I forgot to change function name to Start, you can get the new client.lua now in Github, it should fix your issue.

I appear to be getting the same error, unfortunately. Latest github client.lua, with the same code as above.

okay, try it now but replace the whole script not just client.lua

how would we be able to implement this to unlock doors from esx_doorlock?

I appear to be getting the same error