Since I am new to the forums and don’t have enough trust to post in the releases section I have merged a this resource with another to allow a player to hack open the vault door at the Pacific Standard. Here is the Virus Scan
I have created a Hacker job and a hacker menu. Buy I need help for integrating this script into menu, can anybody help with that? I tried a few things and I was able to start it but it wasn’t working correct (menu doesn’t close when game started) (the line ‘which is supposed to be 3 blocks wide’ is 18 blocks wide.)
Could anyone help me figure out why the mhacking will not hide. If it is success or fail the tool stays on the screen and i have to force quit FiveM to try again.
while GetDistanceBetweenCoords(playerCoords, hackCoords) < 0.5 do
playerCoords = GetEntityCoords(GetPlayerPed(-1))
Citizen.Wait(0)
ESX.Game.Utils.DrawText3D(hackCoords, "[~g~E~s~] Hack Motion Sensor", 0.4)
if IsControlJustReleased(0, 38) then
TriggerEvent("mhacking:show") --This line is where the hacking even starts
TriggerEvent("mhacking:start",7,19,mycb) --
end
function mycb(success, timeremaining)
if success then
print('Success with '..timeremaining..'s remaining.')
TriggerEvent('mhacking:hide')
else
print('Failure')
TriggerEvent('mhacking:hide')
end
end
end