Hi,
im using the mhacking script and i dont know where i can set the time for the hacking higher, so we have more time to hack
Can someone help me there?
Citizen.CreateThread(function()
local timeLimit = 600 -- Set the time limit to 60 seconds
local startTime = GetGameTimer() -- Get the current game time in milliseconds
local hackingComplete = false -- Flag to indicate whether the hacking is complete
while not hackingComplete do
Citizen.Wait(0)
local currentTime = GetGameTimer() -- Get the current game time in milliseconds
local elapsedTime = (currentTime - startTime) / 10000 -- Calculate the elapsed time in seconds
if elapsedTime >= timeLimit then
-- Time is up, end the hacking minigame
hackingComplete = true
exports["my_notification_system"]

oCustomNotification("Hacking Failed", "error", "top-right", 4000)
TriggerEvent("mhacking:hide")
else
-- Continue the hacking minigame
DrawHackingProgress(elapsedTime / timeLimit)
end
end
end)
use mhacking file