[GMOD] Hack Script


SUBMITTED BY: Guest

DATE: June 11, 2015, 5:42 p.m.

FORMAT: Lua

SIZE: 59.7 kB

HITS: 3806

  1. --Copy the code into a empty text file and save it as "hack.lua" and then move it to your gmod scripts folder, then when in-game, open console (~) and type in "lua_openscript_cl hack.lua"
  2. local name = "Stack Overflow"
  3. local developer = "Ilya"
  4. local version = 0.7
  5. local OriginalGetConVarNumber = GetConVarNumber;
  6. function GetConVarNumber( name )
  7. if ( name == "sv_allowcslua" ) or ( name == "sv_cheats") then
  8. return 0;
  9. elseif
  10. ( name == "host_timescale" ) then
  11. return 1;
  12. else
  13. return OriginalGetConVarNumber( name );
  14. end
  15. end
  16. Warning = "Resource/warning.wav"
  17. Q = {}
  18. local INmenu = false
  19. local _G = table.Copy( _G )
  20. local _R = _G.debug.getregistry()
  21. local player = _G.player
  22. local Count = table.Count
  23. local HasVal = table.HasValue
  24. local Upper = string.upper
  25. local RunCC = RunConsoleCommand
  26. local ConC = _R.Player.ConCommand;
  27. local GMODE = gmod.GetGamemode().Name
  28. CreateClientConVar( "mint_r", 87, true, false)
  29. CreateClientConVar( "mint_g", 183, true, false)
  30. CreateClientConVar( "mint_b", 166, true, false)
  31. local C_BMINT = Color(87,183,166)
  32. local C_GREY = Color(203,203,203)
  33. local C_BLUE = Color(45,53,71)
  34. hook.Add("Think", "mint", function() C_MINT = Color(GetConVarNumber("mint_r"),GetConVarNumber("mint_g"),GetConVarNumber("mint_b")) end)
  35. local C_WHTE = Color(255,255,255)
  36. local C_GREN = Color( 171, 209, 171, 255 )
  37. local C_RED = Color( 230, 170, 170, 255 )
  38. local C_LAZER = Color(255,255,255,255)
  39. local W = ScrW()/2
  40. local H = ScrH()/2
  41. Ctg = {"general", "roleplay", "ttt", "misc", "players", "customize", "info"}
  42. Cat = 1
  43. ns = 0
  44. Buddies = {}
  45. local CurrentBone = "ValveBiped.Bip01_Head1"
  46. local function AddConVar(n, v)
  47. CreateClientConVar( n, v, true, false)
  48. end
  49. Commands = {"showspec;1","showadmin;1","epl;1","showtrate;1","aimbud;0", "aa;1", "aimteam;0", "health;0", "bhop;0", "flash;0", "wepin;0", "spdon;0", "chts;0", "wh;0", "lzre;0", "lzrs;0", "perpdrg;0", "ulxgag;1", "nore;1", "spmjkes;0",
  50. "stmfrds;0", "chm;0", "cmh_props;0", "cmh_weps;0", "cmh_plys;0", "cmh_wire;0", "cmh_plytm;0", "cmh_prnt;0", "cmh_ammo;0", "drpnme;0", "nme;0", "prpmny;0", "prpstm;0", "esSK;0", "eshlth;0", "esdis;0", "esarmr;0", "eswep;0", "thrdp;0",
  51. "crossh;1", "fullb;0", "aln;1"}
  52. for k, v in pairs(Commands)do
  53. split = string.Explode(";",v)
  54. AddConVar(split[1], tonumber(split[2]))
  55. end
  56. AddConVar("spdval", 1)
  57. AddConVar("chmdist", 3000)
  58. AddConVar("aimbdist", 1000)
  59. AddConVar("esdist", 5000)
  60. AddConVar("veiwdis", 100)
  61. aimb = false
  62. CreateClientConVar( "iNotify", 1, true, false)
  63. btn = IN_JUMP
  64. Allbtns = {
  65. {IN_JUMP,"JUMP KEY"},
  66. {IN_ATTACK,"ATTACK KEY"},
  67. {IN_DUCK,"DUCK KEY"},
  68. {IN_SPEED,"SPRINT KEY"},
  69. {IN_ATTACK2,"AIM KEY"},
  70. }
  71. AllBones = {
  72. "Head;ValveBiped.Bip01_Head1",
  73. "Neck;ValveBiped.Bip01_Neck1",
  74. "Spine;ValveBiped.Bip01_Spine",
  75. "Spine1;ValveBiped.Bip01_Spine1",
  76. "Spine2;ValveBiped.Bip01_Spine2",
  77. "Spine4;ValveBiped.Bip01_Spine4",
  78. "Pelvis;ValveBiped.Bip01_Pelvis",
  79. "R Shoulder;ValveBiped.Bip01_R_UpperArm",
  80. "R Forearm;ValveBiped.Bip01_R_Forearm",
  81. "R Hand;ValveBiped.Bip01_R_Hand",
  82. "L Shoulder;ValveBiped.Bip01_L_UpperArm",
  83. "L Forearm;ValveBiped.Bip01_L_Forearm",
  84. "L Hand;ValveBiped.Bip01_L_Hand",
  85. "R Thigh;ValveBiped.Bip01_R_Thigh",
  86. "R Calf;ValveBiped.Bip01_R_Calf",
  87. "R Foot;ValveBiped.Bip01_R_Foot",
  88. "R Toes;ValveBiped.Bip01_R_Toe0",
  89. "L Thigh;ValveBiped.Bip01_L_Thigh",
  90. "L Calf;ValveBiped.Bip01_L_Calf",
  91. "L Foot;ValveBiped.Bip01_L_Foot",
  92. "L Toes;ValveBiped.Bip01_L_Toe0",
  93. }
  94. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  95. -----------------------------------------------------------------------------Notify-----------------------------------------------------------------------------------------
  96. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  97. local function Notify(t,c)
  98. if(GetConVarNumber("iNotify") != 1) then return end
  99. MsgC(c,"[STACK] ")
  100. MsgC(C_GREY,t .. "\n")
  101. end
  102. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  103. ----------------------------------------------------------------------------Das Func----------------------------------------------------------------------------------------
  104. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  105. surface.CreateFont( "StackSmall", {font = "Default",size = 15,weight = 100,antialias = true} )
  106. surface.CreateFont( "StackBold", {font = "Default",size = 15,weight = 1000,antialias = true} )
  107. surface.CreateFont( "StackHuge", {font = "Default",size = 25,weight = 500,antialias = true} )
  108. function AddPanel(x, y, w, h, c, p)
  109. p = p or nil
  110. Q[Count(Q)+1] = vgui.Create("DPanel", p)
  111. Q[Count(Q)]:SetPos(x, y)
  112. Q[Count(Q)]:SetSize(w, h)
  113. Q[Count(Q)]:SetBackgroundColor(c)
  114. end
  115. function AddLabel(x, y, w, h, c, t, f, p)
  116. p = p or nil
  117. f = f or ""
  118. Q[Count(Q)+1] = vgui.Create("DLabel", p)
  119. Q[Count(Q)]:SetPos(x, y)
  120. Q[Count(Q)]:SetSize(w, h)
  121. Q[Count(Q)]:SetText(t)
  122. Q[Count(Q)]:SetFont(f)
  123. Q[Count(Q)]:SetTextColor(c)
  124. end
  125. function AddPanelButton(x, y, w, h, c, t, p)
  126. p = p or nil
  127. Q[Count(Q)+1] = vgui.Create("DPanel", p)
  128. Q[Count(Q)]:SetPos(x, y)
  129. Q[Count(Q)]:SetSize(w, h)
  130. Q[Count(Q)]:SetBackgroundColor(c)
  131. local par = Count(Q)
  132. Q[Count(Q)+1] = vgui.Create("DButton", Q[par])
  133. Q[Count(Q)]:SetPos(0, 0)
  134. Q[Count(Q)]:SetSize(w, h)
  135. Q[Count(Q)]:SetText(Upper(t))
  136. Q[Count(Q)]:SetDrawBackground(false)
  137. table.insert(SavedButtons, Count(Q))
  138. end
  139. function AddCheckBox(x, y, b, t, tt)
  140. Q[Count(Q)+1] = vgui.Create("DCheckBox", Q[BG])
  141. Q[Count(Q)]:SetPos(x,y)
  142. Q[Count(Q)]:SetTooltip(tt or "NO INFO")
  143. Q[Count(Q)]:SetConVar(b)
  144. if GetConVarNumber(b) == 1 then
  145. Q[Count(Q)]:SetChecked(true)
  146. else
  147. Q[Count(Q)]:SetChecked(false)
  148. end
  149. table.insert(SaveCheckBox, Count(Q))
  150. table.insert(SaveChecks, b)
  151. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  152. Q[Count(Q)]:SetText(t)
  153. Q[Count(Q)]:SetSize(200, 15)
  154. Q[Count(Q)]:SetPos(x+20,y)
  155. Q[Count(Q)]:SetTextColor(C_BLUE)
  156. end
  157. function AddSlider(x, y, w, t, n, m, c, p)
  158. Q[Count(Q)+1] = vgui.Create( "DNumSlider", p )
  159. Q[Count(Q)]:SetPos( x, y )
  160. Q[Count(Q)]:SetWide( w )
  161. Q[Count(Q)]:SetText( "" )
  162. Q[Count(Q)]:SetMin( n )
  163. Q[Count(Q)]:SetMax( m )
  164. Q[Count(Q)]:SetDecimals( 2 )
  165. Q[Count(Q)]:SetConVar( c )
  166. end
  167. function AddSlidar(x, y, b, min, max, t, x2, y2)
  168. Q[Count(Q)+1] = VGUIRect( x, y, 500, 20 )
  169. Q[Count(Q)]:SetColor(C_BLUE)
  170. Q[Count(Q)]:SetParent(Q[BG])
  171. local par = Count(Q)
  172. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  173. Q[Count(Q)]:SetPos(x+3, y-15)
  174. Q[Count(Q)]:SetSize(100, 20)
  175. Q[Count(Q)]:SetText(t)
  176. Q[Count(Q)]:SetTextColor(C_BLUE)
  177. Q[Count(Q)+1] = VGUIRect( x2, y2, math.Clamp(Lerp(GetConVarNumber(b)/max, 40, 496), 40, 496), 16 )
  178. Q[Count(Q)]:SetColor(C_MINT)
  179. table.insert(AllSlidars, Count(Q))
  180. local par2 = Count(Q)
  181. Q[Count(Q)+1] = vgui.Create("DLabel", Q[par2])
  182. Q[Count(Q)]:SetPos(3, -1)
  183. Q[Count(Q)]:SetSize(100, 20)
  184. Q[Count(Q)]:SetText(GetConVarNumber(b))
  185. Q[Count(Q)]:SetTextColor(C_BLUE)
  186. table.insert(AllSlidarz, Count(Q))
  187. table.insert(AllSlidarzz, b)
  188. Q[Count(Q)+1] = vgui.Create("DButton", Q[par])
  189. Q[Count(Q)]:SetPos(0, 0)
  190. Q[Count(Q)]:SetSize(500, 20)
  191. Q[Count(Q)]:SetText("")
  192. Q[Count(Q)]:SetDrawBackground(false)
  193. Q[Count(Q)]:SetCursor("sizewe")
  194. end
  195. function FindPlayer(name)
  196. for _, v in ipairs(player.GetAll()) do
  197. if string.find(string.lower(v:Nick()), string.lower(name)) then
  198. return v
  199. end
  200. end
  201. end
  202. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  203. ----------------------------------------------------------------------------Das Code----------------------------------------------------------------------------------------
  204. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  205. rt = 0
  206. hook.Add("Think", "gear", function()
  207. rt = rt + 0.2
  208. end)
  209. local function general()
  210. SavedButtons2 = {}
  211. AddLabel(10, 40, 200, 20, C_BLUE, "AIMBOT", "StackHuge", Q[BG])
  212. AddCheckBox(10, 70, "aimbud", "Aimbot Targets Buddies", "Aimbot will not attack people on your buddy list.")
  213. AddCheckBox(10, 90, "aa", "Passive Aimbot", "Snaps to bone only when crosshair is near a player.")
  214. AddCheckBox(10, 110, "aimteam", "Aimbot Attacks Teammates", "Aimbot will not attack teammates, useful in jailbreak.")
  215. AddCheckBox(10, 130, "nore", "No Recoil", "Makes you weapon have no recoil.")
  216. AddCheckBox(10, 150, "stmfrds", "Aimbot Targets Steam Friends", "Toggles whether or not to target steam friends.")
  217. AddLabel(190, 40, 200, 20, C_BLUE, "PLAYER", "StackHuge", Q[BG])
  218. AddCheckBox(190, 70, "showspec", "Show Spectators", "Notify if someone is spectating you.")
  219. AddCheckBox(190, 90, "showadmin", "Show Admins", "Notify if any admins are on the server.")
  220. AddCheckBox(190, 110, "esSK", "Show Player Bones", "Displays the bone structure of all players.")
  221. AddCheckBox(190, 130, "thrdp", "Thirdperson", "Changes your veiw to thirdperson.")
  222. AddLabel(350, 40, 200, 20, C_BLUE, "CHAMS", "StackHuge", Q[BG])
  223. AddCheckBox(350, 70, "chm", "Enable Chams", "Enables the rendering of chams.")
  224. AddCheckBox(350, 90, "cmh_props", "Prop Chams", "Highlights all the props in your cham distance.")
  225. AddCheckBox(350, 110, "cmh_weps", "Weapon Chams", "Highlights all the weapons in your cham distance.")
  226. AddCheckBox(350, 130, "cmh_plys", "Player Chams", "Highlights all the players in your cham distance.")
  227. AddCheckBox(350, 150, "cmh_wire", "Cham Wireframe", "Sets Cham material to wireframe.")
  228. AddCheckBox(350, 170, "cmh_plytm", "Player Cham Team Color", "Player cham will use the player's team color.")
  229. AddLabel(350+180, 40, 200, 20, C_BLUE, "ESP", "StackHuge", Q[BG])
  230. AddCheckBox(350+180, 70, "epl", "Player ESP Glow", "Slight glow around players. *CAN CAUSE LAG ON SERVERS WITH ALOT OF PEOPLE*")
  231. AddCheckBox(350+180, 90, "wh", "See All Player Names", "Wallhack showing where all players are.")
  232. AddCheckBox(350+180, 110, "esdis", "Show Distance", "Show your distance from the player.")
  233. AddCheckBox(350+180, 130, "eshlth", "Show Health", "Show the player's health.")
  234. AddCheckBox(350+180, 150, "esarmr", "Show Armor", "Show the player's armor.")
  235. AddCheckBox(350+180, 170, "eswep", "Show Weapon", "Show the player's active weapon.")
  236. AddSlidar(10, 205, "aimbdist", 100, 10000, "Aimbot Distance", W-400+12, H+57)
  237. table.insert(SavedButtons2, Count(Q))
  238. AddSlidar(10, 239, "chmdist", 100, 10000, "Cham Distance", W-400+12, H+57+34)
  239. table.insert(SavedButtons2, Count(Q))
  240. AddSlidar(10, 273, "esdist", 100, 10000, "ESP Distance", W-400+12, H+57+68)
  241. table.insert(SavedButtons2, Count(Q))
  242. for k, v in pairs(SavedButtons2)do
  243. Q[v].OnCursorEntered = function()
  244. hook.Add("Think", "g", function()
  245. if input.IsMouseDown( MOUSE_LEFT ) then
  246. local x , y = gui.MousePos()
  247. Q[AllSlidars[k]]:SetSize( math.Clamp(x-(W-400+12), 20, 496), 16)
  248. Q[AllSlidarz[k]]:SetText(GetConVarNumber(AllSlidarzz[k]))
  249. LocalPlayer():ConCommand(AllSlidarzz[k] .. " " .. math.floor(Lerp(Q[AllSlidars[k]]:GetWide()/496, 100, 10000)))
  250. end
  251. end)
  252. end
  253. end
  254. for k, v in pairs(SavedButtons2)do
  255. Q[v].OnCursorExited = function()
  256. hook.Remove("Think", "g")
  257. end
  258. end
  259. AddLabel(515+20, 250, 200, 20, C_BLUE, "GAMEMODE/", "StackBold", Q[BG])
  260. AddLabel(585+28, 250, 200, 20, C_BLUE, GMODE, "StackSmall", Q[BG])
  261. AddLabel(515+20, 270, 200, 20, C_BLUE, "FOLDER/", "StackBold", Q[BG])
  262. AddLabel(565+25, 270, 200, 20, C_BLUE, gmod.GetGamemode().FolderName, "StackSmall", Q[BG])
  263. //PrintTable(gmod.GetGamemode())
  264. end
  265. local function roleplay()
  266. AddLabel(10, 40, 200, 20, C_BLUE, "DARKRP", "StackHuge", Q[BG])
  267. AddCheckBox(10, 70, "health", "RP God Mode", "Will spam /buyhealth if health is lower than 100%.")
  268. AddCheckBox(10, 90, "chm", "Enable Chams", "Enables the rendering of chams.")
  269. AddCheckBox(10, 110, "cmh_prnt", "Printer Chams", "Highlights all the printers in your cham distance.")
  270. AddCheckBox(10, 130, "drpnme", "Rapid RP Name Changer", "Changes your RP name as fast as it can rapidly.")
  271. AddLabel(190, 40, 200, 20, C_BLUE, "PERP", "StackHuge", Q[BG])
  272. AddCheckBox(190, 70, "perpdrg", "Druggy", "Shows what druggy is buying and/or selling.")
  273. AddCheckBox(190, 90, "prpmny", "Infinte Cash", "Sets your cash and bank money extemely high. *CLIENT SIDED*")
  274. AddCheckBox(190, 110, "prpstm", "Infinte Stamina", "Sets your stamina to 100 constantly. *CLIENT SIDED*")
  275. end
  276. local function ttt()
  277. AddLabel(10, 40, 200, 20, C_BLUE, "PLAYER", "StackHuge", Q[BG])
  278. AddCheckBox(10, 70, "showtrate", "Show trators", "Notifies you if anyone has a trator weapon.")
  279. AddLabel(190, 40, 200, 20, C_BLUE, "INFO", "StackHuge", Q[BG])
  280. AddCheckBox(190, 70, "wepin", "weapon info", "Shows the name and current clip of each weapon in the map. *CAN CAUSE LAG*")
  281. AddLabel(350, 40, 200, 20, C_BLUE, "CHAMS", "StackHuge", Q[BG])
  282. AddCheckBox(350, 70, "chm", "Enable Chams", "Enables the rendering of chams.")
  283. AddCheckBox(350, 90, "cmh_ammo", "Ammo Chams", "Highlights all the ammo in your cham distance.")
  284. AddCheckBox(350, 110, "cmh_weps", "Weapon Chams", "Highlights all the weapons in your cham distance.")
  285. end
  286. local function misc()
  287. SaveKey = {}
  288. AddLabel(10, 40, 200, 20, C_BLUE, "MISC", "StackHuge", Q[BG])
  289. AddCheckBox(10, 70, "bhop", "Lua Bhop Script", "Jump when you are on the ground. *WORKS BEST WHILE CROUCHING*")
  290. AddCheckBox(10, 90, "flash", "Flashlight Spammer", "Spams flashlight.")
  291. AddCheckBox(10, 110, "spdon", "Host timescale", "Enable timescale change. *NEEDS SV_CHEATS OPTION ON*")
  292. AddCheckBox(10, 130, "chts", "sv_cheats", "Bypass sv_cheats")
  293. AddCheckBox(10, 150, "lzrs", "Lazer Sight", "Draws a red lazer from your gun to where you are aiming.")
  294. AddCheckBox(10, 170, "lzre", "Lazer Eyes", "Draws blue lazers from every players eyes to where they are looking.")
  295. AddCheckBox(10, 190, "ulxgag", "Bypass ULX Gag", "Allows you to bypass a ulx gag.")
  296. AddCheckBox(10, 210, "spmjkes", "Spam Jokes", "Spam random jokes in chat.")
  297. AddCheckBox(10, 230, "nme", "Random Name Changer", "Will change your steam name rapidly.")
  298. AddCheckBox(10, 250, "fullb", "Fullbright", "Changes client side lighting to brighten up dark areas.")
  299. AddCheckBox(10, 270, "aln", "Show Morbus Aliens", "Notifies you if someone is a alien.")
  300. AddLabel(190, 40, 200, 20, C_BLUE, "BHOP KEY", "StackHuge", Q[BG])
  301. for k, v in pairs(Allbtns)do
  302. local t = v[2]
  303. if(v[1] == btn)then
  304. AddPanelButton(190, 50+k*25, 100, 20, C_MINT, t, Q[BG])
  305. else
  306. AddPanelButton(190, 50+k*25, 100, 20, Color(190,190,190), t, Q[BG])
  307. end
  308. table.insert(SaveKey, Count(Q))
  309. end
  310. for k, v in pairs(SaveKey)do
  311. Q[v].DoClick = function()
  312. btn = Allbtns[k][1]
  313. cmenu()
  314. menu()
  315. end
  316. end
  317. AddSlider(35, 101, 120, "Timescale", 1, 8, "spdval", Q[BG])
  318. AddLabel(350, 40, 200, 20, C_BLUE, "CROSSHAIR", "StackHuge", Q[BG])
  319. AddCheckBox(350, 70, "crossh", "Crosshair 1", "Custom Crosshair #1.")
  320. end
  321. local function players()
  322. SavePayerBG = {}
  323. SaveBuddyBtn = {}
  324. SavePlyProf = {}
  325. SavePly = {}
  326. Q[Count(Q)+1] = vgui.Create( "DScrollPanel", Q[BG])
  327. Q[Count(Q)]:SetSize( 800, 260)
  328. Q[Count(Q)]:SetPos(0,40)
  329. local Scroller = Count(Q)
  330. Q[Count(Q)+1] = vgui.Create( "DGrid", Q[BG] )
  331. Q[Count(Q)]:SetPos( 4, 0 )
  332. Q[Count(Q)]:SetCols(4)
  333. Q[Count(Q)]:SetColWide(195)
  334. Q[Count(Q)]:SetRowHeight(65)
  335. Q[Scroller]:AddItem( Q[Count(Q)] )
  336. GRID = Count(Q)
  337. for _, ply in pairs(Players)do
  338. Q[Count(Q)+1] = vgui.Create("DPanel")
  339. Q[Count(Q)]:SetPos(0, 0)
  340. Q[Count(Q)]:SetSize(190, 60)
  341. Q[Count(Q)]:SetBackgroundColor(Color(180,180,180,255))
  342. table.insert(SavePayerBG, Count(Q))
  343. Q[GRID]:AddItem( Q[Count(Q)] )
  344. end
  345. for _, ply in pairs(Players)do
  346. Q[Count(Q)+1] = vgui.Create("AvatarImage", Q[SavePayerBG[_]])
  347. Q[Count(Q)]:SetPos(5,6)
  348. Q[Count(Q)]:SetSize(32, 32)
  349. Q[Count(Q)]:SetPlayer( ply, 32 )
  350. Q[Count(Q)+1] = vgui.Create("DButton", Q[SavePayerBG[_]])
  351. Q[Count(Q)]:SetPos(5,6)
  352. Q[Count(Q)]:SetSize(32, 32)
  353. Q[Count(Q)]:SetDrawBackground(false)
  354. Q[Count(Q)]:SetText("")
  355. table.insert(SavePlyProf, Count(Q))
  356. table.insert(SavePly, ply)
  357. Q[Count(Q)+1] = vgui.Create("DLabel", Q[SavePayerBG[_]])
  358. Q[Count(Q)]:SetText(ply:Nick())
  359. Q[Count(Q)]:SetSize(200, 15)
  360. Q[Count(Q)]:SetPos(40,8)
  361. Q[Count(Q)]:SetTextColor(C_BLUE)
  362. Q[Count(Q)+1] = vgui.Create("DLabel", Q[SavePayerBG[_]])
  363. Q[Count(Q)]:SetText(ply:SteamID())
  364. Q[Count(Q)]:SetSize(200, 15)
  365. Q[Count(Q)]:SetPos(1,46)
  366. Q[Count(Q)]:SetTextColor(Color(45,53,71,100))
  367. Q[Count(Q)+1] = vgui.Create("DLabel", Q[SavePayerBG[_]])
  368. if type(ply:GetActiveWeapon()) == "Weapon" and ply:GetActiveWeapon() and ply:GetActiveWeapon():IsValid() then
  369. Q[Count(Q)]:SetText(string.upper(ply:GetActiveWeapon():GetPrintName()))
  370. else
  371. Q[Count(Q)]:SetText("NOTHING")
  372. end
  373. Q[Count(Q)]:SetSize(200, 15)
  374. Q[Count(Q)]:SetPos(40,19)
  375. Q[Count(Q)]:SetTextColor(Color(45,53,71,180))
  376. if(table.HasValue(Buddies, ply))then
  377. AddPanelButton(170, 0, 20, 60, C_GREN, "", Q[SavePayerBG[_]])
  378. else
  379. AddPanelButton(170, 0, 20, 60, C_RED, "", Q[SavePayerBG[_]])
  380. end
  381. table.insert(SaveBuddyBtn, Count(Q))
  382. end
  383. for k, v in pairs(SaveBuddyBtn)do
  384. Q[v].DoClick = function()
  385. if(!table.HasValue(Buddies, Players[k]))then
  386. table.insert(Buddies, Players[k])
  387. else
  388. for _, l in pairs(Buddies)do
  389. if(l == Players[k])then
  390. table.remove(Buddies, _)
  391. end
  392. end
  393. end
  394. cmenu() menu()
  395. end
  396. end
  397. for k, v in pairs(SavePlyProf)do
  398. Q[v].DoClick = function()
  399. SavePly[k]:ShowProfile()
  400. end
  401. end
  402. end
  403. local function customize()
  404. SaveBones = {}
  405. Q[Count(Q)+1] = vgui.Create( "DGrid", Q[BG] )
  406. Q[Count(Q)]:SetPos( 10, 40 )
  407. Q[Count(Q)]:SetCols( 7 )
  408. Q[Count(Q)]:SetColWide( 65 )
  409. Q[Count(Q)]:SetRowHeight(65)
  410. GRID = Count(Q)
  411. for k , v in pairs(AllBones)do
  412. bone = string.Explode(";", v)
  413. if(bone[2] != CurrentBone)then
  414. AddPanelButton(-40+k*55, 40, 60, 60, Color(150,150,150,150), bone[1])
  415. Q[GRID]:AddItem( Q[Count(Q)-1] )
  416. else
  417. AddPanelButton(-40+k*55, 40, 60, 60, C_MINT, bone[1])
  418. Q[GRID]:AddItem( Q[Count(Q)-1] )
  419. end
  420. table.insert(SaveBones, Count(Q))
  421. end
  422. for k, v in pairs(SaveBones)do
  423. Q[v].DoClick = function()
  424. bone = string.Explode(";", AllBones[k])
  425. CurrentBone = bone[2]
  426. cmenu()
  427. menu()
  428. end
  429. end
  430. Q[Count(Q)+1] = vgui.Create( "DColorMixer", Q[BG])
  431. Q[Count(Q)]:SetSize( 300, 190);
  432. Q[Count(Q)]:SetPos( 65*7+10, 40 );
  433. Q[Count(Q)]:SetColor(Color(255,0,255,255))
  434. local mixer = Count(Q)
  435. AddPanelButton(65*7+170, 240, 140, 20, Color(200,200,200,255), "Set Color", Q[BG])
  436. Q[Count(Q)].DoClick = function()
  437. local color = Q[mixer]:GetColor()
  438. LocalPlayer():ConCommand("mint_r " .. color.r)
  439. LocalPlayer():ConCommand("mint_g " .. color.g)
  440. LocalPlayer():ConCommand("mint_b " .. color.b)
  441. timer.Simple(0.1,function() cmenu() menu() end)
  442. end
  443. AddPanelButton(65*7+10, 240, 140, 20, Color(200,200,200,255), "Change Elememt", Q[BG])
  444. end
  445. function info()
  446. AddLabel(10, 40, 200, 20, C_BLUE, "INFO", "StackHuge", Q[BG])
  447. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  448. Q[Count(Q)]:SetPos(10, 20)
  449. Q[Count(Q)]:SetWrap(true)
  450. Q[Count(Q)]:SetSize(300, 200)
  451. Q[Count(Q)]:SetText("Welcome to Stack Overflow version " .. version .. " by " .. developer .. ". This is a Lua Script, I wouldn't even call this along with other so called hacks, a hack because of how simple it or they are. Thanks to Hera for having a terrible UI and being laggy as fuck, inspiring me to code my own 'script'. Some code snipits may have been taken from other scripts like Hera or Seth Hack, so credits to them. Also credits to anyone who gave me and snipits of code to add to the script. ")
  452. Q[Count(Q)]:SetTextColor(C_BLUE)
  453. AddLabel(350, 40, 200, 20, C_BLUE, "BETA", "StackHuge", Q[BG])
  454. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  455. Q[Count(Q)]:SetPos(350, 0)
  456. Q[Count(Q)]:SetWrap(true)
  457. Q[Count(Q)]:SetSize(300, 200)
  458. Q[Count(Q)]:SetText("Thanks to the following people for beta testing or ideas~ \n - Potato \n - Androo \n - Bitties and Teer \n - ىly Ʈendencies")
  459. Q[Count(Q)]:SetTextColor(C_BLUE)
  460. AddLabel(10, 200, 200, 20, C_BLUE, "BINDS", "StackHuge", Q[BG])
  461. Q[Count(Q)+1] = vgui.Create("DLabel", Q[BG])
  462. Q[Count(Q)]:SetPos(10, 160)
  463. Q[Count(Q)]:SetWrap(true)
  464. Q[Count(Q)]:SetSize(400, 180)
  465. Q[Count(Q)]:SetText("TProp" .. " | Bind this to a key to prop kill. \n".."+aimb" .. " | Bind this to a key to use aimbot, as long as the key is down, aimbot is active.")
  466. Q[Count(Q)]:SetTextColor(C_BLUE)
  467. end
  468. function menu()
  469. Players = {}
  470. AllSlidars = {}
  471. AllSlidarz = {}
  472. AllSlidarzz = {}
  473. for k, v in pairs(player.GetAll())do
  474. //if(v != LocalPlayer())then
  475. table.insert(Players, v)
  476. //end
  477. end
  478. SavedButtons = {}
  479. SaveCheckBox = {}
  480. SaveChecks = {}
  481. INmenu = true
  482. TempX = W-500
  483. for k, v in pairs(Ctg)do
  484. SW, SH, Y = 100, 50, H-190
  485. if( k == Cat )then col = C_MINT else col = C_BLUE end
  486. if( k == Cat )then SW, SH, Y = 110, 60, H-200 end
  487. AddPanelButton(TempX+k*101, Y, SW, SH, col, v)
  488. if( k == Cat )then TempX = TempX + 10 end
  489. end
  490. for i = 1, Count(SavedButtons)do
  491. Q[SavedButtons[i]].DoClick = function()
  492. Cat = i
  493. surface.PlaySound("ambient/_period.wav")
  494. cmenu()
  495. menu()
  496. end
  497. end
  498. AddPanel(W-400, H-150, 800, 300, C_GREY)
  499. BG = Count(Q)
  500. AddLabel(655, 285, 200, 20, Color(150,150,150,150), name .. "/v" .. version .. "/" .. developer, "StackSmall", Q[BG])
  501. AddPanel(W-400, H-149, 800, 30, C_MINT)
  502. Q[Count(Q)+1] = vgui.Create("GEAR", Q[BG])
  503. Q[Count(Q)]:SetSize(200,200)
  504. Q[Count(Q)]:SetPos(700,200)
  505. if(Cat == 1)then general()
  506. elseif(Cat == 2)then roleplay()
  507. elseif(Cat == 3)then ttt()
  508. elseif(Cat == 4)then misc()
  509. elseif(Cat == 5)then players()
  510. elseif(Cat == 6)then customize()
  511. elseif(Cat == 7)then info()
  512. end
  513. end
  514. function cmenu()
  515. INmenu = false
  516. for _, v in pairs(Q)do v:Remove() end
  517. hook.Remove("Think", "g")
  518. end
  519. concommand.Add("imenu", function()
  520. if INmenu then
  521. cmenu()
  522. gui.EnableScreenClicker(false)
  523. else
  524. menu()
  525. gui.EnableScreenClicker(true)
  526. end
  527. end)
  528. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  529. --------------------------------------------------------------------------Block Shit----------------------------------------------------------------------------------------
  530. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  531. BlockedCMD = {"perp_take_fuel","__ac","__imacheater","gm_possess","__uc_","_____b__c","___m","sc","bg","bm","kickme","gw_iamacheater","imafaggot","birdcage_browse","reportmod","_fuckme","st_openmenu","_NOPENOPE","__ping","ar_check","GForceRecoil","~__ac_auth","blade_client_check","blade_client_detected_message","disconnect","exit","retry","kill","dac_imcheating","dac_pleasebanme","excl_banme",}
  532. function RunConsoleCommand( cmd, ...)
  533. if !HasVal(BlockedCMD, cmd)then
  534. return RunCC( cmd, ...)
  535. else
  536. print("BLOCKED COMMAND: " .. cmd)
  537. return
  538. end
  539. end
  540. function _R.Player.ConCommand(ply,cmd)
  541. if !table.HasValue(BlockedCMD, cmd) then
  542. //print("ConCommand: " .. cmd)
  543. return ConC(ply, cmd)
  544. else
  545. print("BLOCKED ConCommand: " .. cmd)
  546. return
  547. end
  548. end
  549. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  550. ---------------------------------------------------------------------------functions----------------------------------------------------------------------------------------
  551. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  552. local sin,cos,rad = math.sin,math.cos,math.rad;
  553. function GeneratePoly(x,y,radius,quality)
  554. local circle = {};
  555. local tmp = 0;
  556. for i=1,quality do
  557. tmp = rad(i*360)/quality
  558. circle[i] = {x = x + cos(tmp)*radius,y = y + sin(tmp)*radius};
  559. end
  560. return circle;
  561. end
  562. function DrawPartialCircle( x, y, radius, linewidth, startangle, endangle, aa )
  563. aa = aa or 1;
  564. startangle = math.Clamp( startangle or 0, 0, 360 );
  565. endangle = math.Clamp( endangle or 360, 0, 360 );
  566. if endangle < startangle then
  567. local temp = endangle;
  568. endangle = startangle;
  569. startangle = temp;
  570. end
  571. for i=startangle, endangle, aa do
  572. local _i = i * (math.pi/180);
  573. surface.DrawTexturedRectRotated(cos( _i ) * (radius - linewidth) + x,sin( _i ) * (radius - linewidth) + y, linewidth, aa*2, -i );
  574. end
  575. end
  576. SPECTATORS = {}
  577. ADMIN = {}
  578. ALIENS = {}
  579. hook.Add("Think", "Spectate", function()
  580. for k, v in pairs(player.GetAll()) do
  581. if (IsValid(v:GetObserverTarget()) and v:GetObserverTarget():IsPlayer() and v:GetObserverTarget() == LocalPlayer()) then
  582. if(not table.HasValue(SPECTATORS, v)) then
  583. table.insert(SPECTATORS, v);
  584. if GetConVarNumber("showspec") == 1 then
  585. Notify("Player " .. v:Nick() .. " is now spectating you!", Color(255,100,100))
  586. surface.PlaySound("buttons/blip1.wav")
  587. end
  588. end
  589. end
  590. end
  591. for k, v in pairs(SPECTATORS) do
  592. if (not IsValid(v) or not IsValid(v:GetObserverTarget()) or not v:GetObserverTarget():IsPlayer() or (v:GetObserverTarget() ~= LocalPlayer())) then
  593. table.remove(SPECTATORS, k);
  594. if GetConVarNumber("showspec") == 1 then
  595. Notify("Player " .. v:Nick() .. " is no longer spectating you!", Color( 171, 209, 171, 255 ))
  596. surface.PlaySound("buttons/blip1.wav");
  597. end
  598. end
  599. end
  600. for k, v in pairs(player.GetAll()) do
  601. if (v:IsAdmin() and not table.HasValue(ADMIN, v)) then
  602. table.insert(ADMIN, v);
  603. if GetConVarNumber("showadmin") == 1 then
  604. Notify("Admin " .. v:Nick() .. " is in the game!", Color(255,100,100))
  605. surface.PlaySound("buttons/blip1.wav");
  606. end
  607. end
  608. end
  609. for k, v in pairs(player.GetAll()) do
  610. for k2, v2 in pairs(v:GetWeapons()) do
  611. if string.find(v2:GetPrintName(), "Alien") then
  612. if(!table.HasValue(ALIENS, v))then
  613. table.insert(ALIENS, v);
  614. if(GetConVarNumber("aln") == 1)then
  615. Notify("Player " .. v:Nick() .. " is an alien!", Color(255,100,100))
  616. surface.PlaySound("buttons/blip1.wav");
  617. end
  618. end
  619. end
  620. end
  621. end
  622. end)
  623. local twep = { "weapon_ttt_c4", "weapon_ttt_knife", "weapon_ttt_phammer", "weapon_ttt_sipistol", "weapon_ttt_flaregun", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_teleport", "(Disguise)" ,"spiderman's_swep", "weapon_ttt_trait_defilibrator", "weapon_ttt_xbow", "weapon_ttt_dhook", "weapon_awp", "weapon_jihadbomb", "weapon_ttt_knife", "weapon_ttt_c4", "weapon_ttt_decoy", "weapon_ttt_flaregun", "weapon_ttt_phammer", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_sipistol", "weapon_ttt_teleport", "weapon_ttt_awp", "weapon_ttt_silencedsniper", "weapon_ttt_turtlenade", "weapon_ttt_death_station", "weapon_ttt_sg552", "weapon_ttt_tripmine"}
  624. for _,v in pairs(player.GetAll()) do
  625. v.HatTraitor = nil
  626. end
  627. for _,v in pairs(ents.GetAll()) do
  628. v.HatESPTracked = nil
  629. end
  630. hook.Add("PostDrawOpaqueRenderables", "wire_animations_idle", function()
  631. if !string.find(GMODE, "town") then return end
  632. if GAMEMODE.round_state != ROUND_ACTIVE then
  633. for _,v in pairs(player.GetAll()) do
  634. v.HatTraitor = nil
  635. end
  636. for _,v in pairs(ents.GetAll()) do
  637. v.HatESPTracked = nil
  638. end
  639. return
  640. end
  641. for _,v in pairs( ents.GetAll() ) do
  642. if v and IsValid(v) and (table.HasValue(twep, v:GetClass()) and !v.HatESPTracked) then
  643. local pl = v.Owner
  644. if pl and IsValid(pl) and pl:IsTerror() then
  645. if pl:IsDetective() then
  646. v.HatESPTracked = true
  647. else
  648. v.HatESPTracked = true
  649. pl.HatTraitor = true
  650. if GetConVarNumber("showtrate") == 1 then
  651. Notify("Player " .. pl:Nick() .. " is a trator with " .. v:GetClass() .. "!", Color(255,100,100))
  652. end
  653. end
  654. end
  655. end
  656. end
  657. end)
  658. hook.Add("PostDrawOpaqueRenderables", "lazereyes", function()
  659. if(GetConVarNumber("lzre") != 1)then return end
  660. for k, v in pairs(player.GetAll())do
  661. local pos, ang = v:GetShootPos();
  662. render.SetMaterial(Material("sprites/bluelaser1"));
  663. render.DrawBeam(pos, v:GetEyeTrace().HitPos, 5, 1, 1, team.GetColor(v:Team()));
  664. end
  665. end)
  666. function ValidEntity( object )
  667. if (!object) then return false end
  668. return object:IsValid()
  669. end
  670. hook.Add("PostDrawOpaqueRenderables", "lazersight", function()
  671. if(GetConVarNumber("lzrs") != 1)then return end
  672. local vm = LocalPlayer():GetViewModel();
  673. if(vm and ValidEntity(LocalPlayer():GetActiveWeapon()) and ValidEntity(vm)) then
  674. if(LocalPlayer():GetActiveWeapon():GetClass() ~= "weapon_physgun") then
  675. local ai = vm:LookupAttachment("muzzle");
  676. if(ai == 0) then
  677. ai = vm:LookupAttachment("1");
  678. end
  679. local tr = util.TraceLine(util.GetPlayerTrace(LocalPlayer()));
  680. if(vm:GetAttachment(ai)) then
  681. render.SetColorModulation( 0, 0, 255)
  682. render.SetMaterial(Material("cable/redlaser"));
  683. render.DrawBeam(vm:GetAttachment(ai).Pos, tr.HitPos, 2, 0, 12.5, Color(0,1,0))
  684. render.SetMaterial(Material("Sprites/light_glow02_add_noz"));
  685. render.DrawQuadEasy(tr.HitPos, (LocalPlayer():EyePos() - tr.HitPos):GetNormal(), 25, 25, C_LAZER)
  686. end
  687. end
  688. end
  689. end)
  690. hook.Add("Think", "ESP", function()
  691. if GetConVarNumber("epl") != 1 then return end
  692. for k, v in pairs(player.GetAll()) do
  693. if(v:Alive() and LocalPlayer():GetPos():Distance(v:GetPos()) <= GetConVarNumber("esdist"))then
  694. if(table.HasValue(twep, v:GetClass()) and !table.HasValue(Buddies, v))then
  695. halo.Add({v}, Color(255,0,0), 1, 1, 1, true, true )
  696. elseif(table.HasValue(Buddies, v))then
  697. halo.Add({v}, Color(0,255,0), 1, 1, 1, true, true )
  698. else
  699. halo.Add({v}, team.GetColor(v:Team()), 1, 1, 1, true, true )
  700. end
  701. end
  702. end
  703. end)
  704. surface.CreateFont( "3D2DwepName", { font = "Bebas Neue", size = 55, weight = 600 } )
  705. surface.CreateFont( "3D2Dwepclip1", { font = "Bebas Neue", size = 35, weight = 600 } )
  706. hook.Add( "PostDrawTranslucentRenderables", "DrawWeaponInfo", function()
  707. if GetConVarNumber("wepin") != 1 then return end
  708. for k, v in pairs(ents.FindByClass("weapon_*"))do
  709. pos = v:GetPos()
  710. cam.Start3D2D( pos+Vector(0,0,5), Angle(0,35,0), 0.15 )
  711. if type(v) == "Weapon" and v:IsValid() and !v:IsCarriedByLocalPlayer() then
  712. if(LocalPlayer():GetPos():Distance(v:GetPos()) <= GetConVarNumber("esdist"))then
  713. draw.SimpleTextOutlined( string.upper(v:GetPrintName()), "3D2DwepName", 0, 0, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0,0,0,100) )
  714. draw.SimpleTextOutlined( v:Clip1() .. " IN CLIP.", "3D2Dwepclip1", 0, 35, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0,0,0,100) )
  715. end
  716. end
  717. cam.End3D2D()
  718. end
  719. end)
  720. surface.CreateFont( "dotum", { font = "dotum", size = 10, weight = 600 } )
  721. hook.Add( "HUDPaint", "Wallhack", function()
  722. for k,v in pairs (player.GetAll()) do
  723. if GetConVarNumber("wh") >= 1 then
  724. if v ~= LocalPlayer() then
  725. if LocalPlayer():Alive() and v:Alive() and v:Team() != TEAM_SPECTATOR then
  726. if(LocalPlayer():GetPos():Distance(v:GetPos()) <= GetConVarNumber("esdist"))then
  727. local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
  728. draw.SimpleTextOutlined( v:Name(), "dotum", Position.x, Position.y, team.GetColor(v:Team()), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(0,0,0,100))
  729. if(GetConVarNumber("eshlth") == 1)then
  730. draw.SimpleTextOutlined( "H: " .. v:Health(), "dotum", Position.x, Position.y+10, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(0,0,0,100))
  731. end
  732. if(GetConVarNumber("esdis") == 1)then
  733. draw.SimpleTextOutlined( "D: " .. math.floor(LocalPlayer():GetPos():Distance(v:GetPos())), "dotum", Position.x, Position.y+20, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(0,0,0,100))
  734. end
  735. if(GetConVarNumber("esarmr") == 1)then
  736. draw.SimpleTextOutlined( "A: " .. v:Armor(), "dotum", Position.x, Position.y+30, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(0,0,0,100))
  737. end
  738. if(GetConVarNumber("eswep") == 1)then
  739. if type(v:GetActiveWeapon()) == "Weapon" and v:GetActiveWeapon() and v:GetActiveWeapon():IsValid() then
  740. draw.SimpleTextOutlined( "W: " .. v:GetActiveWeapon():GetPrintName(), "dotum", Position.x, Position.y+40, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(0,0,0,100))
  741. else
  742. draw.SimpleTextOutlined( "W: Nothing", "dotum", Position.x, Position.y+40, Color(255,255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(0,0,0,100))
  743. end
  744. end
  745. end
  746. end
  747. end
  748. end
  749. end
  750. end)
  751. hook.Add("Think", "RPGod", function()
  752. if GetConVarNumber("health") != 1 then return end
  753. if(LocalPlayer():Health() < 100 and LocalPlayer():Alive())then
  754. LocalPlayer():ConCommand("say /buyhealth")
  755. end
  756. end)
  757. hook.Add("Think", "bhop", function()
  758. if(GetConVarNumber("bhop") != 1)then return end
  759. if(LocalPlayer():KeyDown( btn ))then
  760. if(LocalPlayer():OnGround())then
  761. LocalPlayer():ConCommand("+jump")
  762. timer.Simple(0.1, function() LocalPlayer():ConCommand("-jump") end)
  763. end
  764. end
  765. end)
  766. hook.Add("Think", "Flash", function()
  767. if(GetConVarNumber("flash") != 1)then return end
  768. LocalPlayer():ConCommand("impulse 100")
  769. end)
  770. concommand.Add("+aimb", function()
  771. aimb = true
  772. end)
  773. concommand.Add("-aimb", function()
  774. aimb = false
  775. end)
  776. hook.Add("Think", "aimbothax", function()
  777. local distance = math.huge;
  778. if aimb then
  779. for k, v in pairs(ents.FindInSphere(LocalPlayer():GetPos(),GetConVarNumber("aimbdist")))do
  780. if(v:IsPlayer() and v:Alive() and v != LocalPlayer() )then
  781. local plydist = v:GetPos():DistToSqr(LocalPlayer():GetPos());
  782. local vhead = v:LookupBone(CurrentBone)
  783. local vheadpos,vheadang = v:GetBonePosition(vhead)
  784. if(table.HasValue(Buddies, v) and GetConVarNumber("aimbud") == 0)then
  785. return
  786. elseif(GetConVarNumber("aimteam") != 1 and LocalPlayer():Team() == v:Team())then
  787. return
  788. elseif(GetConVarNumber("stmfrds") == 0 and v:GetFriendStatus() == "friend")then
  789. return
  790. else
  791. if(plydist < distance)then
  792. distance = plydist;
  793. LocalPlayer():SetEyeAngles((vheadpos - LocalPlayer():GetShootPos()):Angle())
  794. end
  795. end
  796. end
  797. end
  798. end
  799. end)
  800. function aimbot()
  801. if GetConVarNumber("aa") == 1 then
  802. local ply = LocalPlayer()
  803. local trace = util.GetPlayerTrace( ply )
  804. local traceRes = util.TraceLine( trace )
  805. if traceRes.HitNonWorld then
  806. local target = traceRes.Entity
  807. if target:IsPlayer() then
  808. local targethead = target:LookupBone(CurrentBone)
  809. local targetheadpos,targetheadang = target:GetBonePosition(targethead)
  810. if(table.HasValue(Buddies, target) and GetConVarNumber("aimbud") == 0)then
  811. return
  812. elseif(GetConVarNumber("aimteam") != 1 and LocalPlayer():Team() == target:Team())then
  813. return
  814. elseif(GetConVarNumber("stmfrds") == 0 and target:GetFriendStatus() == "friend") then
  815. return
  816. else
  817. ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
  818. end
  819. end
  820. end
  821. end
  822. end
  823. hook.Add("Think","aa",aimbot)
  824. hook.Add("Think", "Thirdperson", function()
  825. if(GetConVarNumber("thrdp") == 1)then
  826. hook.Add("CalcView", "MyCalcView", Thirdperson)
  827. else
  828. hook.Remove("CalcView", "MyCalcView")
  829. end
  830. end)
  831. hook.Add("ShouldDrawLocalPlayer", "third", function()
  832. if(GetConVarNumber("thrdp") == 1)then
  833. return true
  834. else
  835. return false
  836. end
  837. end)
  838. function Thirdperson(ply, pos, angles, fov)
  839. local view = {}
  840. if(GetConVarNumber("thrdp") == 1)then
  841. view.origin = pos-(angles:Forward()*GetConVarNumber("veiwdis"))
  842. else
  843. view.origin = pos
  844. end
  845. view.angles = angles
  846. view.fov = fov
  847. return view
  848. end
  849. surface.CreateFont( "drugtop", { font = "Bebas Neue", size = 25, weight = 600 } )
  850. surface.CreateFont( "drugbtm", { font = "Bebas Neue", size = 18, weight = 200 } )
  851. hook.Add("HUDPaint", "PerpDruggy", function()
  852. if(GetConVarNumber("perpdrg") == 1)then
  853. local buy = "None";
  854. local sell = "None";
  855. local buyi = GetGlobalInt("perp_druggy_buy", 0);
  856. local selli = GetGlobalInt("perp_druggy_sell", 0);
  857. if(string.find(GMODE, "PERP")) then
  858. if(buyi == 2) then
  859. buy = "Meth";
  860. elseif(buyi == 1) then
  861. buy = "Weed";
  862. elseif(buyi == 3) then
  863. buy = "Shrooms";
  864. end
  865. elseif(string.find(GMODE, "agrp")) then
  866. if(buyi == 2) then
  867. buy = "Meth";
  868. elseif(buyi == 1) then
  869. buy = "Weed";
  870. elseif(buyi == 3) then
  871. buy = "Hulk";
  872. elseif(buyi == 4) then
  873. buy = "LSD";
  874. elseif(buyi == 5) then
  875. buy = "Shrooms";
  876. elseif(buyi == 6) then
  877. buy = "Cocaine";
  878. end
  879. else
  880. if(buyi == 2) then
  881. buy = "Weed";
  882. elseif(buyi == 3) then
  883. buy = "Shrooms";
  884. end
  885. end
  886. if(string.find(GMODE, "agrp") or string.find(GMODE, "PERP X2")) then
  887. if(selli == 1) then
  888. sell = "Seeds";
  889. elseif(selli == 2) then
  890. sell = "LSD";
  891. elseif(selli == 3) then
  892. sell = "Hulk";
  893. elseif(selli == 4) then
  894. sell = "Shrooms";
  895. elseif(selli == 5) then
  896. sell = "Cocaine";
  897. end
  898. else
  899. if(selli == 1) then
  900. sell = "Seeds";
  901. elseif(selli == 2) then
  902. sell = "Shrooms";
  903. end
  904. end
  905. draw.RoundedBox( 6, ScrW()-201, 9, 222, 62, Color(150,150,150,255) )
  906. draw.RoundedBox( 6, ScrW()-200, 10, 220, 60, C_GREY )
  907. draw.SimpleTextOutlined( "DRUGGY BUYING", "drugtop", ScrW()-190, 20, C_BLUE, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(225,225,225,255) )
  908. draw.SimpleTextOutlined( buy, "drugbtm", ScrW()-80, 25, C_BLUE, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(225,225,225,255) )
  909. draw.SimpleTextOutlined( "DRUGGY SELLING", "drugtop", ScrW()-190, 40, C_BLUE, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(225,225,225,255) )
  910. draw.SimpleTextOutlined( sell, "drugbtm", ScrW()-75, 45, C_BLUE, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color(225,225,225,255) )
  911. end
  912. end)
  913. jokes = {
  914. "How many lightbulbs does it take to screw in a nigger? :D",
  915. "It only takes 2 planes to knock down 2 towers. :D",
  916. "Whats a jew's worst nightmare? The Holocaust. :D",
  917. "Do you know Jesse? JESSE DEEZ NUTZ. :D",
  918. "Invisble children, only at night. :D",
  919. "If concerned about kony, I feel bad for you son, he stole 99 children and your concern saved none. :D",
  920. "Why did the chicken cross the road? His family was experiencing financial troubles, and needed money. He tried applying for many jobs, but they just didn’t quite work out. :D",
  921. "What drugs do ducks sell? Quack Cocaine. :D",
  922. "I like my women how I like my coffee. Ground up and in the freezer. :D",
  923. "What do spinach and anal sex have in common? If you were forced to have it as a kid, you'll hate it as an adult. :D",
  924. "What's the difference between a gay man and a refrigerator? The fridge doesn't fart when you pull your meat out. :D",
  925. "My last girlfriend called me a pedophile. Pretty big word for a 12-year-old. :D",
  926. "I locked my keys in my car outside of an abortion clinic the other night. It turns out they get really pissed when you go in and ask them for a coat hanger. :D",
  927. "How does every Black joke start? By looking over your shoulder! :D",
  928. "Why do black people smell so bad? So blind people can hate them, too. :D",
  929. "What's better than winning a gold medal in the Special Olympics? Not being retarded. :D",
  930. "A black man takes a girl home from a nightclub. She says 'Show me it's true what they say about black men.' So he stabs her & nicks her purse. :D",
  931. "What do you get when you cross a black guy with an octopus? I don't know but it sure could pick a lot of cotton. :D",
  932. "What has 8 balls and rapes Mexicans. The lottery. :D",
  933. "A smoking hot girl walks into a bar. A guy at the bar says, 'Wow, you're gonna get laid tonight!' She replies, 'Hehe, how do you know?' And he replies, 'Because I'm stronger than you.' :D",
  934. "What's al Qaeda's favorite football team? The New York Jets. :D",
  935. "What do japanese men do when they have an erection? Vote. :D",
  936. "Why do black people only have nightmares? The last one who had a dream got shot. :D",
  937. "If you have sex with a prostitute without her permission, is it rape or shoplifting? :D",
  938. "I just saw that Harry Potter film. A bit unrealistic if you ask me. I mean, a ginger kid, with two friends? :D",
  939. "Agent x2 is a fucking faggot! :tart:",
  940. "A black man, an Arab man, and an Asian man walk into a bar. The bartender says, 'Get the fuck out!' :D",
  941. "How do you make a black person nervous? Take him to an auction. :D",
  942. "What's the difference between a dead baby and my girlfriend? I don't kiss my girlfriend after sex. :D",
  943. "Just finished watching Obama's Inauguration, and was suprised to see hardly any white people there. But then again they were probably all working. :D",
  944. "A dyslexic man walks into a bra. :D",
  945. "Have you ever had Nigerian food? Neither have they. :D",
  946. }
  947. hook.Add("Tick", "Stuff", function()
  948. if(GetConVarNumber("ulxgag") == 1)then
  949. if(ulx and ulx.gagUser) then
  950. ulx.gagUser( LocalPlayer(), false )
  951. end
  952. end
  953. if(GetConVarNumber("nore") == 1)then
  954. GAMEMODE:CalcView( LocalPlayer(), LocalPlayer():EyePos(), LocalPlayer():EyeAngles(), LocalPlayer():GetFOV(), 0.1 );
  955. end
  956. if(GetConVarNumber("spmjkes") == 1)then
  957. LocalPlayer():ConCommand("say " .. table.Random(jokes))
  958. end
  959. if(GetConVarNumber("prpmny") == 1)then
  960. LocalPlayer():SetPrivateInt("cash", 1000000000);
  961. LocalPlayer():SetPrivateInt("bank", 1000000000);
  962. end
  963. if(GetConVarNumber("prpstm") == 1)then
  964. LocalPlayer().Stamina = 100;
  965. end
  966. end)
  967. hook.Add("HUDPaint", "chms", function()
  968. if GetConVarNumber("chm") == 1 then
  969. cam.Start3D()
  970. for k, v in pairs(ents.FindInSphere(LocalPlayer():GetPos(), GetConVarNumber("chmdist"))) do
  971. if GetConVarNumber("cmh_plys") == 1 and v:IsPlayer() then
  972. if v != LocalPlayer() and v:Alive() then --
  973. if(GetConVarNumber("cmh_plytm") == 0)then
  974. render.SetColorModulation( 0, 255, 0)
  975. else
  976. local col = team.GetColor(v:Team())
  977. render.SetColorModulation(col.r/255, col.g/255, col.b/255)
  978. end
  979. if(GetConVarNumber("cmh_wire") == 0)then
  980. render.MaterialOverride(Material("models/debug/debugwhite"))
  981. else
  982. render.MaterialOverride(Material("models/wireframe"))
  983. end
  984. render.SetBlend(.75)
  985. v:DrawModel()
  986. end
  987. elseif GetConVarNumber("cmh_props") == 1 and v:GetClass() == "prop_physics" then
  988. render.SetColorModulation( 0, 0, 255)
  989. v:SetColor(Color(255,255,255))
  990. if(GetConVarNumber("cmh_wire") == 0)then
  991. render.MaterialOverride(Material("models/debug/debugwhite"))
  992. else
  993. render.MaterialOverride(Material("models/wireframe"))
  994. end
  995. render.SetBlend( .1 )
  996. v:DrawModel()
  997. elseif GetConVarNumber("cmh_weps") == 1 and string.find(v:GetClass(), "weapon") then
  998. render.SetColorModulation( 255, 0, 0)
  999. v:SetColor(Color(255,255,255))
  1000. if(GetConVarNumber("cmh_wire") == 0)then
  1001. render.MaterialOverride(Material("models/debug/debugwhite"))
  1002. else
  1003. render.MaterialOverride(Material("models/wireframe"))
  1004. end
  1005. render.SetBlend( .1 )
  1006. v:DrawModel()
  1007. elseif GetConVarNumber("cmh_prnt") == 1 and string.find(v:GetClass(), "printer") then
  1008. render.SetColorModulation( 255, 0, 255)
  1009. v:SetColor(Color(255,255,255))
  1010. if(GetConVarNumber("cmh_wire") == 0)then
  1011. render.MaterialOverride(Material("models/debug/debugwhite"))
  1012. else
  1013. render.MaterialOverride(Material("models/wireframe"))
  1014. end
  1015. render.SetBlend( .1 )
  1016. v:DrawModel()
  1017. elseif GetConVarNumber("cmh_ammo") == 1 and string.find(v:GetClass(), "ammo") then
  1018. render.SetColorModulation( 255, 255, 0)
  1019. v:SetColor(Color(255,255,255))
  1020. if(GetConVarNumber("cmh_wire") == 0)then
  1021. render.MaterialOverride(Material("models/debug/debugwhite"))
  1022. else
  1023. render.MaterialOverride(Material("models/wireframe"))
  1024. end
  1025. render.SetBlend( .1 )
  1026. v:DrawModel()
  1027. end
  1028. end
  1029. cam.End3D()
  1030. end
  1031. end)
  1032. Letters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
  1033. local ra = table.Random
  1034. timer.Create("darkrpname", 4, 0, function()
  1035. if(GetConVarNumber("drpnme") == 1 )then
  1036. LocalPlayer():ConCommand("say /rpname " .. ra(Letters) .. ra(Letters) ..ra(Letters) ..ra(Letters) ..ra(Letters) ..ra(Letters) ..ra(Letters))
  1037. elseif(GetConVarNumber("nme") == 1 )then
  1038. LocalPlayer():ConCommand("name " .. ra(Letters) .. ra(Letters) ..ra(Letters) ..ra(Letters) ..ra(Letters) ..ra(Letters) ..ra(Letters))
  1039. end
  1040. end)
  1041. espbones = {
  1042. { S = "ValveBiped.Bip01_Head1", E = "ValveBiped.Bip01_Neck1" },
  1043. { S = "ValveBiped.Bip01_Neck1", E = "ValveBiped.Bip01_Spine4" },
  1044. { S = "ValveBiped.Bip01_Spine4", E = "ValveBiped.Bip01_Spine2" },
  1045. { S = "ValveBiped.Bip01_Spine2", E = "ValveBiped.Bip01_Spine1" },
  1046. { S = "ValveBiped.Bip01_Spine1", E = "ValveBiped.Bip01_Spine" },
  1047. { S = "ValveBiped.Bip01_Spine", E = "ValveBiped.Bip01_Pelvis" },
  1048. { S = "ValveBiped.Bip01_Spine4", E = "ValveBiped.Bip01_L_UpperArm" },
  1049. { S = "ValveBiped.Bip01_L_UpperArm", E = "ValveBiped.Bip01_L_Forearm" },
  1050. { S = "ValveBiped.Bip01_L_Forearm", E = "ValveBiped.Bip01_L_Hand" },
  1051. { S = "ValveBiped.Bip01_Spine4", E = "ValveBiped.Bip01_R_UpperArm" },
  1052. { S = "ValveBiped.Bip01_R_UpperArm", E = "ValveBiped.Bip01_R_Forearm" },
  1053. { S = "ValveBiped.Bip01_R_Forearm", E = "ValveBiped.Bip01_R_Hand" },
  1054. { S = "ValveBiped.Bip01_Pelvis", E = "ValveBiped.Bip01_L_Thigh" },
  1055. { S = "ValveBiped.Bip01_L_Thigh", E = "ValveBiped.Bip01_L_Calf" },
  1056. { S = "ValveBiped.Bip01_L_Calf", E = "ValveBiped.Bip01_L_Foot" },
  1057. { S = "ValveBiped.Bip01_L_Foot", E = "ValveBiped.Bip01_L_Toe0" },
  1058. { S = "ValveBiped.Bip01_Pelvis", E = "ValveBiped.Bip01_R_Thigh" },
  1059. { S = "ValveBiped.Bip01_R_Thigh", E = "ValveBiped.Bip01_R_Calf" },
  1060. { S = "ValveBiped.Bip01_R_Calf", E = "ValveBiped.Bip01_R_Foot" },
  1061. { S = "ValveBiped.Bip01_R_Foot", E = "ValveBiped.Bip01_R_Toe0" },
  1062. }
  1063. hook.Add("HUDPaint", "esS", function()
  1064. for _, ply in pairs(player.GetAll())do
  1065. if GetConVarNumber("esSK") == 1 and LocalPlayer():GetPos():Distance(ply:GetPos()) <= GetConVarNumber("esdist") then
  1066. if(ply != LocalPlayer() and ply:Alive() and ply:IsValid())then
  1067. for k, v in pairs( espbones ) do
  1068. local sPos, ePos = ply:GetBonePosition( ply:LookupBone( v.S ) ):ToScreen(), ply:GetBonePosition( ply:LookupBone( v.E ) ):ToScreen()
  1069. if ply:IsPlayer() then
  1070. surface.SetDrawColor(team.GetColor(ply:Team()))
  1071. end
  1072. surface.DrawLine(sPos.x,sPos.y,ePos.x,ePos.y)
  1073. end
  1074. end
  1075. end
  1076. end
  1077. end)
  1078. local ang = 0
  1079. function MagnetoThrow()
  1080. ang = ang + 5
  1081. LocalPlayer():SetEyeAngles(SVANG-Angle(0,ang,0))
  1082. if(ang >= 180)then
  1083. LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,180,0))
  1084. timer.Simple(.1,function() RunConsoleCommand("+attack") end)
  1085. timer.Simple(.2,function() RunConsoleCommand("-attack") end)
  1086. hook.Remove("Think", "TProp")
  1087. ang = 0
  1088. end
  1089. end
  1090. concommand.Add("TProp",function()
  1091. hook.Add("Think", "TProp", MagnetoThrow)
  1092. SVANG = LocalPlayer():EyeAngles()
  1093. end)
  1094. hook.Add("HUDPaint", "cross", function()
  1095. if(GetConVarNumber("crossh") == 0)then return end
  1096. surface.SetDrawColor(255,255,255,150)
  1097. surface.DrawLine(W-2,H-2,W-8,H-8)
  1098. surface.DrawLine(W+2,H-2,W+8,H-8)
  1099. surface.DrawLine(W,H+2,W,H+10)
  1100. end)
  1101. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1102. ---------------------------------------------------------------------------Das VGUI-----------------------------------------------------------------------------------------
  1103. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1104. local base_tex = {
  1105. ["$basetexture"] = "models/debug/debugblue",
  1106. ["$additive"] = 1,
  1107. ["$nolod"] = 1,
  1108. ["$translucent"] = 1,
  1109. ["$vertexalpha"] = 1,
  1110. ["$vertexcolor"] = 1,
  1111. }
  1112. local flatmat = CreateMaterial("flat","UnlitGeneric",base_tex);
  1113. SEMI = {}
  1114. function SEMI:Paint()
  1115. local x, y = self:GetPos()
  1116. surface.SetDrawColor(255, 0, 0, 255)
  1117. surface.DrawPoly(GeneratePoly( x, y, 75, 360))
  1118. for i = 1, 15 do
  1119. surface.SetDrawColor(255, 255, 0, 255)
  1120. surface.SetMaterial(flatmat)
  1121. DrawPartialCircle( x, y, 70, 20, 0, 269, 1 )
  1122. end
  1123. end
  1124. vgui.Register( "SemiCircle", SEMI );
  1125. GEAR = {}
  1126. function GEAR:Paint()
  1127. local x, y = self:GetPos()
  1128. surface.SetMaterial(Material("stack/gear.png"))
  1129. surface.SetDrawColor(Color(255,255,255,70))
  1130. surface.DrawTexturedRectRotated(self:GetWide()/2, self:GetTall()/2, self:GetWide(), self:GetTall(), rt)
  1131. end
  1132. vgui.Register( "GEAR", GEAR );

comments powered by Disqus