- 211
- 40
Чет не то сделал
Lua:
function imgui.OnDrawFrame()
if GUI.windowState.v then
local sw, sh = getScreenResolution()
imgui.SetNextWindowPos(imgui.ImVec2(sw / 2, sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(329, 300), imgui.Cond.FirstUseEver)
imgui.Begin('Fieryfast Software Release Version 1.0', nil, imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoResize + imgui.WindowFlags.NoMove)
imgui.SetCursorPos(imgui.ImVec2(5, 25))
if imgui.Button('AimBot', imgui.ImVec2(50, 24)) then
GUI.currentButtonID = 1
end
imgui.SetCursorPos(imgui.ImVec2(57, 25))
if imgui.Button('Visual', imgui.ImVec2(50, 24)) then
GUI.currentButtonID = 2
end
imgui.SetCursorPos(imgui.ImVec2(109, 25))
if imgui.Button('Actor', imgui.ImVec2(50, 24)) then
GUI.currentButtonID = 3
end
imgui.SetCursorPos(imgui.ImVec2(161, 25))
if imgui.Button('Vehicle', imgui.ImVec2(50, 24)) then
GUI.currentButtonID = 4
end
imgui.SetCursorPos(imgui.ImVec2(213, 25))
if imgui.Button('Config', imgui.ImVec2(50, 24)) then
GUI.currentButtonID = 5
end
imgui.SetCursorPos(imgui.ImVec2(265, 25))
if imgui.Button('Console', imgui.ImVec2(50, 24)) then
GUI.currentButtonID = 6
end
imgui.SetCursorPos(imgui.ImVec2(317,24))
if imgui.Button('Settings', imgui.ImVec2(50,24)) then
GUI.currentButtonID = 7
end
if GUI.currentButtonID == 1 then
imgui.SetCursorPosX(5)
imgui.SliderFloat('Smooth', GUI.aimbot.Smooth, 1.0, 25.0, "%.1f")
imgui.SetCursorPosX(5)
imgui.SliderFloat('Radius', GUI.aimbot.Radius, 1.0, 300.0, "%.1f")
imgui.SetCursorPosX(5)
imgui.SliderFloat('SafeZone', GUI.aimbot.Safe, 1.0, 300.0, "%.1f")
imgui.SetCursorPosX(5)
imgui.SliderFloat('SuperSmooth', GUI.aimbot.SuperSmooth, 1.0, 25.0, "%.1f")
imgui.SetCursorPosX(5)
imgui.Checkbox('Enable', GUI.aimbot.Enable)
imgui.SetCursorPosX(5)
imgui.Checkbox('IsFire', GUI.aimbot.IsFire)
imgui.SetCursorPosX(5)
imgui.Checkbox('VisibleCheck', GUI.aimbot.VisibleCheck)
imgui.SetCursorPosX(5)
imgui.Checkbox('DynamicSmooth', GUI.aimbot.DynamicSmooth)
imgui.SetCursorPosX(5)
imgui.Checkbox('CFilter', GUI.aimbot.CFilter)
imgui.SetCursorPosX(5)
imgui.Checkbox('IgnoreRange', GUI.aimbot.IgnoreRange)
imgui.SetCursorPos(imgui.ImVec2(150, 149))
imgui.Checkbox('IgnoreStun', GUI.aimbot.IgnoreStun)
end
if GUI.currentButtonID == 2 then
imgui.SetCursorPosX(5)
imgui.Checkbox('ESP Line', GUI.visual.ESPLine)
imgui.SetCursorPosX(5)
imgui.Checkbox('ESP Bones', GUI.visual.ESPBones)
imgui.SetCursorPosX(5)
imgui.Checkbox('ESP Box', GUI.visual.ESPBox)
imgui.SetCursorPosX(5)
imgui.Checkbox('ESP Info', GUI.visual.ESPInfo)
imgui.SetCursorPosX(5)
imgui.Checkbox('Draw FOV', GUI.visual.DrawFOV)
end
if GUI.currentButtonID == 3 then
imgui.SetCursorPosX(5)
imgui.Checkbox('NoStun', GUI.actor.NoStun)
imgui.SetCursorPosX(5)
imgui.Checkbox('NoFall', GUI.actor.NoFall)
imgui.SetCursorPosX(5)
imgui.Checkbox('NoCamRestore', GUI.actor.NoCamRestore)
imgui.SetCursorPosX(5)
imgui.Checkbox('InfiniteRun', GUI.actor.InfiniteRun)
imgui.SetCursorPosX(5)
imgui.Checkbox('GodMode', GUI.actor.GodMode)
imgui.SetCursorPosX(5)
imgui.Checkbox('AirBreak', GUI.actor.AirBreak)
end
if GUI.currentButtonID == 4 then
imgui.SetCursorPosX(5)
imgui.SliderFloat('SpeedSmooth', GUI.vehicle.SpeedSmooth, 1.0, 30.0, "%.1f")
imgui.SetCursorPosX(5)
imgui.Checkbox('SpeedHack', GUI.vehicle.SpeedHack)
imgui.SetCursorPosX(5)
imgui.Checkbox('DriveInWater', GUI.vehicle.Drive)
imgui.SetCursorPosX(5)
imgui.Checkbox('FastExit', GUI.vehicle.FastExit)
imgui.SetCursorPosX(5)
imgui.Checkbox('JumpBMX', GUI.vehicle.JumpBMX)
imgui.SetCursorPosX(5)
imgui.Checkbox('BikeFall', GUI.vehicle.BikeFall)
end
if GUI.currentButtonID == 5 then
imgui.SetCursorPosX(5)
if imgui.Button('Load', imgui.ImVec2(310, 25)) then load_ini() end
imgui.SetCursorPosX(5)
if imgui.Button('Save', imgui.ImVec2(310, 25)) then save_ini() end
imgui.SetCursorPosX(5)
if imgui.Button('Reset', imgui.ImVec2(310, 25)) then reset_ini() end
end
if GUI.currentButtonID == 6 then
imgui.SetCursorPosX(5)
imgui.InputText('Input', input)
imgui.SetCursorPosX(5)
if imgui.Button('Send') then
if input.v == 'DEATH' or input.v == 'death' then
setCharHealth(PLAYER_PED, 0)
end
if input.v == 'RECON' or input.v == 'recon' then
local ip, port = sampGetCurrentServerAddress()
sampDisconnectWithReason(false)
sampConnectToServer(ip, port)
end
if input.v == 'RELOAD' or input.v == 'reload' then
sampToggleCursor(false)
showCursor(false)
thisScript():reload()
end
if input.v == 'UPDATES' or input.v == 'updates' then
sampSendChat("/updates")
end
input.v = ''
end
imgui.Text('All comands:\n\nDEATH\nRECON\nRELOAD\nUPDATES(Very Soon...)')
end
if GUI.currentButtonID == 7 then
imgui.Separator()
if imgui.TreeNode(u8'Сменить тему') then
if HLcfg.main.theme ~= 1 then apply_custom_style() end
if imgui.Button(u8'Темная тема') then HLcfg.main.theme = 1; apply_custom_style() end
GetTheme()
if HLcfg.main.theme ~= 2 then lightBlue() end
if imgui.Button(u8'Светло-синяя тема', imgui.SameLine()) then HLcfg.main.theme = 2; lightBlue() end
GetTheme()
if HLcfg.main.theme ~= 3 then redTheme() end
if imgui.Button(u8'Красная тема', imgui.SameLine()) then HLcfg.main.theme = 3; redTheme() end
GetTheme()
imgui.TreePop()
end
imgui.End()
end
end
end