Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 116.88 KB | None | 0 0
  1. --[[
  2. -===========================================-
  3. Released to the public because of Global Ban Copyright SnowBoi, Freedom, Rights Reserved under AEGAMING.INFO
  4. __ ___ _ _
  5. /\ \ \ / (_) | (_)
  6. / \ _ __ \ V / _| |_ _ ___ _ __
  7. / /\ \ | '_ \ > < | | __| |/ _ \| '_ \
  8. / ____ \| | | |/ . \| | |_| | (_) | | | |
  9. /_/ \_\_| |_/_/ \_\_|\__|_|\___/|_| |_|
  10.  
  11. A Garry's Mod script.
  12. Created by Freedom <-- Joined the military <3 Updated by Snowboi.
  13. -===========================================-
  14. ]]--
  15.  
  16. /******************************
  17. Name: Notify/Prints
  18. Function: Create Notify/Prints
  19. ******************************/
  20. function Print ( msg )
  21. print ("[AnXition]: "..msg)
  22. end
  23.  
  24. function ChatPrint ( msg, color )
  25. chat.AddText ( color, "[AnXition] "..msg )
  26. end
  27.  
  28. function Notify ( msg, time )
  29. GAMEMODE:AddNotify ( msg, NOTIFY_GENERIC, time )
  30. end
  31.  
  32.  
  33. /*****************************
  34. Name: Tables
  35. Function: Tables
  36. *****************************/
  37. --== Player ==--
  38. ply = LocalPlayer()
  39.  
  40. --== Colors ==--
  41. local red = ( Color(255,0,0,255) )
  42. local lightred = ( Color(255,100,100,255) )
  43. local black = ( Color(0,0,0,255) )
  44. local green = ( Color(0,255,0,255) )
  45. local darkgreen = ( Color(0,200,0,255) )
  46. local white = ( Color(255,255,255,255) )
  47. local blue = ( Color(0,0,255,255) )
  48. local gold = ( Color(255,228,0,255) )
  49. local lightblue = ( Color(116,187,251,255) )
  50.  
  51. --Transparent--
  52. local tred = ( Color(150,0,0,125) )
  53. local tblack = ( Color(0,0,0,225) )
  54. local tgreen = ( Color(0,150,0,125) )
  55. local tblue = ( Color(0,0,150,125) )
  56. local trans = ( Color(0,0,0,0) )
  57.  
  58. --Special--
  59. local ttred = ( Color(175,0,0,150) )
  60.  
  61.  
  62. local volume = 0.60
  63. ply:ConCommand("volume 0.6")
  64.  
  65.  
  66. --== Spam Words ==--
  67. words = { }
  68. words[1] = "hax"
  69. words[2] = "freeman"
  70. words[3] = "figures"
  71. words[4] = "cheese"
  72. words[5] = "cp"
  73. words[6] = "help"
  74. words[7] = "dejavu"
  75. words[8] = "run"
  76. words[9] = "follow"
  77. words[10] = "over here"
  78. words[11] = "hi"
  79. words[12] = "he's dead"
  80. words[13] = "yes"
  81. words[14] = "get in"
  82. words[15] = "omg"
  83. words[16] = "lets go"
  84.  
  85. --== Tabs ==--
  86.  
  87. --HUD--
  88. local LogoTabCol = red
  89. local LogoTabGet = "Off"
  90.  
  91. local CITabCol = red
  92. local CITabGet = "Off"
  93. ---------------------------------------------------------
  94. local AdminsTabCol = red
  95. local AdminsTabGet = "Off"
  96. local hudadminlength = 150
  97.  
  98. local FriendsTabCol = red
  99. local FriendsTabGet = "Off"
  100. local hudfriendslength = 150
  101.  
  102. local HUDSpectator = { }
  103. local SpecHUDTabGet = "Off"
  104. local SpecHUDTabCol = red
  105.  
  106. local drawingcrosshairTabCol = red
  107. local drawingcrosshairTabGet = "Off"
  108.  
  109. --========================================================--
  110.  
  111. --ESP--
  112. local WallhackTabGet = "Off"
  113. local WallhackTabCol = red
  114.  
  115. local ESPInfoTabCol = red
  116. local ESPInfoTabGet = "Off"
  117.  
  118. local specialonlyTabCol = green
  119. local specialonlyTabGet = "On"
  120.  
  121. local showfriendsTabCol = red
  122. local showfriendsTabGet = "Off"
  123.  
  124. local showdistanceTabCol = red
  125. local showdistanceTabGet = "Off"
  126.  
  127. local showmoneyTabCol = red
  128. local showmoneyTabGet = "Off"
  129.  
  130. local showgroupsTabCol = red
  131. local showgroupsTabGet = "Off"
  132.  
  133. local ESPEntitysTabCol = red
  134. local ESPEntitysTabGet = "Off"
  135.  
  136. local beamsTabCol = red
  137. local beamsTabGet = "Off"
  138.  
  139. local ESPGroups = {
  140. "owner",
  141. "superadmin",
  142. "admin",
  143. "moderator",
  144. "mod",
  145. "admindonator",
  146. "donatoradmin",
  147. "donatormod",
  148. "operator"
  149. }
  150.  
  151. --========================================================--
  152.  
  153. --Logger--
  154.  
  155. JoinedAdmins = { }
  156. JoinedFriends = { }
  157. JoinedMods = { }
  158. Spectators = { }
  159.  
  160. --========================================================--
  161.  
  162. --Misc--
  163. local flashspammingTabCol = red
  164. local flashspammingTabGet = "Off"
  165.  
  166. local bunnyhopTabCol = red
  167. local bunnyhopTabGet = "Off"
  168.  
  169. local namechangingTabCol = red
  170. local namechangingTabGet = "Off"
  171.  
  172. local followingTabCol = red
  173. local followingTabGet = "Off"
  174.  
  175. local keypadloggingTabGet = "Off"
  176. local keypadloggingTabCol = red
  177.  
  178. local derpingTabCol = red
  179. local derpingTabGet = "Off"
  180.  
  181. local animatingTabCol = red
  182. local animatingTabGet = "Off"
  183.  
  184. local derpingTabCol = red
  185. local derpingTabGet = "Off"
  186.  
  187. local godmodeTabGet = "Off"
  188. local godmodeTabCol = red
  189.  
  190. local spammingTabGet = "Off"
  191. local spammingTabCol = red
  192.  
  193. local brightTabCol = red
  194. local brightTabGet = "Off"
  195.  
  196. local spectatingTabGet = "X"
  197. local spectatingTabCol = white
  198.  
  199. local xrayTabGet = "Off"
  200. local xrayTabCol = red
  201.  
  202. local mousespammingTabCol = red
  203. local mousespammingTabGet = "Off"
  204.  
  205. local drawingTabCol = red
  206. local drawingTabGet = "Off"
  207. --========================================================--
  208.  
  209. local idloggingTabCol = red
  210. local idloggingTabGet = "Off"
  211.  
  212. --Aimbot--
  213. local nospreadTabGet = "Off"
  214. local nospreadTabCol = red
  215.  
  216. local norecoilTabGet = "Off"
  217. local norecoilTabCol = red
  218.  
  219. local aimbottingTabCol = red
  220. local aimbottingTabGet = "Off"
  221.  
  222. local singleaimbotTabCol = red
  223. local singleaimbotTabGet = "Off"
  224. if ! asteamid then asteamid = "STEAM_ID_NOT_SET"
  225. end
  226.  
  227. local groupaimbotTabGet = "X"
  228. local groupaimbotTabCol = white
  229. local gsteamid = { }
  230.  
  231.  
  232. --Material--
  233. local Matinfo = {
  234. ["$basetexture"] = "models/debug/debugwhite",
  235. ["$model"] = 1,
  236. ["$nocull"] = 1,
  237. ["$ignorez"] = 1
  238. }
  239.  
  240. mat1 = (CreateMaterial( "chams", "VertexLitGeneric", Matinfo ))
  241. mat2 = (CreateMaterial( "wireframe", "Wireframe", Matinfo ))
  242.  
  243.  
  244. --Keypad Logger--
  245. local X = -50
  246. local Y = -100
  247.  
  248. local KeyPos = {
  249. {X+5, Y+100, 25, 25, -2.2, 3.45, 1.3, -0},
  250. {X+37.5, Y+100, 25, 25, -0.6, 1.85, 1.3, -0},
  251. {X+70, Y+100, 25, 25, 1.0, 0.25, 1.3, -0},
  252.  
  253. {X+5, Y+132.5, 25, 25, -2.2, 3.45, 2.9, -1.6},
  254. {X+37.5, Y+132.5, 25, 25, -0.6, 1.85, 2.9, -1.6},
  255. {X+70, Y+132.5, 25, 25, 1.0, 0.25, 2.9, -1.6},
  256.  
  257. {X+5, Y+165, 25, 25, -2.2, 3.45, 4.55, -3.3},
  258. {X+37.5, Y+165, 25, 25, -0.6, 1.85, 4.55, -3.3},
  259. {X+70, Y+165, 25, 25, 1.0, 0.25, 4.55, -3.3},
  260.  
  261. {X+5, Y+67.5, 50, 25, -2.2, 4.7, -0.3, 1.6},
  262. {X+60, Y+67.5, 35, 25, 0.3, 1.65, -0.3, 1.6}
  263. }
  264.  
  265. ////////////////////////////////////////////////////////////////////////////////////////////////
  266. Print ("Tables Loaded")
  267.  
  268. --== Fonts ==--
  269. surface.CreateFont("Menu",{font = "Arial", size = 17, weight = 200, antialias = 0})
  270. surface.CreateFont("Get",{font = "Fixedsys", size = 17, weight = 200, antialias = 0})
  271. surface.CreateFont("Small",{font = "Arial", size = 12, weight = 200, antialias = 0})
  272. surface.CreateFont("ESP",{font = "Fixedsys", size = 12, weight = 200, antialias = 0})
  273. surface.CreateFont("Logo",{font = "Tahoma", size = 20, weight = 100000, antialias = 0})
  274. surface.CreateFont("Playlist",{font = "Tahoma", size = 15, weight = 100000, antialias = 0})
  275. surface.CreateFont("HUDLogo",{font = "Ravie", size = 40, weight = 100000, antialias = 0})
  276. surface.CreateFont("Infotab",{font = "Ravie", size = 75, weight = 100000, antialias = 0})
  277.  
  278. ////////////////////////////////////////////////////////////////////////////////////////////////
  279. Print ( "Fonts Created" )
  280.  
  281. /******************************
  282. Name: Folders/Files
  283. Function: Create Files and Folders
  284. ******************************/
  285. if (not file.IsDir("AnXition", "Data"))
  286. then file.CreateDir("AnXition")
  287. end
  288.  
  289. if (not file.IsDir("AnXition/Logger", "Data"))
  290. then file.CreateDir("AnXition/Logger")
  291. end
  292.  
  293. if (not file.IsDir("AnXition/ESP", "Data"))
  294. then file.CreateDir("AnXition/ESP")
  295. end
  296.  
  297. if (not file.IsDir("AnXition/Aimbot", "Data"))
  298. then file.CreateDir("AnXition/Aimbot")
  299. end
  300.  
  301. if (not file.IsDir("AnXition/Detection", "Data"))
  302. then file.CreateDir("AnXition/Detection")
  303. end
  304.  
  305. if (not file.IsDir("AnXition/Playlist", "Data"))
  306. then file.CreateDir("AnXition/Playlist")
  307. end
  308.  
  309. if (not file.Exists("AnXition/Detection/toggle.txt", "Data"))
  310. then file.Write("AnXition/Detection/toggle.txt", "true")
  311. end
  312.  
  313. if (not file.Exists("AnXition/Aimbot/button.txt", "Data"))
  314. then file.Write("AnXition/Aimbot/button.txt", " KEY_E")
  315. end
  316.  
  317. if (not file.Exists("AnXition/ESP/Entitys.txt", "Data"))
  318. then file.Write("AnXition/ESP/Entitys.txt", "")
  319. end
  320. if (not file.Exists("AnXition/ESP/Finder.txt", "Data"))
  321. then file.Write("AnXition/ESP/Finder.txt", "")
  322. end
  323.  
  324. if (not file.Exists("AnXition/ESP/Printers.txt", "Data"))
  325. then file.Write("AnXition/ESP/Printers.txt", "")
  326. end
  327.  
  328. if (not file.Exists("AnXition/Logger/ID.txt", "Data"))
  329. then file.Write("AnXition/Logger/ID.txt", "")
  330. end
  331.  
  332. if (not file.Exists("AnXition/Logger/Models.txt", "Data"))
  333. then file.Write("AnXition/Logger/Models.txt", "")
  334. end
  335.  
  336. if (not file.Exists("AnXition/Playlist/URL.txt", "Data"))
  337. then file.Write("AnXition/Playlist/URL.txt", "")
  338. end
  339.  
  340. if (not file.Exists("AnXition/Playlist/Name.txt", "Data"))
  341. then file.Write("AnXition/Playlist/Name.txt", "")
  342. end
  343.  
  344. local aimbotbutton = string.Explode(" ",(file.Read("AnXition/Aimbot/button.txt")))
  345.  
  346. local Printers = string.Explode(" ",(file.Read("AnXition/ESP/printers.txt")))
  347.  
  348. local EEntitys = string.Explode(" ",(file.Read("AnXition/ESP/entitys.txt")))
  349.  
  350. local FEntitys = string.Explode(" ",(file.Read("AnXition/ESP/finder.txt")))
  351.  
  352. local detection = file.Read("AnXition/Detection/toggle.txt")
  353.  
  354. local PlaylistURL = string.Explode("%",(file.Read("AnXition/Playlist/URL.txt")))
  355.  
  356. local PlaylistName = string.Explode("%",(file.Read("AnXition/Playlist/Name.txt")))
  357.  
  358. if file.Read("AnXition/Detection/toggle.txt")=="true" then
  359. detectionTabGet = "Off"
  360. detectionTabCol = red
  361. elseif file.Read("AnXition/Detection/toggle.txt")=="false" then
  362. detectionTabGet = "On"
  363. detectionTabCol = green
  364. end
  365.  
  366. function ServerEntNumber( class )
  367. serverentcounter = 0
  368. for k,v in pairs(ents.GetAll()) do
  369. if v:GetClass()==class then
  370. serverentcounter = serverentcounter + 1
  371. end
  372. end
  373. return serverentcounter
  374. end
  375.  
  376. /******************************
  377. Name: FrameTime shit
  378. Function: timer frametime shit
  379. ******************************/
  380. function dotimer (func)
  381. timer.Create(" "..math.Rand(math.Rand(1000000,5000),math.Rand(1000000,5000)).." ", 0.1, 1, func)
  382. end
  383.  
  384. /******************************
  385. Name: Commands/ConVars
  386. Function: Everything Commands/ConVars
  387. ******************************/
  388. function NewCom ( command, funct )
  389. concommand.Add ( command, funct )
  390. Print ( "Command "..command.." Created!" )
  391. end
  392.  
  393. function RemoveCom ( command )
  394. concommand.Remove ( command )
  395. Print ( "Command "..command.." Removed!" )
  396. end
  397.  
  398. function NewCV ( CV, default, save )
  399. CreateClientConVar ( CV, default, save, false )
  400. Print ( "ConVar "..CV.. " Created!" )
  401. end
  402. Print ( "Command Functions Created" )
  403. Print ( "ConVar Functions Created" )
  404.  
  405.  
  406.  
  407. /******************************
  408. Name: Hook
  409. Function: Everything Hooks
  410. ******************************/
  411. function NewHook ( Type, Name, funct )
  412. hook.Add ( Type, Name, funct )
  413. Print ( "Hook "..Name.." Created!" )
  414. end
  415.  
  416. function RemoveHook ( Type, Name )
  417. hook.Remove ( Type, Name )
  418. Print ( "Hook "..Name.." Removed!" )
  419. end
  420.  
  421. Print ( "Hook Functions Created" )
  422. /******************************
  423. Name: Draw/Surface
  424. Function Everything with Draw/Surface
  425. ******************************/
  426. function DrawRoundedBoxEx ( bordersize, x, y, sX, sY, color, Topl, Topr, Botl, Botr )
  427. draw.RoundedBoxEx ( bordersize, x, y, sX, sY, color, Topl, Topr, Botl, Botr )
  428. end
  429.  
  430. function DrawRoundedBox ( bordersize, x, y, sX, sY, color )
  431. draw.RoundedBox ( bordersize, x, y, sX, sY, color )
  432. end
  433.  
  434. function DrawOutlinedText ( title, font, x, y, color, OUTsize, OUTcolor )
  435. draw.SimpleTextOutlined ( title, font, x, y, color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, OUTsize, OUTcolor )
  436. end
  437.  
  438. function DrawOutlinedText2 ( title, font, x, y, color, OUTsize, OUTcolor )
  439. draw.SimpleTextOutlined ( title, font, x, y, color, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, OUTsize, OUTcolor )
  440. end
  441.  
  442. function DrawOutlinedText3 ( title, font, x, y, color, OUTsize, OUTcolor )
  443. draw.SimpleTextOutlined ( title, font, x, y, color, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER, OUTsize, OUTcolor )
  444. end
  445.  
  446. function DrawOutlinedRect (color, bx, by, ex, ey )
  447. surface.SetDrawColor (color)
  448. surface.DrawOutlinedRect ( bx, by, ex, ey )
  449. end
  450.  
  451. function DrawLine ( bX, bY, eX, eY )
  452. surface.DrawLine ( bX, bY, eX, eY )
  453. end
  454.  
  455. function DrawText ( text, x, y, color )
  456. draw.SimpleText ( text, "Get", x, y, color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  457. end
  458.  
  459. Print ( "Draw/Surface Functions Created" )
  460.  
  461. /*****************************
  462. Name: Derma
  463. Function: Create Derma shit
  464. *****************************/
  465.  
  466. function CreateButton ( title, Parent, tcolor, bcolor, visible, x, y, sX, sY, tip, doclick )
  467. local button = vgui.Create( "DButton" )
  468. button:SetParent( Parent )
  469. button:SetText( " " )
  470. button:SetPos( x, y )
  471. button:SetSize( sX, sY )
  472. button:SetVisible( visible )
  473. button:SetColor( tcolor )
  474. button:SetTooltip( tip or " " )
  475. button.Paint = function ()
  476. DrawRoundedBoxEx ( 10, 0, 0, button:GetWide(), button:GetTall(), bcolor, false, false, false, false )
  477. DrawOutlinedText ( title, "Menu", button:GetWide()/2, button:GetTall()-10, white, 1, black )
  478. DrawOutlinedRect (red, 0, 0, button:GetWide(), button:GetTall() )
  479. end
  480. button.DoClick = doclick
  481. end
  482.  
  483.  
  484. function CreateCheckBox ( title, convar, parent, x, y, tip )
  485. local checkbox = vgui.Create( "DCheckBoxLabel", parent )
  486. checkbox:SetPos( x, y )
  487. checkbox:SetText( title )
  488. checkbox:SetConVar( convar )
  489. checkbox:SetTextColor(white)
  490. checkbox:SetTooltip( tip or " " )
  491. checkbox:SizeToContents()
  492. end
  493.  
  494. /*****************************
  495. Name: Visible
  496. Function: Is the player visible?
  497. *****************************/
  498. function Visible( ply )
  499. if (!IsValid( ply )) then return false end
  500.  
  501. local vecPos, _ = ply:GetBonePosition( ply:LookupBone( "ValveBiped.Bip01_Head1" ) or 12 );
  502. local trace = { start = LocalPlayer():EyePos(), endpos = vecPos, filter = LocalPlayer(), mask = MASK_SHOT };
  503. local traceRes = util.TraceLine( trace );
  504.  
  505. TraceRes = traceRes;
  506.  
  507. if (traceRes.HitWorld || traceRes.Entity != ply) then return false end;
  508.  
  509. return true;
  510. end
  511. /*****************************
  512. Name: Main
  513. Function: Create Main Functions
  514. *****************************/
  515.  
  516. function Unload ()
  517. --Coms--
  518. RemoveCom ( "AnXition_Menu" )
  519. RemoveCom ( "AnXition_Boost1" )
  520. RemoveCom ( "AnXition_Boost2" )
  521. RemoveCom ( "AnXition_Boost3" )
  522. RemoveCom ( "AnXition_Derp" )
  523. RemoveCom ( "AnXition_Follow" )
  524. RemoveCom ( "AnXition_GetDClasses" )
  525. RemoveCom ( "AnXition_GetClass" )
  526. RemoveCom ( "AnXition_GetModel" )
  527. RemoveCom ( "AnXition_GetMaterial" )
  528. RemoveCom ( "AnXition_SetATarget" )
  529. RemoveCom ( "AnXition_Xray" )
  530.  
  531. --Hooks--
  532. RemoveHook("HUDPaint", "Logo")
  533. RemoveHook("HUDPaint", "CI")
  534. RemoveHook("HUDPaint", "admins")
  535. RemoveHook("HUDPaint", "friends")
  536. RemoveHook("HUDPaint", "spectating")
  537. RemoveHook("HUDPaint", "Crosshair")
  538. RemoveHook("HUDPaint", "wallhack")
  539. RemoveHook("HUDPaint", "ESPEntitys")
  540. RemoveHook("HUDPaint", "findents")
  541. RemoveHook("HUDPaint", "ESPInfo")
  542. RemoveHook("HUDPaint", "beams1")
  543. RemoveHook("HUDPaint", "beams2")
  544. RemoveHook("Think", "idlog")
  545. RemoveHook("Think", "flashspam")
  546. RemoveHook("Think", "bhop")
  547. RemoveHook("HUDPaint", "KeypadShow")
  548. RemoveHook("Think", "KeypadLog")
  549. RemoveHook("Think", "follow")
  550. RemoveHook("Think", "derp")
  551. RemoveHook("CalcView", "Derpview")
  552. RemoveHook("ShouldDrawLocalPlayer", "derpdraw")
  553. RemoveHook("Think", "spam")
  554. RemoveHook("Think", "EFullbright")
  555. RemoveHook("Think", "godmode")
  556. RemoveHook("Think", "aimbot")
  557. RemoveHook("Think", "saimbot")
  558. RemoveHook("Think", "mousespam")
  559.  
  560. --timers--
  561. timer.Destroy("namechange")
  562. timer.Destroy("animating")
  563.  
  564.  
  565. Close ()
  566. Print ( "Unloaded" )
  567. ChatPrint ( "Unloaded", red )
  568. end
  569.  
  570. function Load ()
  571. NewCom ( "AnXition_Menu", Menu )
  572.  
  573. NewCom ( "AnXition_Boost1", boost1 )
  574. NewCom ( "AnXition_Boost2", boost2 )
  575. NewCom ( "AnXition_Boost3", boost3 )
  576.  
  577. NewCom ( "AnXition_GetClass", GetClass )
  578. NewCom ( "AnXition_GetModel", GetModel )
  579. NewCom ( "AnXition_GetMaterial", GetMaterial )
  580. NewCom ( "AnXition_GetDClasses", GetDClasses )
  581.  
  582. NewCom ( "AnXition_Follow", Follow )
  583. NewCom ( "AnXition_Derp", Derp )
  584.  
  585. NewCom ( "AnXition_SetATarget", SetbyView )
  586.  
  587. Loaddefaultscripts ()
  588. Print ( "Loaded" )
  589. ChatPrint ( "Loaded", red )
  590. end
  591.  
  592. function Reload()
  593. Unload()
  594. Load()
  595. Close ()
  596. end
  597.  
  598. /*****************************
  599. Name: Not Done
  600. Function: inpacient players clicking undone functions.
  601. *****************************/
  602.  
  603. function NotDone ()
  604. ChatPrint("This Function Isn't done yet.", red)
  605. end
  606.  
  607. /*****************************
  608. Name: HUD
  609. Function: Create Hud Functions
  610. *****************************/
  611. function HUDLogo ()
  612. if !logo then
  613. logo = "On1"
  614. LogoTabCol = green
  615. LogoTabGet = " On [1]"
  616. hook.Add("HUDPaint", "Logo", function ()
  617. DrawOutlinedRect (red, ScrW()/2-130, -5, 264, 50 )
  618. DrawRoundedBoxEx ( 0, ScrW()/2-130, 0, 264, 45, tred, false, false, false, false )
  619. DrawOutlinedText ( "Agressive Exile", "HUDLogo", ScrW()/2, ScrH()/35, red, 3, black )
  620. end)
  621. elseif logo=="On1" then
  622. logo = "On2"
  623. LogoTabCol = green
  624. LogoTabGet = " On [2]"
  625. hook.Remove("HUDPaint", "Logo")
  626. hook.Add("HUDPaint", "Logo", function ()
  627. DrawOutlinedRect (red, ScrW()/2-130, -5, 264, 50 )
  628. DrawOutlinedText ( "Agressive Exile", "HUDLogo", ScrW()/2, ScrH()/35, red, 3, black )
  629. end)
  630. elseif logo=="On2" then
  631. logo = "On3"
  632. LogoTabCol = green
  633. LogoTabGet = " On [3]"
  634. hook.Remove("HUDPaint", "Logo")
  635. hook.Add("HUDPaint", "Logo", function ()
  636. DrawOutlinedText ( "Agressive Exile", "HUDLogo", ScrW()/2, ScrH()/35, red, 3, black )
  637. end)
  638. else
  639. LogoTabCol = red
  640. logo = false
  641. LogoTabGet = "Off"
  642. hook.Remove("HUDPaint", "Logo")
  643. end
  644. end
  645.  
  646.  
  647. function HUDCI ()
  648. if !CI then
  649. CI = "On1"
  650. CITabCol = green
  651. CITabGet = " On [1]"
  652. hook.Add("HUDPaint", "CI", function ()
  653. DrawRoundedBoxEx ( 0, ScrW()/2-100, 45, 200, 25, tblack, false, false, false, false )
  654. DrawOutlinedText ( "Fps: ", "Menu", ScrW()/2-75, 55, red, 1, black )
  655. DrawOutlinedText ( math.Round( 1/FrameTime()), "Menu", ScrW()/2-50, 55, red, 1, black )
  656. DrawOutlinedText ( "Ping: ", "Menu", ScrW()/2+60, 55, red, 1, black )
  657. DrawOutlinedText ( LocalPlayer():Ping(), "Menu", ScrW()/2+85, 55, red, 1, black )
  658. end)
  659. elseif CI=="On1" then
  660. CI = "On2"
  661. CITabCol = green
  662. CITabGet = " On [2]"
  663. hook.Remove("HUDPaint", "CI")
  664. hook.Add("HUDPaint", "CI", function ()
  665. DrawOutlinedText ( "Fps: ", "Menu", ScrW()/2-75, 55, red, 1, black )
  666. DrawOutlinedText ( math.Round( 1/FrameTime()), "Menu", ScrW()/2-50, 55, red, 1, black )
  667. DrawOutlinedText ( "Ping: ", "Menu", ScrW()/2+60, 55, red, 1, black )
  668. DrawOutlinedText ( LocalPlayer():Ping(), "Menu", ScrW()/2+85, 55, red, 1, black )
  669. end)
  670. elseif CI=="On2" then
  671. CI = "On3"
  672. CITabCol = green
  673. CITabGet = " On [3]"
  674. hook.Remove("HUDPaint", "CI")
  675. hook.Add("HUDPaint", "CI", function ()
  676. DrawOutlinedText ( "Fps: ", "Menu", ScrW()/2-145, 5, red, 1, black )
  677. DrawOutlinedText ( math.Round( 1/FrameTime()), "Menu", ScrW()/2-120, 5, red, 1, black )
  678. DrawOutlinedText ( "Ping: ", "Menu", ScrW()/2+130, 5, red, 1, black )
  679. DrawOutlinedText ( LocalPlayer():Ping(), "Menu", ScrW()/2+155, 5, red, 1, black )
  680. end)
  681. else
  682. CITabCol = red
  683. CI = false
  684. CITabGet = "Off"
  685. hook.Remove("HUDPaint", "CI")
  686. end
  687. end
  688.  
  689. function HUDAdmins ()
  690. if !admins then
  691. admins = "Right"
  692. AdminsTabCol = green
  693. AdminsTabGet = "Right"
  694. hook.Add("HUDPaint", "admins", function ()
  695. DrawOutlinedRect (red, ScrW()-201, -5, 200, hudadminlength+25 )
  696. DrawOutlinedRect (red, ScrW()-200, -5, 200, 25 )
  697. DrawRoundedBoxEx ( 0, ScrW()-200, 20, 200, hudadminlength, tblack, false, false, false, false )
  698. DrawRoundedBoxEx ( 0, ScrW()-200, 0, 200, 20, tred, false, false, false, false )
  699. DrawOutlinedText ( "Admins", "Menu", ScrW()-100, 10, red, 1, black )
  700. admincount = 0
  701. hudcount = 0
  702. for k,v in pairs(player.GetAll()) do
  703. if v:IsAdmin() or v:IsSuperAdmin() then
  704. DrawOutlinedText ( v:GetName(), "Menu", ScrW()-100, 30+admincount, red, 1, black )
  705. admincount = admincount+17.5
  706. hudcount = hudcount+1
  707. end
  708. end
  709. if admincount==0 then
  710. DrawOutlinedText ( "No Admins on this server", "Menu", ScrW()-100, 30, red, 1, black )
  711. end
  712. end)
  713. elseif admins=="Right" then
  714. admins = "Left"
  715. AdminsTabCol = green
  716. AdminsTabGet = "Left"
  717. hook.Remove("HUDPaint", "admins")
  718. hook.Add("HUDPaint", "admins", function ()
  719. DrawOutlinedRect (red, 0, -5, 200, hudadminlength+25 )
  720. DrawOutlinedRect (red, 0, -5, 200, 25 )
  721. DrawRoundedBoxEx ( 0, 0, 20, 200, hudadminlength, tblack, false, false, false, false )
  722. DrawRoundedBoxEx ( 0, 0, 0, 200, 20, tred, false, false, false, false )
  723. DrawOutlinedText ( "Admins", "Menu", 0+100, 10, red, 1, black )
  724. admincount = 0
  725. for k,v in pairs(player.GetAll()) do
  726. if v:IsAdmin() or v:IsSuperAdmin() then
  727. DrawOutlinedText ( v:GetName(), "Menu", 100, 30+admincount, red, 1, black )
  728. admincount = admincount+17.5
  729. end
  730. end
  731. if admincount==0 then
  732. DrawOutlinedText ( "No Admins on this server", "Menu", 100, 30, red, 1, black )
  733. end
  734. end)
  735. elseif admins then
  736. AdminsTabCol = red
  737. admins = false
  738. AdminsTabGet = "Off"
  739. hook.Remove("HUDPaint", "admins")
  740. end
  741. end
  742.  
  743. function HUDFriends ()
  744. if !friends then
  745. friends = "Left"
  746. FriendsTabCol = green
  747. FriendsTabGet = "Left"
  748. hook.Add("HUDPaint", "friends", function ()
  749. DrawOutlinedRect (red, 0, -5, 201, hudfriendslength+25 )
  750. DrawOutlinedRect (red, 0, -5, 201, 25 )
  751. DrawRoundedBoxEx ( 0, 0, 20, 200, hudfriendslength, tblack, false, false, false, false )
  752. DrawRoundedBoxEx ( 0, 0, 0, 200, 20, tred, false, false, false, false )
  753. DrawOutlinedText ( "Friends", "Menu", 0+100, 10, red, 1, black )
  754. friendcount = 0
  755. for k,v in pairs(player.GetAll()) do
  756. if v != ply and v:GetFriendStatus()=="friend" then
  757. DrawOutlinedText ( v:GetName(), "Menu", 100, 30+friendcount, red, 1, black )
  758. friendcount = friendcount+17.5
  759. end
  760. end
  761. if friendcount==0 then
  762. DrawOutlinedText ( "No friends on this server", "Menu", 100, 30, red, 1, black )
  763. end
  764. end)
  765. elseif friends == "Left" then
  766. friends = "Right"
  767. FriendsTabCol = green
  768. FriendsTabGet = "Right"
  769. hook.Remove("HUDPaint", "friends")
  770. hook.Add("HUDPaint", "friends", function ()
  771. DrawOutlinedRect (red, ScrW()-200, -5, 200, hudfriendslength+25 )
  772. DrawOutlinedRect (red, ScrW()-200, -5, 200, 25 )
  773. DrawRoundedBoxEx ( 0, ScrW()-200, 20, 200, hudfriendslength, tblack, false, false, false, false )
  774. DrawRoundedBoxEx ( 0, ScrW()-200, 0, 200, 20, tred, false, false, false, false )
  775. DrawOutlinedText ( "Friends", "Menu", ScrW()-100, 10, red, 1, black )
  776. friendcount = 0
  777. for k,v in pairs(player.GetAll()) do
  778. if v != ply and v:GetFriendStatus()=="friend" then
  779. DrawOutlinedText ( v:GetName(), "Menu", ScrW()-100, 30+friendcount, red, 1, black )
  780. friendcount = friendcount+17.5
  781. end
  782. end
  783. if friendcount==0 then
  784. DrawOutlinedText ( "No friends on this server", "Menu", 100, 30, red, 1, black )
  785. end
  786. end)
  787. else
  788. FriendsTabCol = red
  789. friends = false
  790. FriendsTabGet = "Off"
  791. hook.Remove("HUDPaint", "friends")
  792. end
  793. end
  794.  
  795. function HUDSpectate ()
  796. if !Spectateshit then
  797. Spectateshit = true
  798. SpecHUDTabGet = "On"
  799. SpecHUDTabCol = green
  800. hook.Add("HUDPaint", "spectating", function()
  801. for k,v in pairs(player.GetAll()) do
  802. if (IsValid(v:GetObserverTarget())) and v:GetObserverTarget()==ply then
  803. DrawOutlinedText ( v:GetName().." Is Watching you.", "Menu", ScrW()/2, ScrH()/14, red, 1, black )
  804. end
  805. end
  806. end)
  807. elseif Spectateshit then
  808. Spectateshit = false
  809. SpecHUDTabGet = "Off"
  810. SpecHUDTabCol = red
  811. hook.Remove("HUDPaint", "spectating")
  812. end
  813. end
  814.  
  815. function HUDCrosshair ()
  816. if !drawingcrosshair then
  817. drawingcrosshair = "1"
  818. drawingcrosshairTabCol = green
  819. drawingcrosshairTabGet = " On [1]"
  820. hook.Add("HUDPaint", "Crosshair", function()
  821. surface.SetDrawColor( 255, 0, 0, 255 )
  822. surface.DrawLine( ScrW()/2 - 20, ScrH()/2, ScrW()/2 - 5, ScrH()/2 )
  823. surface.DrawLine( ScrW()/2 + 20, ScrH()/2, ScrW()/2 + 5, ScrH()/2 )
  824. surface.DrawLine( ScrW()/2, ScrH()/2 - 20, ScrW()/2, ScrH()/2 - 5 )
  825. surface.DrawLine( ScrW()/2, ScrH()/2 + 20, ScrW()/2, ScrH()/2 + 5 )
  826. surface.DrawLine( ScrW()/2, ScrH()/2 , ScrW()/2, ScrH()/2+1 )
  827. end)
  828. elseif drawingcrosshair=="1" then
  829. drawingcrosshair = "2"
  830. drawingcrosshairTabCol = green
  831. drawingcrosshairTabGet = " On [2]"
  832. hook.Remove("HUDPaint", "Crosshair")
  833. hook.Add("HUDPaint", "Crosshair", function()
  834. surface.SetDrawColor( 255, 0, 0, 255 )
  835. surface.DrawLine( ScrW()/2 - 10, ScrH()/2-10, ScrW()/2 , ScrH()/2 )
  836. surface.DrawLine( ScrW()/2 + 10, ScrH()/2+10, ScrW()/2 , ScrH()/2 )
  837. surface.DrawLine( ScrW()/2 + 10, ScrH()/2-10, ScrW()/2 , ScrH()/2 )
  838. surface.DrawLine( ScrW()/2 - 10, ScrH()/2+10, ScrW()/2 , ScrH()/2 )
  839. end)
  840. elseif drawingcrosshair=="2" then
  841. drawingcrosshair = "3"
  842. drawingcrosshairTabCol = green
  843. drawingcrosshairTabGet = " On [3]"
  844. hook.Remove("HUDPaint", "Crosshair")
  845. hook.Add("HUDPaint", "Crosshair", function()
  846. local center = Vector( ScrW() / 2, ScrH() / 2, 0 )
  847. local scale = Vector( 10, 10, 0 )
  848. local segmentdist = 360 / ( 2 * math.pi * math.max( scale.x, scale.y ) / 2 )
  849. surface.SetDrawColor( 255, 0, 0, 255 )
  850.  
  851. for a = 0, 360 - segmentdist, segmentdist do
  852. surface.DrawLine( center.x + math.cos( math.rad( a ) ) * scale.x, center.y - math.sin( math.rad( a ) ) * scale.y, center.x + math.cos( math.rad( a + segmentdist ) ) * scale.x, center.y - math.sin( math.rad( a + segmentdist ) ) * scale.y )
  853. end
  854. end)
  855. elseif drawingcrosshair=="3" then
  856. drawingcrosshair = false
  857. drawingcrosshairTabCol = red
  858. drawingcrosshairTabGet = "Off"
  859. hook.Remove("HUDPaint", "Crosshair")
  860. end
  861. end
  862.  
  863.  
  864.  
  865. function HUDToggleON1 ()
  866. logo = false
  867. HUDLogo ()
  868.  
  869. CI = false
  870. HUDCI ()
  871.  
  872. admins = false
  873. HUDAdmins ()
  874.  
  875. friends = false
  876. HUDFriends ()
  877.  
  878. Spectateshit = false
  879. HUDSpectate ()
  880.  
  881. drawingcrosshair = false
  882. HUDCrosshair ()
  883. end
  884.  
  885. function HUDToggleON2 ()
  886. logo = "On2"
  887. HUDLogo ()
  888.  
  889. CI = "On2"
  890. HUDCI ()
  891.  
  892. admins = "Left"
  893. HUDAdmins ()
  894.  
  895. friends = "Right"
  896. HUDFriends ()
  897.  
  898. Spectateshit = false
  899. HUDSpectate ()
  900.  
  901. drawingcrosshair = false
  902. HUDCrosshair ()
  903. end
  904.  
  905.  
  906. function HUDToggleOFF ()
  907. logo = "On3"
  908. HUDLogo ()
  909.  
  910. CI = "On3"
  911. HUDCI ()
  912.  
  913. admins = "Left"
  914. HUDAdmins ()
  915.  
  916. friends = "Right"
  917. HUDFriends ()
  918.  
  919. Spectateshit = true
  920. HUDSpectate ()
  921.  
  922. drawingcrosshair = "3"
  923. HUDCrosshair ()
  924. end
  925.  
  926.  
  927.  
  928. /////////////////////////////////////////////////////////////////////////////////////////
  929.  
  930. /*****************************
  931. Name: ESP
  932. Function: Create ESP Functions
  933. *****************************/
  934. function Wallhack ()
  935. if !wallhacking then
  936. wallhacking = "chams"
  937. WallhackTabGet = " Chams"
  938. WallhackTabCol = green
  939. hook.Add("HUDPaint", "wallhack", function()
  940. for k,v in pairs(player.GetAll()) do
  941. if !Visible(v) and v:IsPlayer() and v:Alive() and v != ply then
  942. if specialonly then
  943. if v:IsAdmin() or v:IsSuperAdmin() or table.HasValue(ESPGroups, group) or v:GetFriendStatus()=="friend" then
  944. local TCol = team.GetColor(v:Team())
  945. cam.Start3D(EyePos(),EyeAngles())
  946. render.SuppressEngineLighting( true )
  947. render.MaterialOverride( mat1 )
  948. render.SetColorModulation( ( TCol.r * ( 5 / 255 ) ), ( TCol.g * ( 1 / 255 ) ), ( TCol.b * ( 1 / 255 ) ) )
  949. v:DrawModel()
  950. if (IsValid(v:GetActiveWeapon())) then
  951. v:GetActiveWeapon():DrawModel()
  952. end
  953. render.SuppressEngineLighting( false )
  954. render.MaterialOverride( )
  955. cam.End3D()
  956. end
  957. elseif !specialonly then
  958. local TCol = team.GetColor(v:Team())
  959. cam.Start3D(EyePos(),EyeAngles())
  960. render.SuppressEngineLighting( true )
  961. render.MaterialOverride( mat1 )
  962. render.SetColorModulation( ( TCol.r * ( 5 / 255 ) ), ( TCol.g * ( 1 / 255 ) ), ( TCol.b * ( 1 / 255 ) ) )
  963. v:DrawModel()
  964. if (IsValid(v:GetActiveWeapon())) then
  965. v:GetActiveWeapon():DrawModel()
  966. end
  967. render.SuppressEngineLighting( false )
  968. render.MaterialOverride( )
  969. cam.End3D()
  970. end
  971. end
  972. end
  973. end)
  974. elseif wallhacking == "chams" then
  975. wallhacking = "wireframe"
  976. WallhackTabGet = " WireFrame"
  977. WallhackTabCol = green
  978. hook.Remove("HUDPaint", "wallhack")
  979. hook.Add("HUDPaint", "wallhack", function()
  980. for k,v in pairs(player.GetAll()) do
  981. if !Visible(v) and v:IsPlayer() and v:Alive() and v != ply and v:Team()!= TEAM_SPECTATOR then
  982. local TCol = team.GetColor(v:Team())
  983. cam.Start3D(EyePos(),EyeAngles())
  984. render.SuppressEngineLighting( true )
  985. render.MaterialOverride( mat2 )
  986. render.SetColorModulation( ( TCol.r * ( 5 / 255 ) ), ( TCol.g * ( 1 / 255 ) ), ( TCol.b * ( 1 / 255 ) ) )
  987. v:DrawModel()
  988. if (IsValid(v:GetActiveWeapon())) then
  989. v:GetActiveWeapon():DrawModel()
  990. end
  991. render.SuppressEngineLighting( false )
  992. render.MaterialOverride( )
  993. cam.End3D()
  994. end
  995. end
  996. end)
  997. else
  998. wallhacking = false
  999. WallhackTabGet = "Off"
  1000. WallhackTabCol = red
  1001. hook.Remove("HUDPaint", "wallhack")
  1002. end
  1003. end
  1004.  
  1005. function Entitys ()
  1006. if !ESPEntitys then
  1007. ESPEntitys = true
  1008. ESPEntitysTabCol = green
  1009. ESPEntitysTabGet = "On"
  1010. hook.Add("HUDPaint", "ESPEntitys", function()
  1011. for k,v in pairs(ents.GetAll()) do
  1012. if table.HasValue(EEntitys,v:GetClass()) then
  1013. cam.Start3D(EyePos(),EyeAngles())
  1014. render.SuppressEngineLighting( true )
  1015. render.MaterialOverride( mat )
  1016. render.SetColorModulation( 0,255,0 )
  1017. render.SetBlend(0.3)
  1018. v:DrawModel()
  1019. render.SetBlend(1)
  1020. render.SuppressEngineLighting( false )
  1021. render.MaterialOverride( )
  1022. cam.End3D()
  1023. elseif table.HasValue(Printers,v:GetClass()) then
  1024. cam.Start3D(EyePos(),EyeAngles())
  1025. render.SuppressEngineLighting( true )
  1026. render.MaterialOverride( mat )
  1027. render.SetColorModulation( 255,0,0 )
  1028. render.SetBlend(0.3)
  1029. v:DrawModel()
  1030. render.SetBlend(1)
  1031. render.SuppressEngineLighting( false )
  1032. render.MaterialOverride( )
  1033. cam.End3D()
  1034. end
  1035. end
  1036. end)
  1037.  
  1038.  
  1039.  
  1040. elseif ESPEntitys then
  1041. ESPEntitys = false
  1042. ESPEntitysTabCol = red
  1043. ESPEntitysTabGet = "Off"
  1044. hook.Remove("HUDPaint", "ESPEntitys")
  1045. end
  1046. end
  1047.  
  1048. function Info ()
  1049. if !ESPInfo then
  1050. ESPInfo = true
  1051. ESPInfoTabCol = green
  1052. ESPInfoTabGet = "On"
  1053. hook.Add("HUDPaint", "ESPInfo", function()
  1054. for k,v in pairs(player.GetAll()) do
  1055. local playermoney = (v.DarkRPVars and v.DarkRPVars.money) or 0
  1056. group = ("["..v:GetUserGroup().."]") or "[user]"
  1057. if group=="[user]" then group=" "
  1058. end
  1059.  
  1060.  
  1061. groupcol = lightblue
  1062. if table.HasValue(ESPGroups, group) then
  1063. groupcol = red
  1064. elseif v:IsAdmin() or v:IsSuperAdmin() then
  1065. groupcol = red
  1066. end
  1067.  
  1068. local Position = (v:GetPos()+Vector(0,0,80)):ToScreen()
  1069. if v:IsPlayer() and v:Alive() and v != ply and v:Team()!= TEAM_SPECTATOR then
  1070. if showfriends and v:GetFriendStatus()=="friend" then
  1071. DrawOutlinedText ( "[Friend]", "ESP", Position.x, Position.y-15, green, 0.5, black )
  1072. end
  1073. if specialonly then
  1074. if v:IsAdmin() or v:IsSuperAdmin() or v:GetFriendStatus()=="friend" then
  1075. DrawOutlinedText ( v:GetName(), "ESP", Position.x, Position.y-50, white, 0.5, black )
  1076. if showdistance then
  1077. DrawOutlinedText ( "Dis: "..math.Round(ply:GetPos():Distance(v:GetPos())), "ESP", Position.x, Position.y-40, white, 0.5, black )
  1078. if showmoney then
  1079. DrawOutlinedText ( "$"..playermoney, "ESP", Position.x, Position.y-40, white, 0.5, black )
  1080. if showgroups then
  1081. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1082. end
  1083. else
  1084. if showgroups then
  1085. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1086. end
  1087. end
  1088. else
  1089. if showmoney then
  1090. DrawOutlinedText ( "$"..playermoney, "ESP", Position.x, Position.y-40, white, 0.5, black )
  1091. if showgroups then
  1092. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1093. end
  1094. else
  1095. if showgroups then
  1096. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1097. end
  1098. end
  1099. end
  1100. end
  1101. else
  1102. DrawOutlinedText ( v:GetName(), "ESP", Position.x, Position.y-50, white, 0.5, black )
  1103. if showdistance then
  1104. DrawOutlinedText ( "Dis: "..math.Round(ply:GetPos():Distance(v:GetPos())), "ESP", Position.x, Position.y-40, white, 0.5, black )
  1105. if showmoney then
  1106. DrawOutlinedText ( "$"..playermoney, "ESP", Position.x, Position.y-30, white, 0.5, black )
  1107. if showgroups then
  1108. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1109. end
  1110. else
  1111. if showgroups then
  1112. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1113. end
  1114. end
  1115. else
  1116.  
  1117. if showmoney then
  1118. DrawOutlinedText ( "$"..playermoney, "ESP", Position.x, Position.y-40, white, 0.5, black )
  1119. if showgroups then
  1120. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1121. end
  1122. else
  1123. if showgroups then
  1124. DrawOutlinedText ( group, "ESP", Position.x, Position.y-65, groupcol, 0.5, black )
  1125. end
  1126. end
  1127. end
  1128. end
  1129. end
  1130. end
  1131. end)
  1132. elseif ESPInfo then
  1133. ESPInfo = false
  1134. ESPInfoTabCol = red
  1135. ESPInfoTabGet = "Off"
  1136. hook.Remove("HUDPaint", "ESPInfo")
  1137. end
  1138. end
  1139.  
  1140. function Finder ()
  1141. if !finding then
  1142. finding = true
  1143. hook.Add("HUDPaint", "findents", function ()
  1144. for k,v in pairs(ents.GetAll()) do
  1145. if table.HasValue(FEntitys, v:GetClass()) then
  1146. local Position = (v:GetPos()+Vector(0,0,5)):ToScreen()
  1147. DrawOutlinedText ( "["..v:GetClass().."]", "ESP", Position.x, Position.y-65, red, 0.5, black )
  1148. end
  1149. end
  1150. end)
  1151. elseif finding then
  1152. finding = false
  1153. hook.Remove("HUDPaint", "findents")
  1154. end
  1155. end
  1156.  
  1157. function AddEnt()
  1158. local trace = util.GetPlayerTrace( ply )
  1159. local traceRes = util.TraceLine( trace )
  1160. if traceRes.HitNonWorld then
  1161. local target = traceRes.Entity
  1162. file.Append("AnXition/ESP/Entitys.txt"," "..target:GetClass())
  1163. ChatPrint("Entity: "..target:GetClass().." has been added to Entity ESP!", red)
  1164. else
  1165. ChatPrint("You need to be looking at a Entity to add it!", red)
  1166. end
  1167. EEntitys = string.Explode(" ",(file.Read("AnXition/ESP/entitys.txt")))
  1168. end
  1169.  
  1170. function GetEntAmount ()
  1171. local trace = util.GetPlayerTrace( ply )
  1172. local traceRes = util.TraceLine( trace )
  1173. if traceRes.HitNonWorld then
  1174. local target = traceRes.Entity
  1175. ChatPrint(ServerEntNumber( target:GetClass() ).." Entitys has been found with class ["..target:GetClass().."]", red)
  1176. else
  1177. ChatPrint("You need to be looking at a Entity to see the amount!", red)
  1178. end
  1179. end
  1180.  
  1181.  
  1182. function AddPrinter()
  1183. local trace = util.GetPlayerTrace( ply )
  1184. local traceRes = util.TraceLine( trace )
  1185. if traceRes.HitNonWorld then
  1186. local target = traceRes.Entity
  1187. file.Append("AnXition/ESP/Printers.txt"," "..target:GetClass())
  1188. ChatPrint("Entity: "..target:GetClass().." has been added to Printer ESP!", red)
  1189. else
  1190. ChatPrint("You need to be looking at a Entity(Printer) to add it!", red)
  1191. end
  1192. Printers = string.Explode(" ",(file.Read("AnXition/ESP/printers.txt")))
  1193. end
  1194.  
  1195. function FindEnt ()
  1196. local trace = util.GetPlayerTrace( ply )
  1197. local traceRes = util.TraceLine( trace )
  1198. if traceRes.HitNonWorld then
  1199. local target = traceRes.Entity
  1200. file.Append("AnXition/ESP/Finder.txt"," "..target:GetClass())
  1201. ChatPrint(ServerEntNumber( target:GetClass() ).." Entitys has been found and added to finder ["..target:GetClass().."]", red)
  1202. else
  1203. ChatPrint("You need to be looking at a Entity to add it!", red)
  1204. end
  1205. FEntitys = string.Explode(" ",(file.Read("AnXition/ESP/Finder.txt")))
  1206. end
  1207.  
  1208. function ClearEntitys()
  1209. file.Write("AnXition/ESP/Entitys.txt", "")
  1210. EEntitys = string.Explode(" ",(file.Read("AnXition/ESP/entitys.txt")))
  1211. ChatPrint("All Entity's have been removed", red)
  1212. end
  1213.  
  1214. function ClearPrinters()
  1215. file.Write("AnXition/ESP/Printers.txt", "")
  1216. Printers = string.Explode(" ",(file.Read("AnXition/ESP/printers.txt")))
  1217. ChatPrint("All Printer's have been removed", red)
  1218. end
  1219.  
  1220. function ClearFinder()
  1221. file.Write("AnXition/ESP/Finder.txt", "")
  1222. FEntitys = string.Explode(" ",(file.Read("AnXition/ESP/Finder.txt")))
  1223. ChatPrint("All Entity's have been removed from Finder", red)
  1224. end
  1225.  
  1226.  
  1227. function SpecialOnly()
  1228. if !specialonly then
  1229. specialonly = true
  1230. specialonlyTabCol = green
  1231. specialonlyTabGet = "On"
  1232. elseif specialonly then
  1233. specialonly = false
  1234. specialonlyTabCol = red
  1235. specialonlyTabGet = "Off"
  1236. end
  1237. end
  1238.  
  1239. function ShowFriends()
  1240. if !showfriends then
  1241. showfriends = true
  1242. showfriendsTabCol = green
  1243. showfriendsTabGet = "On"
  1244. elseif showfriends then
  1245. showfriends = false
  1246. showfriendsTabCol = red
  1247. showfriendsTabGet = "Off"
  1248. end
  1249. end
  1250.  
  1251. function ShowDistance ()
  1252. if !showdistance then
  1253. showdistance = true
  1254. showdistanceTabCol = green
  1255. showdistanceTabGet = "On"
  1256. elseif showdistance then
  1257. showdistance = false
  1258. showdistanceTabCol = red
  1259. showdistanceTabGet = "Off"
  1260. end
  1261. end
  1262.  
  1263. function ShowMoney ()
  1264. if !showmoney then
  1265. showmoney = true
  1266. showmoneyTabCol = green
  1267. showmoneyTabGet = "On"
  1268. elseif showmoney then
  1269. showmoney = false
  1270. showmoneyTabCol = red
  1271. showmoneyTabGet = "Off"
  1272. end
  1273. end
  1274.  
  1275. function ShowGroups ()
  1276. if !showgroups then
  1277. showgroups = true
  1278. showgroupsTabCol = green
  1279. showgroupsTabGet = "On"
  1280. elseif showgroups then
  1281. showgroups = false
  1282. showgroupsTabCol = red
  1283. showgroupsTabGet = "Off"
  1284. end
  1285. end
  1286.  
  1287. function Beams()
  1288. if !beams then
  1289. beams = "admin"
  1290. beamsTabCol = green
  1291. beamsTabGet = "Admin"
  1292. hook.Add("HUDPaint", "beams1", function()
  1293. for k,v in pairs (player.GetAll()) do
  1294. if v != LocalPlayer() and Visible(v) and (v:IsAdmin() or v:IsSuperAdmin()) or table.HasValue(ESPGroups, group) then
  1295. cam.Start3D(EyePos(),EyeAngles())
  1296. render.SetMaterial( Material("cable/redlaser"))
  1297. render.SetColorModulation(0,255,0)
  1298. render.DrawBeam(LocalPlayer():LocalToWorld(v:OBBCenter()+Vector(30,0,0)),v:LocalToWorld(v:OBBCenter()),0.7,0.7,0.7)
  1299. cam.End3D()
  1300. end
  1301. end
  1302. end)
  1303. elseif beams == "admin" then
  1304. beams = "all"
  1305. beamsTabCol = green
  1306. beamsTabGet = "All"
  1307. hook.Add("HUDPaint", "beams2", function()
  1308. for k,v in pairs (player.GetAll()) do
  1309. if v != LocalPlayer() and Visible(v) and !v:IsAdmin() and !v:IsSuperAdmin() then
  1310. cam.Start3D(EyePos(),EyeAngles())
  1311. render.SetMaterial( Material("models/wireframe"))
  1312. render.SetColorModulation(0,255,0)
  1313. render.DrawBeam(LocalPlayer():LocalToWorld(v:OBBCenter()+Vector(30,0,0)),v:LocalToWorld(v:OBBCenter()),0.1,0.1,0.1)
  1314. cam.End3D()
  1315. end
  1316. end
  1317. end)
  1318. elseif beams == "all" then
  1319. beams = false
  1320. beamsTabCol = red
  1321. beamsTabGet = "Off"
  1322. hook.Remove("HUDPaint", "beams1")
  1323. hook.Remove("HUDPaint", "beams2")
  1324. end
  1325. end
  1326.  
  1327.  
  1328. function ESPOn()
  1329. espon = true
  1330. wallhacking = false
  1331. Wallhack()
  1332. ESPInfo = false
  1333. Info()
  1334. ESPEntitys = false
  1335. Entitys()
  1336. showfriends = false
  1337. ShowFriends()
  1338. showdistance = false
  1339. ShowDistance()
  1340. showmoney = false
  1341. ShowMoney()
  1342. showgroups = false
  1343. ShowGroups()
  1344. beams = false
  1345. Beams()
  1346. finding = false
  1347. Finder ()
  1348. end
  1349.  
  1350. function ESPOff()
  1351. espon = false
  1352. wallhacking = "wireframe"
  1353. Wallhack()
  1354. ESPInfo = true
  1355. Info()
  1356. ESPEntitys = true
  1357. Entitys()
  1358. showfriends = true
  1359. ShowFriends()
  1360. showdistance = true
  1361. ShowDistance()
  1362. showmoney = true
  1363. ShowMoney()
  1364. showgroups = true
  1365. ShowGroups()
  1366. specialonly = true
  1367. SpecialOnly()
  1368. beams = "all"
  1369. Beams()
  1370. finding = true
  1371. Finder ()
  1372. end
  1373.  
  1374. /////////////////////////////////////////////////////////////////////////////////////////
  1375.  
  1376. /*****************************
  1377. Name: Log
  1378. Function: Create Log functions
  1379. *****************************/
  1380. function LogID ()
  1381. logged = {}
  1382. if !idlogging then
  1383. idlogging = true
  1384. idloggingTabCol = green
  1385. idloggingTabGet = "On"
  1386. hook.Add("Think", "idlog", function()
  1387. for k,v in pairs(player.GetAll()) do
  1388. if v != ply and (not table.HasValue(logged,v)) then
  1389. table.insert(logged,v)
  1390. file.Append("AnXition/Logger/ID.txt", tostring( os.date() ).." "..v:GetName().." "..v:SteamID().."\n")
  1391. Print (v:GetName().." ID logged")
  1392. end
  1393. end
  1394. end)
  1395. elseif idlogging then
  1396. idlogging = false
  1397. idloggingTabCol = red
  1398. idloggingTabGet = "Off"
  1399. hook.Remove("Think", "idlog")
  1400. end
  1401. end
  1402.  
  1403. function Log ()
  1404. idlogging = false
  1405. LogID ()
  1406. end
  1407.  
  1408.  
  1409. --Spectators--
  1410. function CheckSpectators()
  1411. for k, v in pairs(player.GetAll()) do
  1412. if IsValid(v:GetObserverTarget()) and v:GetObserverTarget():IsPlayer() then
  1413. if(not table.HasValue(Spectators, v)) then
  1414. table.insert(Spectators, v);
  1415. surface.PlaySound("buttons/blip1.wav")
  1416. Notify(v:GetName().." is now spectating: "..v:GetObserverTarget():GetName())
  1417. print ( v:GetName().." is now spectating: "..v:GetObserverTarget():GetName())
  1418. end
  1419. end
  1420. end
  1421.  
  1422. for k, v in pairs(Spectators) do
  1423. if (not IsValid(v) or not IsValid(v:GetObserverTarget()) or not v:GetObserverTarget():IsPlayer() ) then
  1424. table.remove(Spectators, k);
  1425. Notify(v:GetName().." is not spectating anymore!")
  1426. print ( v:GetName().." is not spectating anymore!")
  1427. end
  1428. end
  1429. end
  1430.  
  1431. --Detection--
  1432.  
  1433. function AdminDetect()
  1434.  
  1435. end
  1436.  
  1437. function ModDetect()
  1438.  
  1439. end
  1440.  
  1441. function FriendsDetect()
  1442.  
  1443. end
  1444.  
  1445. function ToggleDetect ()
  1446. if file.Read("AnXition/Detection/toggle.txt")=="true" then
  1447. file.Write("AnXition/Detection/toggle.txt", "false")
  1448. local detection = file.Read("AnXition/Detection/toggle.txt")
  1449. if file.Read("AnXition/Detection/toggle.txt")=="true" then
  1450. detectionTabGet = "Off"
  1451. detectionTabCol = red
  1452. elseif file.Read("AnXition/Detection/toggle.txt")=="false" then
  1453. detectionTabGet = "On"
  1454. detectionTabCol = green
  1455. end
  1456. ChatPrint("Detection Switched On!", red)
  1457. elseif file.Read("AnXition/Detection/toggle.txt")=="false" then
  1458. file.Write("AnXition/Detection/toggle.txt", "true")
  1459. local detection = file.Read("AnXition/Detection/toggle.txt")
  1460. if file.Read("AnXition/Detection/toggle.txt")=="true" then
  1461. detectionTabGet = "Off"
  1462. detectionTabCol = red
  1463. elseif file.Read("AnXition/Detection/toggle.txt")=="false" then
  1464. detectionTabGet = "On"
  1465. detectionTabCol = green
  1466. end
  1467. ChatPrint("Detection Switched Off!", red)
  1468. end
  1469. end
  1470.  
  1471. /////////////////////////////////////////////////////////////////////////////////////////
  1472.  
  1473. /*****************************
  1474. Name: Aimbot
  1475. Function: Create Aimbot functions
  1476. *****************************/
  1477. function Aimbot ()
  1478. if !aimbotting then
  1479. aimbotting = "norm"
  1480. aimbottingTabCol = green
  1481. aimbottingTabGet = " Normal"
  1482. ChatPrint("Manual Aimbot Turned on", red)
  1483. hook.Add("Think", "aimbot", function()
  1484. for k,v in pairs(player.GetAll()) do
  1485. local position = (v:GetPos():ToScreen())
  1486. if v != ply and Visible(v) and v:Alive() and v:GetFriendStatus()!="friend" and input.IsKeyDown(KEY_F) then
  1487. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1488. local headpos,headang = v:GetBonePosition(head)
  1489. ply:SetEyeAngles((headpos+Vector(0,0,1) - ply:GetShootPos()):Angle())
  1490. end
  1491. end
  1492. end)
  1493.  
  1494. hook.Add("HUDPaint", "aimbotangle", function()
  1495. if input.IsKeyDown(KEY_F) then
  1496. DrawOutlinedRect (red, ScrW(), ScrH(), ScrW(), ScrH() )
  1497. end
  1498. for k,v in pairs(player.GetAll()) do
  1499. local position = (v:GetPos():ToScreen())
  1500. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1501. local headpos,headang = v:GetBonePosition(head)
  1502. local hposition = (headpos:ToScreen())
  1503. if v != ply and Visible(v) and v:GetFriendStatus()!="friend" and input.IsKeyDown(KEY_F) and v:Alive() then
  1504. DrawOutlinedRect (green, hposition.x-5, hposition.y-5, 10, 10 )
  1505. end
  1506. end
  1507. end)
  1508.  
  1509. elseif aimbotting=="norm" then
  1510. aimbotting = "angl"
  1511. aimbottingTabCol = green
  1512. aimbottingTabGet = "Angle"
  1513. ChatPrint("Angle Aimbot Turned on", red)
  1514. hook.Remove("Think", "aimbot")
  1515. hook.Add("HUDPaint", "aimbotangle", function()
  1516. if input.IsKeyDown(KEY_F) then
  1517. DrawOutlinedRect (red, ScrW()/4, ScrH()/4, ScrW()/2, ScrH()/2 )
  1518. end
  1519. for k,v in pairs(player.GetAll()) do
  1520. local position = (v:GetPos():ToScreen())
  1521. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1522. local headpos,headang = v:GetBonePosition(head)
  1523. local hposition = (headpos:ToScreen())
  1524. if v != ply and Visible(v) and v:GetFriendStatus()!="friend" and input.IsKeyDown(KEY_F) and v:Alive() and hposition.x<ScrW()/1.3333333333 and hposition.x>ScrW()/4 and hposition.y<ScrH()/1.3333333333 and hposition.y>ScrH()/4 then
  1525. DrawOutlinedRect (green, hposition.x-5, hposition.y-5, 10, 10 )
  1526. end
  1527. end
  1528. end)
  1529. hook.Add("Think", "aimbot", function()
  1530. for k,v in pairs(player.GetAll()) do
  1531. local position = (v:GetPos():ToScreen())
  1532. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1533. local headpos,headang = v:GetBonePosition(head)
  1534. local hposition = (headpos:ToScreen())
  1535. if v != ply and Visible(v) and v:GetFriendStatus()!="friend" and input.IsKeyDown(KEY_F) and v:Alive() and hposition.x<ScrW()/1.3333333333 and hposition.x>ScrW()/4 and hposition.y<ScrH()/1.3333333333 and hposition.y>ScrH()/4 then
  1536. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1537. local headpos,headang = v:GetBonePosition(head)
  1538. ply:SetEyeAngles((headpos+Vector(0,0,1) - ply:GetShootPos()):Angle())
  1539. end
  1540. end
  1541. end)
  1542.  
  1543. elseif aimbotting then
  1544. aimbotting = false
  1545. aimbottingTabCol = red
  1546. aimbottingTabGet = "Off"
  1547. hook.Remove("HUDPaint", "aimbotangle")
  1548. hook.Remove("Think", "aimbot")
  1549. end
  1550. end
  1551.  
  1552. function AngleAimbot ()
  1553. if !angleaimbot then
  1554. angleaimbot = true
  1555. aimbotting = "norm"
  1556. Aimbot ()
  1557. elseif angleaimbot then
  1558. angleaimbot = false
  1559. aimbotting = "angl"
  1560. Aimbot ()
  1561. end
  1562. end
  1563.  
  1564. function saimbot ()
  1565. hook.Add("Think", "saimbot", function ()
  1566. for k,v in pairs(player.GetAll()) do
  1567. local position = (v:GetPos():ToScreen())
  1568. if v:SteamID()==asteamid and Visible(v) and v:Alive() and input.IsKeyDown(KEY_F) then
  1569. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1570. local headpos,headang = v:GetBonePosition(head)
  1571. ply:SetEyeAngles((headpos+Vector(0,0,1) - ply:GetShootPos()):Angle())
  1572. end
  1573. end
  1574. end)
  1575. end
  1576.  
  1577. function SingleAimbot ()
  1578. if !singleaimbot and !aimbotting then
  1579. singleaimbot = true
  1580. singleaimbotTabCol = green
  1581. singleaimbotTabGet = "On"
  1582. ChatPrint("Single Target Aimbot Turned On, Use with F. Set target with Console command: AnXition_SetATarget", red)
  1583. saimbot ()
  1584. elseif !singleaimbot and aimbotting then
  1585. aimbotting = "angl"
  1586. Aimbot ()
  1587. singleaimbot = true
  1588. singleaimbotTabCol = green
  1589. singleaimbotTabGet = "On"
  1590. ChatPrint("Single Target Aimbot Turned On, Use with F. Set target with AnXition_SetATarget", red)
  1591. saimbot ()
  1592. elseif singleaimbot then
  1593. singleaimbot = false
  1594. singleaimbotTabCol = red
  1595. singleaimbotTabGet = "Off"
  1596. hook.Remove("Think", "saimbot")
  1597. end
  1598.  
  1599. end
  1600.  
  1601. function gaimbot ()
  1602. hook.Add("Think", "gaimbot", function()
  1603. for k,v in pairs(player.GetAll()) do
  1604. local position = (v:GetPos():ToScreen())
  1605. if table.HasValue(gsteamid,v:SteamID()) and Visible(v) and v:Alive() and input.IsKeyDown(KEY_F) then
  1606. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1607. local headpos,headang = v:GetBonePosition(head)
  1608. ply:SetEyeAngles((headpos+Vector(0,0,1) - ply:GetShootPos()):Angle())
  1609. end
  1610. end
  1611. end)
  1612. end
  1613.  
  1614. function GroupAimbot ()
  1615. if !groupaimbot and !aimbotting then
  1616. groupaimbot = true
  1617. groupaimbotTabGet = "On"
  1618. groupaimbotTabCol = green
  1619.  
  1620. elseif !groupaimbot and aimbotting then
  1621. aimbotting = "angl"
  1622. Aimbot()
  1623. groupaimbot = true
  1624. groupaimbotTabGet = "On"
  1625. groupaimbotTabCol = green
  1626.  
  1627. elseif groupaimbot then
  1628. groupaimbot = false
  1629. groupaimbotTabGet = "Off"
  1630. groupaimbotTabCol = red
  1631. end
  1632.  
  1633. end
  1634.  
  1635. function SetbyView ()
  1636. trace = util.GetPlayerTrace( ply )
  1637. traceRes = util.TraceLine( trace )
  1638. if traceRes.HitNonWorld then
  1639. target = traceRes.Entity
  1640. if target:IsPlayer() and target != ply then
  1641. asteamid = target:SteamID()
  1642. ChatPrint("Aimbot Target set to: "..target:GetName(), red)
  1643. end
  1644. else
  1645. ChatPrint("Look at a player to target him!", red)
  1646. end
  1647.  
  1648. end
  1649.  
  1650.  
  1651. function Norecoil()
  1652. if !norecoil then
  1653. norecoil = true
  1654. norecoilTabGet = "On"
  1655. norecoilTabCol = green
  1656. hook.Add("Think", "norecoil", function ()
  1657. if ply:GetActiveWeapon().Primary then
  1658. ply:GetActiveWeapon().Primary.Recoil = 0
  1659. end
  1660. end)
  1661. elseif norecoil then
  1662. norecoil = false
  1663. norecoilTabGet = "Off"
  1664. norecoilTabCol = red
  1665. ply:GetActiveWeapon().Primary.Recoil = 10
  1666. hook.Remove("Think", "norecoil")
  1667. end
  1668. end
  1669.  
  1670. function Nospread()
  1671. if !nospread then
  1672. nospread = true
  1673. nospreadTabGet = "On"
  1674. nospreadTabCol = green
  1675. hook.Add("Think", "nospread", function ()
  1676. if ply:GetActiveWeapon().Primary then
  1677. ply:GetActiveWeapon().Primary.Cone = 0
  1678. ply:GetActiveWeapon().Primary.Spread = 0
  1679. end
  1680. end)
  1681. elseif nospread then
  1682. nospread = false
  1683. nospreadTabGet = "Off"
  1684. nospreadTabCol = red
  1685. hook.Remove("Think", "nospread")
  1686. ply:GetActiveWeapon().Primary.Cone = 10
  1687. ply:GetActiveWeapon().Primary.Spread = 10
  1688. end
  1689. end
  1690.  
  1691.  
  1692.  
  1693.  
  1694. /////////////////////////////////////////////////////////////////////////////////////////
  1695.  
  1696. /*****************************
  1697. Name: Misc
  1698. Function: Create Misc Functions
  1699. *****************************/
  1700. function FlashlightSpam ()
  1701. if !flashspamming then
  1702. flashspamming = true
  1703. flashspammingTabCol = green
  1704. flashspammingTabGet = "On"
  1705. hook.Add("Think", "flashspam", function()
  1706. if input.IsKeyDown(KEY_F) then
  1707. ply:ConCommand("impulse 100")
  1708. end
  1709. end)
  1710.  
  1711. elseif flashspamming then
  1712. flashspamming = false
  1713. flashspammingTabCol = red
  1714. flashspammingTabGet = "Off"
  1715. hook.Remove("Think", "flashspam")
  1716. end
  1717. end
  1718.  
  1719. function Bunnyhop ()
  1720. if !bunnyhopping then
  1721. bunnyhopping = true
  1722. bunnyhopTabCol = green
  1723. bunnyhopTabGet = "On"
  1724. hook.Add("Think", "bhop", function()
  1725. if input.IsKeyDown(KEY_SPACE) then
  1726. if ply:GetVelocity():Length()>5 then
  1727. if !jumping then
  1728. ply:ConCommand("+jump")
  1729. jumping = true
  1730. elseif jumping then
  1731. ply:ConCommand("-jump")
  1732. jumping = false
  1733. end
  1734.  
  1735. end
  1736. end
  1737. end)
  1738.  
  1739.  
  1740. elseif bunnyhopping then
  1741. bunnyhopping = false
  1742. bunnyhopTabCol = red
  1743. bunnyhopTabGet = "Off"
  1744. hook.Remove("Think", "bhop")
  1745. ply:ConCommand("-jump")
  1746. end
  1747. end
  1748.  
  1749. function pick(Table)
  1750. return Table[math.random(0,table.getn(Table))]
  1751. end
  1752.  
  1753. function NameChanger ()
  1754. playernames={}
  1755. a = 0
  1756. for k,v in pairs(player.GetAll()) do
  1757. if v:IsPlayer() and v!=LocalPlayer() then
  1758. playernames[a]=v:Nick()
  1759. a=a+1
  1760. end
  1761. end
  1762.  
  1763. if !namechanging then
  1764. namechanging = true
  1765. namechangingTabCol = green
  1766. namechangingTabGet = "On"
  1767. timer.Create("namechange", 6, 0, function() ply:ConCommand("say /rpname "..pick(playernames).." ") end)
  1768. elseif namechanging then
  1769. namechanging = false
  1770. namechangingTabCol = red
  1771. namechangingTabGet = "Off"
  1772. timer.Destroy("namechange")
  1773. end
  1774. end
  1775.  
  1776. function Follow ()
  1777. if !following then
  1778. following = true
  1779. followingTabCol = green
  1780. followingTabGet = "On"
  1781. trace = util.GetPlayerTrace( ply )
  1782. traceRes = util.TraceLine( trace )
  1783. if traceRes.HitNonWorld then
  1784. target = traceRes.Entity
  1785. if target:IsPlayer() then
  1786. ID = target:SteamID()
  1787. hook.Add("Think", "follow", function()
  1788. for k,v in pairs(player.GetAll()) do
  1789. if v:SteamID()==ID then
  1790. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1791. local headpos,headang = v:GetBonePosition(head)
  1792. LocalPlayer():SetEyeAngles((headpos - LocalPlayer():GetShootPos()):Angle())
  1793. if !saidname then
  1794. ChatPrint("Following player: "..v:GetName(), red)
  1795. ply:ConCommand("say Target: '"..v:GetName().."' set, Following target!")
  1796. saidname = true
  1797. end
  1798. end
  1799. end
  1800. end)
  1801. ply:ConCommand("+forward")
  1802. ply:ConCommand("+speed")
  1803. end
  1804. else
  1805. ChatPrint("Look at a player to follow!", red)
  1806. following = false
  1807. followingTabCol = red
  1808. followingTabGet = "Off"
  1809. end
  1810. elseif following then
  1811. following = false
  1812. followingTabCol = red
  1813. followingTabGet = "Off"
  1814. hook.Remove("Think", "follow")
  1815. ply:ConCommand("-forward")
  1816. ply:ConCommand("-speed")
  1817. ply:ConCommand("say Stopped Following Target!")
  1818. saidname = false
  1819. end
  1820. end
  1821.  
  1822. function Derp()
  1823. local currentangle = ply:EyeAngles()
  1824. if !derping then
  1825. derping = true
  1826. derpingTabCol = green
  1827. derpingTabGet = "On"
  1828. hook.Add("Think", "derp", function()
  1829. Rnumber = math.random(0,1000)
  1830. ply:SetEyeAngles(Angle(currentangle.pitch + Rnumber ,currentangle.yaw + Rnumber , currentangle.roll + Rnumber ) )
  1831. ply:ConCommand("impulse 100")
  1832. end)
  1833. hook.Add("CalcView", "Derpview", Derpview)
  1834. hook.Add("ShouldDrawLocalPlayer", "derpdraw", function(ply) return true end)
  1835. elseif derping then
  1836. derping = false
  1837. derpingTabCol = red
  1838. derpingTabGet = "Off"
  1839. ply:SetEyeAngles(Angle(currentangle.pitch, currentangle.yaw, 0))
  1840. hook.Remove("Think", "derp")
  1841. hook.Remove("CalcView", "Derpview")
  1842. hook.Remove("ShouldDrawLocalPlayer", "derpdraw")
  1843. end
  1844. end
  1845.  
  1846. function Animation()
  1847. if !animating then
  1848. animating = "flex"
  1849. animatingTabCol = green
  1850. animatingTabGet = "flex"
  1851. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1616") end)
  1852. elseif animating=="flex" then
  1853. animating = "muscle"
  1854. animatingTabCol = green
  1855. animatingTabGet = "muscle"
  1856. timer.Destroy("animating")
  1857. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1617") end)
  1858. elseif animating=="muscle" then
  1859. animating = false
  1860. animatingTabCol = red
  1861. animatingTabGet = "Off"
  1862. timer.Destroy("animating")
  1863. end
  1864. end
  1865.  
  1866. function Spam ()
  1867. if !spamming and !cspamming then
  1868. spamming = true
  1869. spammingTabGet = "On"
  1870. spammingTabCol = green
  1871. hook.Add("Think", "spam", function()
  1872. ply:ConCommand("say "..words[math.random(1,16)])
  1873. end)
  1874. elseif !spamming and cspamming then
  1875. cspamming = false
  1876. spamming = false
  1877. spammingTabGet = "Off"
  1878. spammingTabCol = red
  1879. hook.Remove("Think", "spam")
  1880. hook.Remove("Think", "cspam")
  1881. elseif spamming then
  1882. cspamming = false
  1883. spamming = false
  1884. spammingTabGet = "Off"
  1885. spammingTabCol = red
  1886. hook.Remove("Think", "spam")
  1887. hook.Remove("Think", "cspam")
  1888. end
  1889. end
  1890.  
  1891.  
  1892.  
  1893. function Fullbright ()
  1894. if !bright then
  1895. bright = true
  1896. brightTabCol = green
  1897. brightTabGet = "On"
  1898. hook.Add("Think", "EFullbright", function()
  1899. render.SuppressEngineLighting( true )
  1900. end)
  1901. elseif bright then
  1902. bright = false
  1903. brightTabCol = red
  1904. brightTabGet = "Off"
  1905. hook.Remove("Think", "EFullbright")
  1906. end
  1907. end
  1908.  
  1909. function FindDisplayText(ent)
  1910. if ent.GetDisplayText then
  1911. return ent:GetDisplayText()
  1912. else
  1913. return ent.Entity:GetNetworkedInt("keypad_num")
  1914. end
  1915. end
  1916.  
  1917. function FindStatus(ent)
  1918. if ent.GetStatus then
  1919. return ent:GetStatus()
  1920. elseif ent.Entity:GetNetworkedBool("keypad_access") and ent.Entity:GetNetworkedBool("keypad_showaccess") then
  1921. return 1
  1922. elseif not ent.Entity:GetNetworkedBool("keypad_access") and ent.Entity:GetNetworkedBool("keypad_showaccess") then
  1923. return 2
  1924. else
  1925. return 0
  1926. end
  1927. end
  1928.  
  1929. function keypadlog ()
  1930. if !keypadlogging then
  1931. keypadlogging = true
  1932. keypadloggingTabGet = "On"
  1933. keypadloggingTabCol = green
  1934. hook.Add("Think", "KeypadLog", function()
  1935. for k,v in pairs(player.GetAll()) do
  1936. local kp = v:GetEyeTrace().Entity
  1937. 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
  1938. kp.tempCode = kp.tempCode or ""
  1939. kp.tempText = kp.tempText or ""
  1940. kp.tempStatus = kp.tempStatus or 0
  1941.  
  1942. if (FindDisplayText(kp) != kp.tempText) or (FindStatus(kp) != kp.tempStatus) then
  1943. kp.tempText = FindDisplayText(kp)
  1944. kp.tempStatus = FindStatus(kp)
  1945.  
  1946. local tr = util.TraceLine({
  1947. start = v:EyePos(),
  1948. endpos = v:GetAimVector() * 32 + v:EyePos(),
  1949. filter = v
  1950. })
  1951.  
  1952. local pos = kp:WorldToLocal(tr.HitPos)
  1953.  
  1954. for i,p in pairs(KeyPos) do
  1955. local x = (pos.y - p[5]) / (p[5] + p[6])
  1956. local y = 1 - (pos.z + p[7]) / (p[7] + p[8])
  1957. if (x >= 0 and y >= 0 and x <= 1 and y <= 1) then
  1958. if i == 11 then
  1959. if kp.tempStatus == 1 then
  1960. kp.code = kp.tempCode
  1961. kp.tempCode = ""
  1962. elseif kp.tempStatus == 2 then
  1963. kp.tempCode = ""
  1964. end
  1965. elseif i == 10 then
  1966. kp.tempCode = ""
  1967. elseif i > 0 then
  1968. kp.tempCode = kp.tempCode..i
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end
  1974. end
  1975. end)
  1976. hook.Add( "HUDPaint", "KeypadShow", function()
  1977. for k,v in pairs(ents.GetAll()) do
  1978. if IsValid(v) then
  1979. if string.find(v:GetClass(), "keypad") and not(string.find(v:GetClass(), "cracker") or string.find(v:GetClass(), "checker")) then
  1980. local pos = v:GetPos():ToScreen()
  1981. if IsValid(v) and v.code and ply:GetPos():Distance(v:GetPos())<500 then
  1982. local ctext = v.code or "Unkown"
  1983. draw.WordBox( 8, pos.x-25, pos.y-25, ctext, "Get", Color(50,50,75,100), Color(255,0,0,255) )
  1984. elseif IsValid(v) and v.code then
  1985. draw.RoundedBox( 5, pos.x-5, pos.y-5, 10, 10, Color( 0, 255, 0, 150 ) )
  1986. else
  1987. draw.RoundedBox( 5, pos.x-5, pos.y-5, 10, 10, Color( 255, 0, 0, 150 ) )
  1988. end
  1989. end
  1990. end
  1991. end
  1992. end)
  1993. elseif keypadlogging then
  1994. keypadlogging = false
  1995. keypadloggingTabGet = "Off"
  1996. keypadloggingTabCol = red
  1997. hook.Remove("HUDPaint", "KeypadShow")
  1998. hook.Remove("Think", "KeypadLog")
  1999. end
  2000.  
  2001. end
  2002.  
  2003. function RPGodmode()
  2004. if !godmode then
  2005. godmode = true
  2006. godmodeTabGet = "On"
  2007. godmodeTabCol = green
  2008. hook.Add("Think", "godmode", function()
  2009. if ply:Health()<100 then
  2010. ply:ConCommand("say /buyhealth")
  2011. end
  2012. end)
  2013. elseif godmode then
  2014. godmode = false
  2015. godmodeTabGet = "Off"
  2016. godmodeTabCol = red
  2017. hook.Remove("Think", "godmode")
  2018. end
  2019. end
  2020.  
  2021.  
  2022. function Spectate ()
  2023. if !spectating then
  2024. spectating = true
  2025. spectatingTabGet = "On"
  2026. spectatingTabCol = green
  2027.  
  2028. elseif spectating then
  2029. spectating = false
  2030. spectatingTabGet = "Off"
  2031. spectatingTabCol = red
  2032. end
  2033. end
  2034.  
  2035.  
  2036. function Xray ()
  2037. if !xray then
  2038. xray = true
  2039. xrayTabGet = "On"
  2040. xrayTabCol = green
  2041. hook.Add("HUDPaint", "xxrayz", function()
  2042. for k,v in pairs(ents.GetAll()) do
  2043. local position = (v:GetPos()+Vector(0,0,80)):ToScreen()
  2044. if v:GetClass()== "prop_physics" and position.x<ScrW() and position.x>0 and position.y<ScrH() and position.y>0 then
  2045. cam.Start3D(EyePos(),EyeAngles())
  2046. render.SuppressEngineLighting( true )
  2047. render.MaterialOverride( mat )
  2048. render.SetColorModulation( 255,0,0 )
  2049. render.SetBlend(0.3)
  2050. v:DrawModel()
  2051. render.SetBlend(1)
  2052. render.SuppressEngineLighting( false )
  2053. render.MaterialOverride( )
  2054. cam.End3D()
  2055. elseif v:GetClass()==("prop_door_rotating") or v:GetClass()==("func_door_rotating") then
  2056. v:SetMaterial("models/wireframe")
  2057. v:SetColor(trans)
  2058. end
  2059. end
  2060. end)
  2061. elseif xray then
  2062. xray = false
  2063. xrayTabGet = "Off"
  2064. xrayTabCol = red
  2065. for k,v in pairs(ents.GetAll()) do
  2066. if v:GetClass()==("prop_door_rotating") or v:GetClass()==("func_door_rotating") then
  2067. v:SetMaterial("")
  2068. v:SetColor(white)
  2069. end
  2070. end
  2071. hook.Remove("HUDPaint", "xxrayz")
  2072. end
  2073. end
  2074.  
  2075. function MouseSpam ()
  2076. if !mousespamming then
  2077. mousespamming = "1"
  2078. mousespammingTabCol = green
  2079. mousespammingTabGet = " Left"
  2080. hook.Add("Think", "mousespam", function ()
  2081. if input.IsKeyDown(KEY_F) then
  2082. if !clicking then
  2083. clicking = true
  2084. ply:ConCommand("+attack")
  2085. elseif clicking then
  2086. clicking = false
  2087. ply:ConCommand("-attack")
  2088. end
  2089. elseif !input.IsKeyDown(KEY_F) and clicking then
  2090. clicking = false
  2091. ply:ConCommand("-attack")
  2092. end
  2093. end)
  2094. elseif mousespamming == "1" then
  2095. mousespamming = "2"
  2096. mousespammingTabCol = green
  2097. mousespammingTabGet = " Right"
  2098. hook.Remove("Think", "mousespam")
  2099. hook.Add("Think", "mousespam", function ()
  2100. if input.IsKeyDown(KEY_F) then
  2101. if !clicking then
  2102. clicking = true
  2103. ply:ConCommand("+attack2")
  2104. elseif clicking then
  2105. clicking = false
  2106. ply:ConCommand("-attack2")
  2107. end
  2108. elseif !input.IsKeyDown(KEY_F) and clicking then
  2109. clicking = false
  2110. ply:ConCommand("-attack2")
  2111. leftclick ()
  2112. end
  2113. end)
  2114.  
  2115. elseif mousespamming == "2" then
  2116. mousespamming = false
  2117. mousespammingTabCol = red
  2118. mousespammingTabGet = "Off"
  2119. hook.Remove("Think", "mousespam")
  2120. end
  2121. end
  2122.  
  2123. function leftclick ()
  2124. if !lclicking then
  2125. lclicking = true
  2126. timer.Create("shitfuck", 0.1, 1, function ()
  2127. ply:ConCommand("+attack")
  2128. timer.Create("shitfuck2", 0.1, 1, function ()
  2129. ply:ConCommand("-attack")
  2130. end)
  2131. end)
  2132. elseif lclicking then
  2133. lclicking = false
  2134. timer.Create("shitfuck3", 0.1, 1, function ()
  2135. ply:ConCommand("-attack")
  2136. end)
  2137. end
  2138. end
  2139.  
  2140. function Drawlogo ()
  2141. drawingTabGet = " Drawing"
  2142. drawingTabCol = green
  2143. local currentangle = ply:EyeAngles()
  2144. ply:SetEyeAngles(Angle(currentangle.pitch - 5 ,currentangle.yaw + 15 , 0 ) )
  2145. ply:ConCommand("+attack")
  2146. dotimer(function ()
  2147. local currentangle = ply:EyeAngles()
  2148. ply:SetEyeAngles(Angle(currentangle.pitch + 6.25 ,currentangle.yaw + 2.5 , 0 ) )
  2149. ply:ConCommand("-attack")
  2150. dotimer(function ()
  2151. ply:ConCommand("+attack")
  2152. dotimer(function ()
  2153. ply:ConCommand("-attack")
  2154. dotimer(function ()
  2155. local currentangle = ply:EyeAngles()
  2156. ply:SetEyeAngles(Angle(currentangle.pitch - 6.25 ,currentangle.yaw - 2.5 , 0 ) )
  2157. dotimer(function ()
  2158. ply:ConCommand("+attack")
  2159. dotimer(function ()
  2160. local currentangle = ply:EyeAngles()
  2161. ply:SetEyeAngles(Angle(currentangle.pitch + 6.25 ,currentangle.yaw - 2.5 , 0 ) )
  2162. ply:ConCommand("-attack")
  2163. dotimer(function ()
  2164. ply:ConCommand("+attack")
  2165. dotimer(function ()
  2166. ply:ConCommand("-attack")
  2167. dotimer(function ()
  2168. local currentangle = ply:EyeAngles()
  2169. ply:SetEyeAngles(Angle(currentangle.pitch - 3.125 ,currentangle.yaw + 1.25 , 0 ) )
  2170. dotimer(function ()
  2171. ply:ConCommand("+attack")
  2172. dotimer(function ()
  2173. ply:ConCommand("-attack")
  2174. local currentangle = ply:EyeAngles()
  2175. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw + 2.5 , 0 ) )
  2176. dotimer(function ()
  2177. ply:ConCommand("+attack")
  2178. dotimer(function ()
  2179. ply:ConCommand("-attack")
  2180. dotimer(function ()
  2181. local currentangle = ply:EyeAngles()
  2182. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw - 5 , 0 ) )
  2183. dotimer(function ()
  2184. ply:ConCommand("+attack")
  2185. dotimer(function ()
  2186. ply:ConCommand("-attack")
  2187. local currentangle = ply:EyeAngles()
  2188. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 0 , 0 ) )
  2189. dotimer(function ()
  2190. ply:ConCommand("+attack")
  2191. dotimer(function ()
  2192. ply:ConCommand("-attack")
  2193. local currentangle = ply:EyeAngles()
  2194. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 0 , 0 ) )
  2195. dotimer(function ()
  2196. ply:ConCommand("+attack")
  2197. dotimer(function ()
  2198. ply:ConCommand("-attack")
  2199. local currentangle = ply:EyeAngles()
  2200. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 2 , 0 ) )
  2201. dotimer(function ()
  2202. ply:ConCommand("+attack")
  2203. dotimer(function ()
  2204. ply:ConCommand("-attack")
  2205. dotimer(function ()
  2206. ply:ConCommand("+attack")
  2207. dotimer(function ()
  2208. ply:ConCommand("-attack")
  2209. local currentangle = ply:EyeAngles()
  2210. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 0 , 0 ) )
  2211. dotimer(function ()
  2212. ply:ConCommand("+attack")
  2213. dotimer(function ()
  2214. ply:ConCommand("-attack")
  2215. local currentangle = ply:EyeAngles()
  2216. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 2 , 0 ) )
  2217. dotimer(function ()
  2218. ply:ConCommand("+attack")
  2219. dotimer(function ()
  2220. ply:ConCommand("-attack")
  2221. local currentangle = ply:EyeAngles()
  2222. ply:SetEyeAngles(Angle(currentangle.pitch - 5 ,currentangle.yaw - 3 , 0 ) )
  2223. dotimer(function()
  2224. ply:ConCommand("+attack")
  2225. dotimer(function()
  2226. ply:ConCommand("-attack")
  2227. local currentangle = ply:EyeAngles()
  2228. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw + 3 , 0 ) )
  2229. dotimer(function()
  2230. ply:ConCommand("+attack")
  2231. dotimer(function()
  2232. ply:ConCommand("-attack")
  2233. local currentangle = ply:EyeAngles()
  2234. ply:SetEyeAngles(Angle(currentangle.pitch + 5 ,currentangle.yaw - 3 , 0 ) )
  2235. dotimer(function()
  2236. ply:ConCommand("+attack")
  2237. dotimer(function()
  2238. ply:ConCommand("-attack")
  2239. local currentangle = ply:EyeAngles()
  2240. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw - 2 , 0 ) )
  2241. dotimer(function()
  2242. ply:ConCommand("+attack")
  2243. dotimer(function()
  2244. ply:ConCommand("-attack")
  2245. local currentangle = ply:EyeAngles()
  2246. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 0 , 0 ) )
  2247. dotimer(function()
  2248. ply:ConCommand("+attack")
  2249. dotimer(function()
  2250. ply:ConCommand("-attack")
  2251. local currentangle = ply:EyeAngles()
  2252. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw - 2 , 0 ) )
  2253. dotimer(function()
  2254. ply:ConCommand("+attack")
  2255. dotimer(function()
  2256. ply:ConCommand("-attack")
  2257. local currentangle = ply:EyeAngles()
  2258. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw - 3 , 0 ) )
  2259. dotimer(function()
  2260. ply:ConCommand("+attack")
  2261. dotimer(function()
  2262. ply:ConCommand("-attack")
  2263. local currentangle = ply:EyeAngles()
  2264. ply:SetEyeAngles(Angle(currentangle.pitch - 0 ,currentangle.yaw + 1.5 , 0 ) )
  2265. dotimer(function()
  2266. ply:ConCommand("+attack")
  2267. dotimer(function()
  2268. ply:ConCommand("-attack")
  2269. local currentangle = ply:EyeAngles()
  2270. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 0 , 0 ) )
  2271. dotimer(function()
  2272. ply:ConCommand("+attack")
  2273. dotimer(function()
  2274. ply:ConCommand("-attack")
  2275. local currentangle = ply:EyeAngles()
  2276. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 3 , 0 ) )
  2277. dotimer(function()
  2278. ply:ConCommand("+attack")
  2279. dotimer(function()
  2280. ply:ConCommand("-attack")
  2281. local currentangle = ply:EyeAngles()
  2282. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 0 , 0 ) )
  2283. dotimer(function()
  2284. ply:ConCommand("+attack")
  2285. dotimer(function()
  2286. ply:ConCommand("-attack")
  2287. local currentangle = ply:EyeAngles()
  2288. ply:SetEyeAngles(Angle(currentangle.pitch + 0 ,currentangle.yaw - 3 , 0 ) )
  2289. dotimer(function()
  2290. ply:ConCommand("+attack")
  2291. dotimer(function()
  2292. ply:ConCommand("-attack")
  2293. local currentangle = ply:EyeAngles()
  2294. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 0 , 0 ) )
  2295. dotimer(function()
  2296. ply:ConCommand("+attack")
  2297. dotimer(function()
  2298. ply:ConCommand("-attack")
  2299. dotimer(function()
  2300. ply:ConCommand("+attack")
  2301. dotimer(function()
  2302. ply:ConCommand("-attack")
  2303. local currentangle = ply:EyeAngles()
  2304. ply:SetEyeAngles(Angle(currentangle.pitch + 0 ,currentangle.yaw - 3 , 0 ) )
  2305. dotimer(function()
  2306. ply:ConCommand("+attack")
  2307. dotimer(function()
  2308. ply:ConCommand("-attack")
  2309. dotimer(function()
  2310. ply:ConCommand("+attack")
  2311. dotimer(function()
  2312. ply:ConCommand("-attack")
  2313. local currentangle = ply:EyeAngles()
  2314. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 0 , 0 ) )
  2315. dotimer(function()
  2316. ply:ConCommand("+attack")
  2317. dotimer(function()
  2318. ply:ConCommand("-attack")
  2319. dotimer(function()
  2320. ply:ConCommand("+attack")
  2321. dotimer(function()
  2322. ply:ConCommand("-attack")
  2323. local currentangle = ply:EyeAngles()
  2324. ply:SetEyeAngles(Angle(currentangle.pitch + 0 ,currentangle.yaw + 3 , 0 ) )
  2325. dotimer(function()
  2326. ply:ConCommand("+attack")
  2327. dotimer(function()
  2328. ply:ConCommand("-attack")
  2329. local currentangle = ply:EyeAngles()
  2330. ply:SetEyeAngles(Angle(currentangle.pitch + 0 ,currentangle.yaw - 5 , 0 ) )
  2331. dotimer(function()
  2332. ply:ConCommand("+attack")
  2333. dotimer(function()
  2334. ply:ConCommand("-attack")
  2335. local currentangle = ply:EyeAngles()
  2336. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 0 , 0 ) )
  2337. dotimer(function()
  2338. ply:ConCommand("+attack")
  2339. dotimer(function()
  2340. ply:ConCommand("-attack")
  2341. dotimer(function()
  2342. ply:ConCommand("+attack")
  2343. dotimer(function()
  2344. ply:ConCommand("-attack")
  2345. local currentangle = ply:EyeAngles()
  2346. ply:SetEyeAngles(Angle(currentangle.pitch + 3 ,currentangle.yaw - 3 , 0 ) )
  2347. dotimer(function()
  2348. ply:ConCommand("+attack")
  2349. dotimer(function()
  2350. ply:ConCommand("-attack")
  2351. dotimer(function()
  2352. ply:ConCommand("+attack")
  2353. dotimer(function()
  2354. ply:ConCommand("-attack")
  2355. local currentangle = ply:EyeAngles()
  2356. ply:SetEyeAngles(Angle(currentangle.pitch - 3 ,currentangle.yaw - 0 , 0 ) )
  2357. dotimer(function()
  2358. ply:ConCommand("+attack")
  2359. dotimer(function()
  2360. ply:ConCommand("-attack")
  2361. drawingTabGet = "Off"
  2362. drawingTabCol = red
  2363. end)
  2364. end)
  2365. end)
  2366. end)
  2367. end)
  2368. end)
  2369. end)
  2370. end)
  2371. end)
  2372. end)
  2373. end)
  2374. end)
  2375. end)
  2376. end)
  2377. end)
  2378. end)
  2379. end)
  2380. end)
  2381. end)
  2382. end)
  2383. end)
  2384. end)
  2385. end)
  2386. end)
  2387. end)
  2388. end)
  2389. end)
  2390. end)
  2391. end)
  2392. end)
  2393. end)
  2394. end)
  2395. end)
  2396. end)
  2397. end)
  2398. end)
  2399. end)
  2400. end)
  2401. end)
  2402. end)
  2403. end)
  2404. end)
  2405. end)
  2406. end)
  2407. end)
  2408. end)
  2409. end)
  2410. end)
  2411. end)
  2412. end)
  2413. end)
  2414. end)
  2415. end)
  2416. end)
  2417. end)
  2418. end)
  2419. end)
  2420. end)
  2421. end)
  2422. end)
  2423. end)
  2424. end)
  2425. end)
  2426. end)
  2427. end)
  2428. end)
  2429. end)
  2430. end)
  2431. end)
  2432. end)
  2433. end)
  2434. end)
  2435. end)
  2436. end)
  2437. end)
  2438. end)
  2439. end)
  2440. end)
  2441. end
  2442.  
  2443. function runmisc()
  2444. keypadlogging = false
  2445. keypadlog()
  2446.  
  2447. end
  2448.  
  2449.  
  2450. /////////////////////////////////////////////////////////////////////////////////////////
  2451.  
  2452. /*****************************
  2453. Name: View functions
  2454. Function: Create view functions
  2455. *****************************/
  2456.  
  2457. function Derpview(ply, pos, angles, fov)
  2458. local view = {}
  2459. view.origin = pos-(Vector(75,0,0))
  2460. view.angles = Angle(0,0,0)
  2461. view.fov = fov
  2462.  
  2463. return view
  2464. end
  2465.  
  2466.  
  2467. /////////////////////////////////////////////////////////////////////////////////////////
  2468.  
  2469. /*****************************
  2470. Name: Console Functions
  2471. Function: Create Console Functions
  2472. *****************************/
  2473. function ToggleVoice ()
  2474. if !voicechatting then
  2475. voicechatting = true
  2476. ply:ConCommand("+voicerecord")
  2477.  
  2478.  
  2479. elseif voicechatting then
  2480. voicechatting = false
  2481. ply:ConCommand("-voicerecord")
  2482.  
  2483. end
  2484. end
  2485.  
  2486. function ToggleVolumeUp()
  2487. if volume <1 then
  2488. volume = volume + 0.1
  2489. ply:ConCommand("volume "..volume)
  2490. if volume<1 and volume>0 then
  2491. ChatPrint(volume, red)
  2492. end
  2493. else
  2494. volume = 1
  2495. ply:ConCommand("volume "..volume)
  2496. if volume<1 and volume>0 then
  2497. ChatPrint(volume, red)
  2498. end
  2499. end
  2500. end
  2501.  
  2502. function ToggleVolumeDown()
  2503. if volume >0 then
  2504. volume = volume - 0.1
  2505. ply:ConCommand("volume "..volume)
  2506. if volume<1 and volume>0 then
  2507. ChatPrint(volume, red)
  2508. end
  2509. else
  2510. volume = 0
  2511. ply:ConCommand("volume "..volume)
  2512. if volume<1 and volume>0 then
  2513. ChatPrint(volume, red)
  2514. end
  2515. end
  2516. end
  2517.  
  2518. function GetClass ()
  2519. local trace = util.GetPlayerTrace( ply )
  2520. local traceRes = util.TraceLine( trace )
  2521. if traceRes.HitNonWorld then
  2522. local target = traceRes.Entity
  2523. ChatPrint("Entity Class: "..target:GetClass(),red)
  2524. else
  2525. ChatPrint("You need to be looking at a Entity to get it's Class!", red)
  2526. end
  2527. end
  2528.  
  2529. function GetModel()
  2530. local trace = util.GetPlayerTrace( ply )
  2531. local traceRes = util.TraceLine( trace )
  2532. if traceRes.HitNonWorld then
  2533. local target = traceRes.Entity
  2534. ChatPrint("Entity Model: "..target:GetModel(),red)
  2535. file.Append("AnXition/Logger/Models.txt", target:GetModel().." "..tostring( os.date() ).."\n")
  2536. else
  2537. ChatPrint("You need to be looking at a Entity to get it's Model!", red)
  2538. end
  2539. end
  2540.  
  2541. function SetButtonModel()
  2542. local trace = util.GetPlayerTrace( ply )
  2543. local traceRes = util.TraceLine( trace )
  2544. if traceRes.HitNonWorld then
  2545. local target = traceRes.Entity
  2546. ChatPrint("Button Model set to: "..target:GetModel(),red)
  2547. ply:ConCommand("button_model "..target:GetModel())
  2548.  
  2549. else
  2550. ChatPrint("You need to be looking at a Entity to set button Model!", red)
  2551. end
  2552. end
  2553.  
  2554. function GetMaterial ()
  2555. local trace = util.GetPlayerTrace( ply )
  2556. local traceRes = util.TraceLine( trace )
  2557. if traceRes.HitNonWorld then
  2558. local target = traceRes.Entity
  2559. ChatPrint("Entity Material: "..target:GetMaterial(),red)
  2560. else
  2561. ChatPrint("You need to be looking at a Entity to get it's Material!", red)
  2562. end
  2563. end
  2564.  
  2565. function GetDClasses ()
  2566. foundclasses = 0
  2567. for k,v in pairs(ents.GetAll()) do
  2568. if ply:GetPos():Distance(v:GetPos())<500 then
  2569. foundclasses = foundclasses + 1
  2570. Print("Class found: "..v:GetClass())
  2571. end
  2572. end
  2573. ChatPrint(foundclasses.." Classes Printed in console.",red)
  2574. end
  2575.  
  2576. function PrintPlayers ()
  2577. for k,v in pairs(player.GetAll()) do
  2578. Print(v:GetName().." "..v:SteamID())
  2579. end
  2580. end
  2581.  
  2582.  
  2583. /////////////////////////////////////////////////////////////////////////////////////////
  2584. /******************************
  2585. Name: Load
  2586. Function: Runs scripts on load
  2587. ******************************/
  2588. function Loaddefaultscripts()
  2589. HUDToggleON1 ()
  2590. ESPOn ()
  2591. Log ()
  2592. runmisc()
  2593.  
  2594. end
  2595. /******************************
  2596. Name: Menu upvalues
  2597. Function: stupid upvalue error
  2598. ******************************/
  2599. function HUDpaint ()
  2600.  
  2601. DrawText ( LogoTabGet, 120, 145, LogoTabCol )
  2602. DrawText ( CITabGet, 120, 180, CITabCol )
  2603.  
  2604. DrawText ( AdminsTabGet, 295, 145, AdminsTabCol )
  2605. DrawText ( FriendsTabGet, 295, 180, FriendsTabCol )
  2606.  
  2607. DrawText ( SpecHUDTabGet, 470, 145, SpecHUDTabCol )
  2608. DrawText ( drawingcrosshairTabGet, 470, 180, drawingcrosshairTabCol )
  2609.  
  2610. end
  2611.  
  2612. function ESPpaint ()
  2613.  
  2614. DrawText ( WallhackTabGet, 120, 145, WallhackTabCol )
  2615. DrawText ( ESPEntitysTabGet, 120, 180, ESPEntitysTabCol )
  2616. DrawText ( ESPInfoTabGet, 120, 215, ESPInfoTabCol )
  2617.  
  2618. DrawText ( showdistanceTabGet, 295, 145, showdistanceTabCol )
  2619. DrawText ( showmoneyTabGet, 295, 180, showmoneyTabCol )
  2620. DrawText ( showgroupsTabGet, 295, 215, showgroupsTabCol )
  2621.  
  2622. DrawText ( beamsTabGet, 470, 145, beamsTabCol )
  2623. DrawText ( specialonlyTabGet, 470, 180, specialonlyTabCol )
  2624. DrawText ( showfriendsTabGet, 470, 215, showfriendsTabCol )
  2625.  
  2626. end
  2627.  
  2628. function Aimbotpaint ()
  2629.  
  2630. DrawText ( aimbottingTabGet, 120, 110, aimbottingTabCol )
  2631. DrawText ( singleaimbotTabGet, 120, 145, singleaimbotTabCol )
  2632. DrawText ( groupaimbotTabGet, 120, 180, groupaimbotTabCol )
  2633.  
  2634. DrawText ( norecoilTabGet, 295, 110, norecoilTabCol )
  2635. DrawText ( nospreadTabGet, 295, 145, nospreadTabCol )
  2636.  
  2637. end
  2638.  
  2639. function Miscpaint ()
  2640.  
  2641. DrawText ( flashspammingTabGet, 120, 110, flashspammingTabCol )
  2642. DrawText ( bunnyhopTabGet, 120, 140, bunnyhopTabCol )
  2643. DrawText ( namechangingTabGet, 120, 170, namechangingTabCol )
  2644. DrawText ( brightTabGet, 120, 200, brightTabCol )
  2645. DrawText ( mousespammingTabGet, 120, 230, mousespammingTabCol )
  2646.  
  2647. DrawText ( followingTabGet, 295, 110, followingTabCol )
  2648. DrawText ( keypadloggingTabGet, 295, 140, keypadloggingTabCol )
  2649. DrawText ( derpingTabGet, 295, 170, derpingTabCol )
  2650. DrawText ( godmodeTabGet, 295, 200, godmodeTabCol )
  2651. DrawText ( drawingTabGet, 295, 230, drawingTabCol )
  2652.  
  2653. DrawText ( animatingTabGet, 470, 110, animatingTabCol )
  2654. DrawText ( spectatingTabGet , 470, 140, spectatingTabCol )
  2655. DrawText ( xrayTabGet, 470, 170, xrayTabCol )
  2656. DrawText ( spammingTabGet, 470, 200, spammingTabCol )
  2657. DrawText ( detectionTabGet, 470, 230, detectionTabCol )
  2658.  
  2659. end
  2660.  
  2661. function ShowInfo ()
  2662. Close ()
  2663. local InfoFrame = vgui.Create( "DFrame" )
  2664. InfoFrame:SetPos( 50, 50 )
  2665. InfoFrame:SetSize( ScrW()-100,ScrH()-100 )
  2666. InfoFrame:SetTitle( " " )
  2667. InfoFrame:SetVisible( true )
  2668. InfoFrame:SetDraggable( true )
  2669. InfoFrame:ShowCloseButton( false )
  2670. InfoFrame.Paint = function ()
  2671. DrawRoundedBox ( 0, 0, 0, InfoFrame:GetWide(), InfoFrame:GetTall(), tblack )
  2672. DrawOutlinedText ( "Aggresive Exile", "Infotab", InfoFrame:GetWide()/2, 35, red, 2, black )
  2673. DrawRoundedBoxEx ( 0, 0, 75, InfoFrame:GetWide(), 25, tred, true, true, true, true )
  2674. DrawLine ( 675, 250, 675, 600 )
  2675. DrawOutlinedText ( "A Script made by Freedom Updated by snowboi", "Logo", InfoFrame:GetWide()/2, 85, red, 1, black )
  2676. DrawOutlinedText ( "----Credits to freedom for making the original hack, Snowboi updated it!----", "Menu", InfoFrame:GetWide()/2, InfoFrame:GetTall()-25, red, 1, black )
  2677. DrawOutlinedText ( "About", "Logo", InfoFrame:GetWide()/2, 125, red, 1, black )
  2678. DrawOutlinedText ( "This Script Is made for Aggresive exile", "Menu", InfoFrame:GetWide()/2, 150, red, 1, black )
  2679. DrawOutlinedText ( "A Garry's Mod Team", "Menu", InfoFrame:GetWide()/2, 170, red, 1, black )
  2680. DrawOutlinedText ( "Commands", "Logo", InfoFrame:GetWide()/2, 230, red, 1, black )
  2681. DrawOutlinedText ( "AnXition_Boost1 ", "Menu", InfoFrame:GetWide()/2, 260, red, 1, black )
  2682. DrawOutlinedText ( "AnXition_Boost2 ", "Menu", InfoFrame:GetWide()/2, 280, red, 1, black )
  2683. DrawOutlinedText ( "AnXition_Boost3 ", "Menu", InfoFrame:GetWide()/2, 300, red, 1, black )
  2684.  
  2685. DrawOutlinedText ( "Members:", "Menu", InfoFrame:GetWide()/2, 340, red, 1, black )
  2686. DrawOutlinedText ( "Cokeman", "Menu", InfoFrame:GetWide()/2, 360, red, 1, black )
  2687. DrawOutlinedText ( "SnowBoi", "Menu", InfoFrame:GetWide()/2, 380, red, 1, black )
  2688. DrawOutlinedText ( "Barmyaaron", "Menu", InfoFrame:GetWide()/2, 400, red, 1, black )
  2689.  
  2690. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2, 440, red, 1, black )
  2691. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2, 460, red, 1, black )
  2692. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2, 480, red, 1, black )
  2693. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2, 500, red, 1, black )
  2694.  
  2695. DrawOutlinedText2 ( "Boosts you forward", "Menu", InfoFrame:GetWide()/2+100, 260, red, 1, black )
  2696. DrawOutlinedText2 ( "Boosts you up", "Menu", InfoFrame:GetWide()/2+100, 280, red, 1, black )
  2697. DrawOutlinedText2 ( "Bounce, use when boosting to keep flying.", "Menu", InfoFrame:GetWide()/2+100, 300, red, 1, black )
  2698.  
  2699.  
  2700.  
  2701. InfoFrame:MakePopup()
  2702. end
  2703. CreateButton ( "X", InfoFrame, black, tblack, true, InfoFrame:GetWide()-50, -30, 50, 50, "Close", function () InfoFrame:Close() end )
  2704. end
  2705.  
  2706. /******************************
  2707. Name: Playlist
  2708. Function: Create playlist shit
  2709. ******************************/
  2710.  
  2711. function MusicPlaylist ()
  2712. Close ()
  2713. local Playlist = vgui.Create( "DFrame" )
  2714. Playlist:SetPos( ScrW()/2-ScrW()/4, ScrH()/2-ScrH()/4 )
  2715. Playlist:SetSize( ScrW()/2,ScrH()/2 )
  2716. Playlist:SetTitle( " " )
  2717. Playlist:SetVisible( true )
  2718. Playlist:SetDraggable( true )
  2719. Playlist:ShowCloseButton( false )
  2720. Playlist.Paint = function ()
  2721. DrawRoundedBox ( 0, 0, 0, Playlist:GetWide(), Playlist:GetTall(), tblack )
  2722. DrawRoundedBoxEx ( 0, 0, 0, Playlist:GetWide()-50, 20, tred, true, true, true, true )
  2723. DrawOutlinedText ( "AnXition Custom Playlist", "Logo", Playlist:GetWide()/2, 10, red, 1, black )
  2724.  
  2725.  
  2726. namelisting = 0
  2727. for k,v in pairs(PlaylistName) do
  2728. DrawOutlinedText3 ( v, "Playlist", Playlist:GetWide()/2-75, 110+namelisting, red, 1, black )
  2729. namelisting = namelisting+30
  2730. end
  2731.  
  2732.  
  2733. Playlist:MakePopup()
  2734. end
  2735. CreateButton ( "X", Playlist, black, tblack, true, Playlist:GetWide()-50, -30, 50, 50, "Close", function () Playlist:Close() end )
  2736.  
  2737. urllisting = 0
  2738. for k,v in pairs(PlaylistURL) do
  2739. CreateButton ( "play", Playlist, black, tblack, true, Playlist:GetWide()/2-60, 100+urllisting, 120, 20, "play", function () playsong(v) end )
  2740. urllisting = urllisting+30
  2741. end
  2742.  
  2743. function CloseMusicFrame ()
  2744. Playlist:Close()
  2745. end
  2746.  
  2747. local Playlistfix = vgui.Create( "DFrame" )
  2748. Playlistfix:SetParent( Playlist )
  2749. Playlistfix:SetPos( 250, 20 )
  2750. Playlistfix:SetSize( 140,100 )
  2751. Playlistfix:SetTitle( " " )
  2752. Playlistfix:SetVisible( true )
  2753. Playlistfix:ShowCloseButton(false)
  2754. Playlistfix.Paint = function ()
  2755. DrawRoundedBox ( 0, 0, 0, Playlistfix:GetWide(), Playlistfix:GetTall(), black )
  2756. end
  2757.  
  2758. CreateButton ( "Add Song", Playlist, black, tblack, true, Playlist:GetWide()/2-60, 40, 120, 20, "Add a song", function () AddSong() end )
  2759. CreateButton ( "Stop", Playlist, black, tblack, true, Playlist:GetWide()/2-60, 80, 120, 20, "stops playing music", function () stopsong() end )
  2760.  
  2761. end
  2762.  
  2763.  
  2764.  
  2765. function AddSong ()
  2766. CloseMusicFrame ()
  2767. local addsongframe = vgui.Create( "DFrame" )
  2768. addsongframe:SetPos( ScrW()/2-150, ScrH()/2-50 )
  2769. addsongframe:SetSize( 300,100 )
  2770. addsongframe:SetTitle( " " )
  2771. addsongframe:SetVisible( true )
  2772. addsongframe:SetDraggable( true )
  2773. addsongframe:ShowCloseButton( false )
  2774. addsongframe.Paint = function ()
  2775. DrawRoundedBox ( 0, 0, 0, addsongframe:GetWide(), addsongframe:GetTall(), tblack )
  2776. DrawRoundedBoxEx ( 0, 0, 0, addsongframe:GetWide()-50, 20, tred, true, true, true, true )
  2777. DrawOutlinedText ( "AnXition Adder", "Logo", addsongframe:GetWide()/2, 10, red, 1, black )
  2778.  
  2779. DrawOutlinedText ( "URL", "Logo", addsongframe:GetWide()/8, 35, red, 1, black )
  2780. DrawOutlinedText ( "Name", "Logo", addsongframe:GetWide()/8, 60, red, 1, black )
  2781. addsongframe:MakePopup()
  2782. end
  2783. CreateButton ( "X", addsongframe, black, tblack, true, addsongframe:GetWide()-50, -30, 50, 50, "Close", function () addsongframe:Close() end )
  2784. CreateButton ( "Add", addsongframe, black, tblack, true, addsongframe:GetWide()/2-60, 75, 120, 20, "Add the song", function () AddCustomSong () end )
  2785.  
  2786.  
  2787. local URLBox = vgui.Create( "DTextEntry", addsongframe )
  2788. URLBox:SetPos( addsongframe:GetWide()/4,25 )
  2789. URLBox:SetTall( 20 )
  2790. URLBox:SetWide( 200 )
  2791. URLBox:SetEnterAllowed( true )
  2792.  
  2793. local NameBox = vgui.Create( "DTextEntry", addsongframe )
  2794. NameBox:SetPos( addsongframe:GetWide()/4,50 )
  2795. NameBox:SetTall( 20 )
  2796. NameBox:SetWide( 200 )
  2797. NameBox:SetEnterAllowed( true )
  2798.  
  2799. function AddCustomSong ()
  2800. if (not table.HasValue(PlaylistURL, URLBox:GetValue())) then
  2801. file.Append("AnXition/Playlist/URL.txt","%"..URLBox:GetValue())
  2802. PlaylistURL = string.Explode("%",(file.Read("AnXition/Playlist/URL.txt")))
  2803. file.Append("AnXition/Playlist/Name.txt","%"..NameBox:GetValue())
  2804. PlaylistName = string.Explode("%",(file.Read("AnXition/Playlist/Name.txt")))
  2805. ChatPrint (NameBox:GetValue().." Has been added to the playlist!", red)
  2806. else
  2807. ChatPrint ("This song has already been added!", red)
  2808. end
  2809. end
  2810.  
  2811.  
  2812. end
  2813.  
  2814. function stopsong()
  2815. return true
  2816. end
  2817.  
  2818. function playsong (url)
  2819.  
  2820. stopsong()
  2821.  
  2822. local playpanel = vgui.Create( "DFrame" )
  2823. playpanel:SetPos( ScrW()*2,ScrH()*2 )
  2824. playpanel:SetSize( 1, 1 )
  2825. playpanel:SetVisible( false )
  2826.  
  2827. function stopsong ()
  2828. playpanel:Close()
  2829. function stopsong ()
  2830. return true
  2831. end
  2832. end
  2833.  
  2834. local HTMLPanel = vgui.Create("HTML")
  2835. HTMLPanel:SetParent(playpanel)
  2836. HTMLPanel:SetPos(1 ,1)
  2837. HTMLPanel:SetSize(1, 1)
  2838. HTMLPanel:OpenURL(url)
  2839. ChatPrint( "Song Is now playing!", red)
  2840.  
  2841. end
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847. /******************************
  2848. Name: Menu
  2849. Function: Create Menu
  2850. ******************************/
  2851. function Menu ()
  2852. local Frame = vgui.Create( "DFrame" )
  2853. Frame:SetPos( ScrW()/5, ScrH()/5 )
  2854. Frame:SetSize( 500,300 )
  2855. Frame:SetTitle( " " )
  2856. Frame:SetVisible( true )
  2857. Frame:SetDraggable( true )
  2858. Frame:ShowCloseButton( false )
  2859. Frame.Paint = function ()
  2860. DrawRoundedBoxEx ( 0, 0, 40, Frame:GetWide(), 10, ttred, false, false, false, false )
  2861. DrawRoundedBox ( 0, 0, 0, Frame:GetWide(), Frame:GetTall(), tblack )
  2862. DrawRoundedBox ( 0, 0, 0, 450, 20, tred )
  2863. DrawOutlinedRect (red, 0, 0, Frame:GetWide(), Frame:GetTall() )
  2864. DrawOutlinedText ( "Aggressive Exile PUBLIC V2.0", "Logo", Frame:GetWide()/2, 10, red, 1.5, black )
  2865. end
  2866. Frame:MakePopup()
  2867. CreateButton ( "X", Frame, black, tblack, true, 450, -30, 50, 50, "Close", function () Frame:Close() end )
  2868.  
  2869.  
  2870. --== Tabs ==--
  2871. local Maintab = vgui.Create("DLabel")
  2872. Maintab:SetParent( Frame )
  2873. Maintab:SetPos( 0 , 20 )
  2874. Maintab:SetSize( Frame:GetWide(), Frame:GetTall()-20 )
  2875. Maintab:SetText("")
  2876. Maintab:SetVisible( true )
  2877. Maintab.Paint = function()
  2878. DrawRoundedBoxEx ( 0, 0, 0, 100, 20, ttred, false, false, false, false )
  2879. DrawOutlinedText ( "Unload Script", "Logo", Frame:GetWide()/2, 50, red, 1.5, black )
  2880. DrawOutlinedText ( "Reload Script", "Logo", Frame:GetWide()/2, 110, red, 1.5, black )
  2881. DrawOutlinedText ( "Information", "Logo", Frame:GetWide()/2, 170, red, 1.5, black )
  2882. DrawOutlinedText ( "Music", "Logo", Frame:GetWide()/2, 225, red, 1.5, black )
  2883. DrawOutlinedText ( "Made by Freedom Updated by SnowBoi", "Small", Frame:GetWide()-86, Frame:GetTall()-27, red, 1, black )
  2884. end
  2885.  
  2886. local HUDtab = vgui.Create("DLabel")
  2887. HUDtab:SetParent( Frame )
  2888. HUDtab:SetPos( 0 , 20 )
  2889. HUDtab:SetSize( Frame:GetWide(), Frame:GetTall()-20 )
  2890. HUDtab:SetText("")
  2891. HUDtab:SetVisible( false )
  2892. HUDtab.Paint = function()
  2893. DrawRoundedBoxEx ( 0, 100, 0, 100, 20, ttred, false, false, false, false )
  2894.  
  2895. HUDpaint ()
  2896.  
  2897. DrawOutlinedText ( "Made by Freedom Updated by SnowBoi", "Small", Frame:GetWide()-86, Frame:GetTall()-27, red, 1, black )
  2898. end
  2899.  
  2900. local ESPtab = vgui.Create("DLabel")
  2901. ESPtab:SetParent( Frame )
  2902. ESPtab:SetPos( 0 , 20 )
  2903. ESPtab:SetSize( Frame:GetWide(), Frame:GetTall()-20 )
  2904. ESPtab:SetText("")
  2905. ESPtab:SetVisible( false )
  2906. ESPtab.Paint = function()
  2907. DrawRoundedBoxEx ( 0, 200, 0, 100, 20, ttred, false, false, false, false )
  2908.  
  2909. ESPpaint ()
  2910.  
  2911. DrawOutlinedText ( "Made by Freedom Updated by SnowBoi", "Small", Frame:GetWide()-86, Frame:GetTall()-27, red, 1, black )
  2912. end
  2913.  
  2914. local Aimbottab = vgui.Create("DLabel")
  2915. Aimbottab:SetParent( Frame )
  2916. Aimbottab:SetPos( 0 , 20 )
  2917. Aimbottab:SetSize( Frame:GetWide(), Frame:GetTall()-20 )
  2918. Aimbottab:SetText("")
  2919. Aimbottab:SetVisible( false )
  2920. Aimbottab.Paint = function()
  2921. DrawRoundedBoxEx ( 0, 300, 0, 100, 20, ttred, false, false, false, false )
  2922.  
  2923. Aimbotpaint ()
  2924.  
  2925. DrawOutlinedText ( "Made by Freedom Updated by SnowBoi", "Small", Frame:GetWide()-86, Frame:GetTall()-27, red, 1, black )
  2926. end
  2927.  
  2928. local MISCtab = vgui.Create("DLabel")
  2929. MISCtab:SetParent( Frame )
  2930. MISCtab:SetPos( 0 , 20 )
  2931. MISCtab:SetSize( Frame:GetWide(), Frame:GetTall()-20 )
  2932. MISCtab:SetText("")
  2933. MISCtab:SetVisible( false )
  2934. MISCtab.Paint = function()
  2935. DrawRoundedBoxEx ( 0, 400, 0, 100, 20, ttred, false, false, false, false )
  2936.  
  2937. Miscpaint ()
  2938.  
  2939. DrawOutlinedText ( "Made by Freedom Updated by SnowBoi", "Small", Frame:GetWide()-86, Frame:GetTall()-27, red, 1, black )
  2940. end
  2941.  
  2942. --== ChangeTab ==--
  2943. function ChangeTab (tab)
  2944. Maintab:SetVisible(false)
  2945. HUDtab:SetVisible(false)
  2946. ESPtab:SetVisible(false)
  2947. Aimbottab:SetVisible(false)
  2948. MISCtab:SetVisible(false)
  2949. tab:SetVisible(true)
  2950. end
  2951.  
  2952. CreateButton ( "Main", Frame, black, tblack, true, 0, 20, 100, 20, "Main Tab", function () ChangeTab(Maintab) end )
  2953. CreateButton ( "HUD", Frame, black, tblack, true, 100, 20, 100, 20, "HUD Options", function () ChangeTab(HUDtab) end )
  2954. CreateButton ( "ESP", Frame, black, tblack, true, 200, 20, 100, 20, "ESP Options", function () ChangeTab(ESPtab) end )
  2955. CreateButton ( "Aimbot", Frame, black, tblack, true, 300, 20, 100, 20, "Logging Options", function () ChangeTab(Aimbottab) end )
  2956. CreateButton ( "Misc", Frame, black, tblack, true, 400, 20, 100, 20, "Misc Options", function () ChangeTab(MISCtab) end )
  2957.  
  2958.  
  2959. --== Adding Tab buttons ==--
  2960.  
  2961. --MainTab--
  2962. CreateButton ( "Unload", Maintab, black, tblack, true, Frame:GetWide()/2-60, 70, 120, 20, "Unload AnXition script", function () Unload () end )
  2963. CreateButton ( "Reload", Maintab, black, tblack, true, Frame:GetWide()/2-60, 130, 120, 20, "Reload AnXition script", function () Reload () end )
  2964. CreateButton ( "About", Maintab, black, tblack, true, Frame:GetWide()/2-60, 185, 120, 20, "Information about AnXition", function () ShowInfo () end )
  2965. CreateButton ( "Music", Maintab, black, tblack, true, Frame:GetWide()/2-60, 240, 120, 20, "Open Customizeble Playlist", function () MusicPlaylist () end )
  2966.  
  2967. --HUDTab--
  2968. CreateButton ( "Layout 1", HUDtab, black, tblack, true, 5, 50, 95, 20, "Toggle Hud layout 1", function () HUDToggleON1 () end )
  2969. CreateButton ( "Layout 2", HUDtab, black, tblack, true, 105, 50, 95, 20, "Toggle Hud layout 2", function () HUDToggleON2 () end )
  2970. CreateButton ( "Off", HUDtab, black, tblack, true, 205, 50, 95, 20, "Toggle Hud Off", function () HUDToggleOFF () end )
  2971.  
  2972. CreateButton ( "Logo", HUDtab, black, tblack, true, 5, 135, 95, 20, "Toggle Hud Logo", function () HUDLogo () end )
  2973. CreateButton ( "Client Info", HUDtab, black, tblack, true, 5, 170, 95, 20, "Toggle Hud Client Info", function () HUDCI () end )
  2974.  
  2975. CreateButton ( "Admins", HUDtab, black, tblack, true, 180, 135, 95, 20, "Toggle Hud Showing Admins", function () HUDAdmins () end )
  2976. CreateButton ( "Friends", HUDtab, black, tblack, true, 180, 170, 95, 20, "Toggle Hud Showing Friends", function () HUDFriends () end )
  2977.  
  2978. CreateButton ( "Spectating", HUDtab, black, tblack, true, 355, 135, 95, 20, "Toggle Hud Showing if you are being spectated", function () HUDSpectate () end )
  2979. CreateButton ( "Crosshair", HUDtab, black, tblack, true, 355, 170, 95, 20, "Toggle Hud Drawing Crosshair", function () HUDCrosshair () end )
  2980.  
  2981. --ESPTab--
  2982. CreateButton ( "Add Entity", ESPtab, black, tblack, true, 5, 50, 95, 20, "Add the Entity you are looking at to the Entity ESP", function () AddEnt() end )
  2983. CreateButton ( "Add Printer", ESPtab, black, tblack, true, 105, 50, 95, 20, "Add the Printer you are looking at to the Entity ESP", function () AddPrinter() end )
  2984. CreateButton ( "Find", ESPtab, black, tblack, true, 205, 50, 95, 20, "Trace the class of the entity you are looking at to see if there are more on the server.", function () FindEnt () end )
  2985.  
  2986. CreateButton ( "Clear Entitys", ESPtab, black, tblack, true, 5, 75, 95, 20, "Reset all the saved Entitys", function () ClearEntitys() end )
  2987. CreateButton ( "Clear Printers", ESPtab, black, tblack, true, 105, 75, 95, 20, "Reset all the saved Printers", function () ClearPrinters() end )
  2988. CreateButton ( "Clear Finder", ESPtab, black, tblack, true, 205, 75, 95, 20, "Clears finder", function () ClearFinder () end )
  2989.  
  2990.  
  2991.  
  2992. CreateButton ( "On", ESPtab, black, tblack, true, 405, 50, 95, 20, "Toggle ESP Off", function () ESPOn() end )
  2993. CreateButton ( "Off", ESPtab, black, tblack, true, 405, 75, 95, 20, "Toggle ESP Off", function () ESPOff() end )
  2994.  
  2995. CreateButton ( "Wallhack", ESPtab, black, tblack, true, 5, 135, 95, 20, "Toggle Wallhack between chams/wireframe", function () Wallhack () end )
  2996. CreateButton ( "Entitys", ESPtab, black, tblack, true, 5, 170, 95, 20, "Toggle Entity ESP", function () Entitys () end )
  2997. CreateButton ( "Info", ESPtab, black, tblack, true, 5, 205, 95, 20, "Toggle ESP to show player/entity info", function () Info () end )
  2998.  
  2999. CreateButton ( "Distance", ESPtab, black, tblack, true, 180, 135, 95, 20, "Toggle ESP info showing distance", function () ShowDistance () end )
  3000. CreateButton ( "Money", ESPtab, black, tblack, true, 180, 170, 95, 20, "Toggle ESP info showing money", function () ShowMoney () end )
  3001. CreateButton ( "UserGroups", ESPtab, black, tblack, true, 180, 205, 95, 20, "Toggle ESP to show usergroups", function () ShowGroups () end )
  3002.  
  3003. CreateButton ( "Beams", ESPtab, black, tblack, true, 355, 135, 95, 20, "Toggle ESP to draw beams", function () Beams () end )
  3004. CreateButton ( "Special Only", ESPtab, black, tblack, true, 355, 170, 95, 20, "Toggle ESP to only target Admins/friends", function () SpecialOnly () end )
  3005. CreateButton ( "Friends", ESPtab, black, tblack, true, 355, 205, 95, 20, "Toggle Crosshair", function () ShowFriends () end )
  3006.  
  3007. --AimbotTab--
  3008. CreateButton ( "Aimbot", Aimbottab, black, tblack, true, 5, 100, 95, 20, "Toggle Normal Aimbot, Targets visible players.", function () Aimbot () end )
  3009. CreateButton ( "S Aimbot", Aimbottab, black, tblack, true, 5, 135, 95, 20, "Toggle Singe Target Aimbot, Targets one selected player.", function () SingleAimbot () end )
  3010. CreateButton ( "G Aimbot", Aimbottab, black, tblack, true, 5, 170, 95, 20, "Toggle Group Target Aimbot, Targets multiple selected players.", function () NotDone () end )
  3011.  
  3012. CreateButton ( "NoRecoil", Aimbottab, black, tblack, true, 180, 100, 95, 20, "button", function () Norecoil () end )
  3013. CreateButton ( "NoSpread", Aimbottab, black, tblack, true, 180, 135, 95, 20, "button", function () Nospread () end )
  3014. CreateButton ( "button", Aimbottab, black, tblack, true, 180, 170, 95, 20, "button", function () end )
  3015.  
  3016. CreateButton ( "button", Aimbottab, black, tblack, true, 355, 100, 95, 20, "button", function () end )
  3017. CreateButton ( "button", Aimbottab, black, tblack, true, 355, 135, 95, 20, "button", function () end )
  3018. CreateButton ( "button", Aimbottab, black, tblack, true, 355, 170, 95, 20, "button", function () end )
  3019.  
  3020. --MiscTab--
  3021. CreateButton ( "Flash Spam", MISCtab, black, tblack, true, 5, 100, 95, 20, "Toggle Flashlight Spammer", function () FlashlightSpam () end )
  3022. CreateButton ( "BunnyHop", MISCtab, black, tblack, true, 5, 130, 95, 20, "Toggle Bunnyhop", function () Bunnyhop () end )
  3023. CreateButton ( "NameChanger", MISCtab, black, tblack, true, 5, 160, 95, 20, "Toggle NameChanger", function () NameChanger () end )
  3024. CreateButton ( "Fullbright", MISCtab, black, tblack, true, 5, 190, 95, 20, "Toggle Entity Fullbright", function () Fullbright () end )
  3025. CreateButton ( "Auto Clicker", MISCtab, black, tblack, true, 5, 220, 95, 20, "Switch Auto Clicker between Mouse button 1 and mouse button 2", function () MouseSpam () end )
  3026.  
  3027. CreateButton ( "Follow", MISCtab, black, tblack, true, 180, 100, 95, 20, "Follow player", function () Follow () end )
  3028. CreateButton ( "Keypad", MISCtab, black, tblack, true, 180, 130, 95, 20, "Toggle Keypad logger to log and show keypad codes", function () keypadlog() end )
  3029. CreateButton ( "Derp", MISCtab, black, tblack, true, 180, 160, 95, 20, "Toggle Derping", function () Derp () end )
  3030. CreateButton ( "RP Godmode", MISCtab, black, tblack, true, 180, 190, 95, 20, "buyhealth when your health is under 100 (DOESN'T WORK WITHOUT /BUYHEALTH ENABLED)", function () RPGodmode() end )
  3031. CreateButton ( "DrawLogo", MISCtab, black, tblack, true, 180, 220, 95, 20, "Use with rope tool to draw AnXition on something.", function () Drawlogo () end )
  3032.  
  3033. CreateButton ( "Animation", MISCtab, black, tblack, true, 355, 100, 95, 20, "Toggle doing animations (switch between flex and muscle)", function () Animation () end )
  3034. CreateButton ( "Spectate", MISCtab, black, tblack, true, 355, 130, 95, 20, "Toggle spectate mode", function () NotDone () end )
  3035. CreateButton ( "Xray", MISCtab, black, tblack, true, 355, 160, 95, 20, "Toggle Xray", function () Xray () end )
  3036. CreateButton ( "Spam", MISCtab, black, tblack, true, 355, 190, 95, 20, "Spam random words", function () Spam() end )
  3037. CreateButton ( "Detection", MISCtab, black, tblack, true, 355, 220, 95, 20, "Toggle Join/Leave, Spectate detection. This toggle will be saved.", function () NotDone () end )
  3038.  
  3039.  
  3040.  
  3041.  
  3042. function Close ()
  3043. Frame:Close()
  3044. end
  3045. end
  3046. Print ( "Menu Created" )
  3047.  
  3048. --== Boosting ==--
  3049. function boost1()
  3050. local Ply = LocalPlayer()
  3051. local Angles = LocalPlayer():EyeAngles()
  3052. LocalPlayer():SetEyeAngles(Angle(30, Angles.yaw + 180, Angles.roll))
  3053. timer.Create("spawn", 0.1, 1, function()
  3054. LocalPlayer():ConCommand("gm_spawn models/props_c17/gravestone001a.mdl")
  3055. end)
  3056. timer.Create("attack", 0.1, 1, function()
  3057. LocalPlayer():ConCommand("+attack")
  3058. end)
  3059. timer.Create("turnback", 0.2, 1, function()
  3060. LocalPlayer():SetEyeAngles(Angle(0, Angles.yaw, Angles.roll))
  3061. end)
  3062. timer.Create("undo, Release", 0.3, 1, function()
  3063. LocalPlayer():ConCommand("undo")
  3064. end)
  3065. timer.Create("Release", 0.5, 1, function()
  3066. LocalPlayer():ConCommand("-attack")
  3067. end)
  3068. end
  3069.  
  3070.  
  3071. function boost2()
  3072. local Ply = LocalPlayer()
  3073. local Angles = LocalPlayer():EyeAngles()
  3074. LocalPlayer():SetEyeAngles(Angle(90, Angles.yaw + 180, Angles.roll))
  3075. timer.Create("spawn", 0.1, 1, function()
  3076. LocalPlayer():ConCommand("gm_spawn models/props_junk/garbage_carboard002a.mdl")
  3077. end)
  3078. timer.Create("attack", 0.1, 1, function()
  3079. LocalPlayer():ConCommand("+attack")
  3080. end)
  3081. timer.Create("turnback", 0.2, 1, function()
  3082. LocalPlayer():SetEyeAngles(Angle(0, Angles.yaw, Angles.roll))
  3083. end)
  3084. timer.Create("undo, Release", 0.5, 1, function()
  3085. LocalPlayer():ConCommand("undo")
  3086. LocalPlayer():ConCommand("-attack")
  3087. LocalPlayer():SetEyeAngles(Angle(0, Angles.yaw, Angles.roll))
  3088. end)
  3089. end
  3090.  
  3091. function boost3()
  3092. local Ply = LocalPlayer()
  3093. local Angles = LocalPlayer():EyeAngles()
  3094. LocalPlayer():SetEyeAngles(Angle(50, Angles.yaw + 0, Angles.roll))
  3095. timer.Create("spawn", 0.1, 1, function()
  3096. LocalPlayer():ConCommand("gm_spawn models/XQM/CoasterTrack/slope_225_2.mdl")
  3097. end)
  3098. timer.Create("turnback", 0.2, 1, function()
  3099. LocalPlayer():SetEyeAngles(Angle(0, Angles.yaw, Angles.roll))
  3100. end)
  3101. timer.Create("undo ", 0.5, 1, function()
  3102. LocalPlayer():ConCommand("undo")
  3103. end)
  3104. end
  3105.  
  3106. --== Command/CV/hook list ==--
  3107. NewCom ( "AnXition_Menu", Menu )
  3108.  
  3109. NewCom ( "AnXition_Boost1", boost1 )
  3110. NewCom ( "AnXition_Boost2", boost2 )
  3111. NewCom ( "AnXition_Boost3", boost3 )
  3112.  
  3113. NewCom ( "AnXition_GetClass", GetClass )
  3114. NewCom ( "AnXition_GetModel", GetModel )
  3115. NewCom ( "AnXition_GetMaterial", GetMaterial )
  3116. NewCom ( "AnXition_GetDClasses", GetDClasses )
  3117. NewCom ( "AnXition_SetButtonModel", SetButtonModel)
  3118.  
  3119. NewCom ( "AnXition_Follow", Follow )
  3120. NewCom ( "AnXition_Derp", Derp )
  3121.  
  3122. NewCom ( "AnXition_SetATarget", SetbyView )
  3123. NewCom ( "AnXition_Xray", Xray )
  3124. NewCom ( "AnXition_Aimbot", AngleAimbot )
  3125. NewCom ( "AnXition_DrawLogo", Drawlogo )
  3126. NewCom ( "AnXition_GetEntAmount", GetEntAmount )
  3127. NewCom ( "AnXition_GetPlayers", PrintPlayers )
  3128. NewCom ( "AnXition_Voicetoggle", ToggleVoice )
  3129. NewCom ( "AnXition_VolumeUp", ToggleVolumeUp )
  3130. NewCom ( "AnXition_VolumeDown", ToggleVolumeDown )
  3131.  
  3132. NewHook("Think", "checkadmins", AdminDetect)
  3133. NewHook("Think", "checkmods", ModDetect)
  3134. NewHook("Think", "checkfriends", FriendsDetect)
  3135.  
  3136.  
  3137.  
  3138. --== Load default scripts ==--
  3139. Loaddefaultscripts()
  3140.  
  3141.  
  3142. Print ( "succesfully loaded!" )
  3143. ChatPrint ( "Loaded", red )
  3144.  
  3145. /**************************************
  3146. Name: Rotater DONT ADD TO MENU
  3147. Purpose: Does 180 and shit
  3148. **************************************/
  3149.  
  3150. local function Rotate180()
  3151. ax_NOAUTOPICKUP = true
  3152. timer.Simple(0.5, function() ax_NOAUTOPICKUP = false end)
  3153.  
  3154. if hook.GetTable().CreateMove and hook.GetTable().CreateMove.PickupEnt then
  3155. hook.Remove("CreateMove", "PickupEnt")
  3156. hook.Remove("CalcView", "Ididntseeit")
  3157. timer.Simple(0.05, function()
  3158. local a = LocalPlayer():EyeAngles() LocalPlayer():SetEyeAngles(Angle(a.p, a.y-180, a.r))
  3159. end)
  3160. return
  3161. end
  3162. local a = LocalPlayer():EyeAngles() LocalPlayer():SetEyeAngles(Angle(a.p, a.y-180, a.r))
  3163. end
  3164. concommand.Add("ax_180", Rotate180)
  3165.  
  3166. /**************************************
  3167. Name: De Lagger
  3168. Purpose: Removes useless shit that garrys added to raise FPS
  3169. **************************************/
  3170.  
  3171. local removes = {"env_steam",
  3172. "func_illusionary",
  3173. "beam",
  3174. "class C_BaseEntity",
  3175. "env_sprite",
  3176. "class C_ShadowControl",
  3177. "class C_ClientRagdoll",
  3178. "func_illusionary",
  3179. "class C_PhysPropClientside",
  3180. }
  3181.  
  3182. local nolag = true
  3183.  
  3184. local function StopLag()
  3185. nolag = true
  3186. RunConsoleCommand("r_3dsky", 0)
  3187. RunConsoleCommand("r_WaterDrawReflection", 0)
  3188. RunConsoleCommand("r_waterforcereflectentities", 0)
  3189. RunConsoleCommand("r_teeth", 0)
  3190. RunConsoleCommand("r_shadows", 0)
  3191. RunConsoleCommand("r_ropetranslucent", 0)
  3192. RunConsoleCommand("r_maxmodeldecal", 0) --50
  3193. RunConsoleCommand("r_maxdlights", 0)--32
  3194. RunConsoleCommand("r_decals", 0)--2048
  3195. RunConsoleCommand("r_drawmodeldecals", 0)
  3196. RunConsoleCommand("r_drawdetailprops", 0)
  3197. RunConsoleCommand("r_worldlights", 0)
  3198. RunConsoleCommand("r_flashlightrender", 0)
  3199. RunConsoleCommand("cl_forcepreload", 1)
  3200. RunConsoleCommand("r_threaded_renderables", 1)
  3201. RunConsoleCommand("r_threaded_client_shadow_manager", 1)
  3202. RunConsoleCommand("snd_mix_async", 1)
  3203. RunConsoleCommand("cl_ejectbrass", 0)
  3204. RunConsoleCommand("cl_detaildist", 0)
  3205. RunConsoleCommand("cl_show_splashes", 0)
  3206. --RunConsoleCommand("mat_fastnobump", 1)
  3207. RunConsoleCommand("mat_filterlightmaps", 0)
  3208. --RunConsoleCommand("mat_filtertextures", 0)
  3209. RunConsoleCommand("r_drawflecks", 0)
  3210. RunConsoleCommand("r_dynamic", 0)
  3211. RunConsoleCommand("r_WaterDrawRefraction", 0)
  3212. --RunConsoleCommand("mat_showlowresimage", 1)
  3213.  
  3214. for k,v in pairs(removes) do
  3215. for a,b in pairs(ents.FindByClass(v)) do
  3216. b:SetNoDraw(true)
  3217. end
  3218. end
  3219.  
  3220. end
  3221. concommand.Add("ax_stoplag", StopLag)
  3222.  
  3223. local function Reset()
  3224. nolag = true
  3225. RunConsoleCommand("r_3dsky", 1)
  3226. RunConsoleCommand("r_WaterDrawReflection", 1)
  3227. RunConsoleCommand("r_waterforcereflectentities", 1)
  3228. RunConsoleCommand("r_teeth", 1)
  3229. RunConsoleCommand("r_shadows", 1)
  3230. RunConsoleCommand("r_ropetranslucent", 1)
  3231. RunConsoleCommand("r_maxmodeldecal", 50) --50
  3232. RunConsoleCommand("r_maxdlights", 32)--32
  3233. RunConsoleCommand("r_decals", 2048)--2048
  3234. RunConsoleCommand("r_drawmodeldecals", 1)
  3235. RunConsoleCommand("r_drawdetailprops", 1)
  3236. RunConsoleCommand("r_decal_cullsize", 1000)
  3237. RunConsoleCommand("r_worldlights", 1)
  3238. RunConsoleCommand("r_flashlightrender", 1)
  3239. RunConsoleCommand("cl_forcepreload", 0)
  3240. RunConsoleCommand("cl_ejectbrass", 1)
  3241. RunConsoleCommand("cl_show_splashes", 1)
  3242. RunConsoleCommand("cl_detaildist", 1200)
  3243. --RunConsoleCommand("mat_fastnobump", 0)
  3244. RunConsoleCommand("mat_filterlightmaps", 1)
  3245. RunConsoleCommand("r_threaded_renderables", 0)
  3246. RunConsoleCommand("r_threaded_client_shadow_manager", 0)
  3247. --RunConsoleCommand("mat_filtertextures", 1)
  3248. RunConsoleCommand("r_drawflecks", 1)
  3249. RunConsoleCommand("r_WaterDrawRefraction", 0)
  3250. --RunConsoleCommand("mat_showlowresimage", 0)
  3251. RunConsoleCommand("r_dynamic", 1)
  3252. for k,v in pairs(removes) do
  3253. for a,b in pairs(ents.FindByClass(v)) do
  3254. b:SetNoDraw(false)
  3255. end
  3256. end
  3257. end
  3258. concommand.Add("ax_resetlag", Reset)
  3259.  
  3260. -- Crosshair
  3261.  
  3262. CreateClientConVar("ax_advcrosshair", 1, true, false)
  3263. CreateClientConVar("ax_advcrosshair_hitmarker", 1, true, false)
  3264. CreateClientConVar("ax_advcrosshair_info", 1, true, false)
  3265.  
  3266.  
  3267. function advcrosshair()
  3268. if GetConVarNumber("ax_advcrosshair") == 1 then
  3269. local x = ScrW()*.5
  3270. local y = ScrH()*.5
  3271. target = LocalPlayer():GetEyeTrace().Entity
  3272. if LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() and (target:IsPlayer() or target:IsNPC()) then
  3273. crosscolor = Color(220,60,90, 150)
  3274. surface.SetDrawColor(crosscolor)
  3275. if GetConVarNumber("ax_advcrosshair_info") == 1 then
  3276. draw.DrawText("Heath: "..target:Health(), "Trebuchet18", x, y +25, Color(255,255,255, 150), 1)
  3277.  
  3278. end
  3279. if GetConVarNumber("ax_advcrosshair_hitmarker") == 1 then
  3280. if LocalPlayer():KeyDown(IN_ATTACK) and LocalPlayer():GetActiveWeapon():Clip1() > 0 then
  3281. surface.SetDrawColor(255,255,255)
  3282. surface.DrawLine(x+15, y+15, x+8, y+8)
  3283. surface.DrawLine(x-15, y-15, x-8, y-8)
  3284. surface.DrawLine(x-15, y+15, x-8, y+8)
  3285. surface.DrawLine(x+15, y-15, x+8, y-8)
  3286. end
  3287. end
  3288.  
  3289. else
  3290. crosscolor = Color(255,255,255, 150)
  3291. end
  3292.  
  3293. /*for _, v in pairs(player.GetAll()) do
  3294. vtarget = v:GetEyeTrace().Entity
  3295. if vtarget:IsPlayer() then
  3296. if LocalPlayer():Alive() and v:GetActiveWeapon():Clip1() > 0 then
  3297. if vtarget:Name() == LocalPlayer():Name() then
  3298. draw.DrawText(vtarget:Name().." is aiming a weapon at you", "Trebuchet18", x, y +35, Color(255,255,255, 150), 1)
  3299. end
  3300. end
  3301. end
  3302. end*/
  3303.  
  3304.  
  3305.  
  3306. surface.SetDrawColor(crosscolor)
  3307. local gap = 15
  3308. local length = gap + 10
  3309. surface.DrawLine( x - length, y, x - gap, y )
  3310. surface.DrawLine( x + length, y, x + gap, y )
  3311. surface.DrawLine( x, y - length, x, y - gap )
  3312. surface.DrawLine( x, y + length, x, y + gap )
  3313. surface.SetDrawColor(0, 255, 0)
  3314. surface.DrawLine( x +2 , y, x -2, y)
  3315. surface.DrawLine( x , y +2, x , y-2)
  3316. end
  3317. end
  3318. hook.Add("HUDPaint", "advcrosshair", advcrosshair)
  3319.  
  3320. local ax = { Menu = { t = {}; b = {}; c = 0;}; Alive = {}; Spectators = {};}
  3321. local snoweps = "weapon_physgun"
  3322. // Laser Sight \\
  3323. function ax.Barrel( )
  3324. if GetConVarNumber( "ax_removelaser" ) >= 1 then return end
  3325. local ViewModel = LocalPlayer():GetViewModel()
  3326. local Attach = ViewModel:LookupAttachment( '1' )
  3327. if( !LocalPlayer():Alive() || LocalPlayer():GetActiveWeapon() == NULL ) then return; end
  3328. if ( Attach == 0 ) then Attach = ViewModel:LookupAttachment( 'muzzle' ) end
  3329. if LocalPlayer():GetActiveWeapon():GetClass() == snoweps then
  3330. -- //if( !table.HasValue( LaserSightAllowed, LocalPlayer():GetActiveWeapon():GetClass() ) ) then return; end
  3331. cam.Start3D( EyePos(), EyeAngles() )
  3332. render.SetMaterial(Material("sprites/physbeam"))
  3333. render.DrawBeam( ViewModel:GetAttachment( Attach ).Pos, LocalPlayer():GetEyeTrace().HitPos, 5, 0, 0, Color(50, 255, 50, 255) )
  3334. local Size = math.random() * 1.35
  3335. render.SetMaterial(Material("sprites/redglow1"))
  3336. render.DrawQuadEasy(LocalPlayer():GetEyeTrace().HitPos, (EyePos() - LocalPlayer():GetEyeTrace().HitPos):GetNormal(), 30, 30, Color(235,80,80,235) )
  3337. cam.End3D()
  3338. else
  3339.  
  3340. end
  3341. end
  3342. hook.Add( 'HUDPaint', '\2\3', ax.Barrel )
  3343.  
  3344. CreateClientConVar( "ax_removelaser", 0, true, false )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement