Skip to content

Instantly share code, notes, and snippets.

@ihyajb
Created September 24, 2023 09:18
Show Gist options
  • Save ihyajb/9b5963bba43503ccf282730ba8a4a9d2 to your computer and use it in GitHub Desktop.
Save ihyajb/9b5963bba43503ccf282730ba8a4a9d2 to your computer and use it in GitHub Desktop.
FBI Server Room Computer Hack
local function CallScaleformMethod(scaleform, method, ...) --? i dont remember where i stole this function from but, credit to them lol
local t
local args = { ... }
BeginScaleformMovieMethod(scaleform, method)
for k, v in ipairs(args) do
t = type(v)
if t == 'string' then
PushScaleformMovieMethodParameterString(v)
elseif t == 'number' then
if string.match(tostring(v), "%.") then
PushScaleformMovieFunctionParameterFloat(v)
else
PushScaleformMovieFunctionParameterInt(v)
end
elseif t == 'boolean' then
PushScaleformMovieMethodParameterBool(v)
end
end
EndScaleformMovieMethod()
end
local timeLeft = 120000 --? Fuck R* and their weird big frame numbers
local TimePerPercent = 1000
local percent = 0
local Messages = {
"Deleting File N:\\Townley M\\PaletoBayBankJob.docu",
"Deleting File C:\\Documents\\FiveM.exe",
"Deleting File C:\\Documents\\RedM.exe",
"Deleting File E:\\Blender\\GTA5_Map.blend",
"Deleting File C:\\ihyajb\\github.html",
"Deleting File C:\\Homework\\IMG_1044.png",
"Deleting File D:\\Discord\\chatdisabled.exe",
"Deleting File D:\\NotPorn\\Porn.mp4",
"Deleting File C:\\Users\\Administrator",
"Deleting File E:\\Downloads\\VencordInstaller.exe",
"Deleting File E:\\Documents\\AnyDesk.exe",
}
local loadForms = { --? I dont remember why i load these... but i do :)
'HACKING_PC_desktop_0',
'HACKING_PC_desktop_1',
'HACKING_PC_desktop_2',
'HACKING_PC_desktop_3',
'HACKING_PC_desktop_4',
'HACKING_PC_desktop_5',
'HACKING_PC_desktop_6',
}
local CurrentMessage = Messages[1]
local function ChangeMessage()
CurrentMessage = Messages[math.random(#Messages)]
end
local function ChangePer()
CreateThread(function ()
while percent ~= 100 do
Wait(TimePerPercent)
percent = percent + 1
ChangeMessage()
end
CurrentMessage = 'DATA ERASE FINISHED'
end)
end
RegisterCommand('fbihack', function ()
CreateThread(function()
RequestModel(`prop_monitor_01b`)
repeat Wait(0) until HasModelLoaded(`prop_monitor_01b`)
local tv = GetClosestObjectOfType(151.31, -765.49, 258.05, 1.0, joaat("prop_monitor_01b"), true, false, true)
FreezeEntityPosition(tv, true)
if not IsNamedRendertargetRegistered('tvscreen') then
RegisterNamedRendertarget('tvscreen', false)
end
if not IsNamedRendertargetLinked(`prop_monitor_01b`) then
LinkNamedRendertarget(`prop_monitor_01b`)
end
iLocal_6512 = GetNamedRendertargetRenderId('tvscreen')
iLocal_6511 = GetDefaultScriptRendertargetRenderId()
for i = 1, #loadForms do
RequestStreamedTextureDict(loadForms[i], true)
repeat Wait(0) until HasStreamedTextureDictLoaded(loadForms[i])
end
iLocal_69 = RequestScaleformMovie('Hacking_PC')
ChangePer()
while true do
Wait(0)
if timeLeft > 100 then
timeLeft = (math.round(150 - percent))
else
timeLeft = (math.round(100 - percent))
end
SetTextRenderId(iLocal_6512)
CallScaleformMethod(iLocal_69, 'OPEN_LOADING_PROGRESS', true)
CallScaleformMethod(iLocal_69, 'ADD_PROGRAM', 1.0, 4.0, 'Porn', -1.0, -1.0, 'MyComputer', 0, 0, 0, 0)
CallScaleformMethod(iLocal_69, 'SET_LOADING_PROGRESS', percent, (percent ~= 100))
CallScaleformMethod(iLocal_69, 'SET_LOADING_TIME', timeLeft, 'TIME RENAINING')
CallScaleformMethod(iLocal_69, 'SET_LOADING_MESSAGE', CurrentMessage, 1.0)
EndTextCommandScaleformString()
DrawScaleformMovie(iLocal_69, 0.426, 0.366, 0.925, 0.723, 255, 255, 255, 255, 0)
SetTextRenderId(iLocal_6511)
end
end)
end)
AddEventHandler('onResourceStop', function(resource)
if resource == GetCurrentResourceName() then
iLocal_69 = SetScaleformMovieAsNoLongerNeeded(iLocal_69)
for i = 1, #loadForms do
print('Unloading: '..loadForms[i])
SetStreamedTextureDictAsNoLongerNeeded(loadForms[i])
end
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment