Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Question Mhacking Time

mar19994r3

Member
Joined
Mar 26, 2023
Messages
2
Reaction score
1
Points
146
Location
ydxcfyxd
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?
 

rgrg344gg

Bronze Elite
Joined
Aug 5, 2021
Messages
5
Reaction score
5
Points
146
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"]:DoCustomNotification("Hacking Failed", "error", "top-right", 4000)
TriggerEvent("mhacking:hide")
else
-- Continue the hacking minigame
DrawHackingProgress(elapsedTime / timeLimit)
end
end
end)

use mhacking file
 
Top