SHARE
TWEET

Untitled

a guest Oct 13th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Essentials Lua By The_Belch
  2.  
  3. -- dependencies
  4.  
  5. print("Successfully Loaded Aimware Essentials Lua")
  6.  
  7. local menuloc = gui.Reference("SETTINGS", "MISCELLANEOUS");
  8.  
  9. local draw_Line, draw_TextShadow, draw_Color, draw_Text, draw_FilledRect, client_WorldToScreen, draw_GetScreenSize, client_GetConVar, client_SetConVar, client_exec, PlayerNameByUserID, PlayerIndexByUserID, GetLocalPlayer, gui_SetValue, gui_GetValue, LocalPlayerIndex, c_AllowListener, cb_Register, g_tickcount, g_realtime, g_curtime, math_floor, math_sqrt, GetPlayerResources, entities_FindByClass, GetPlayerResources = draw.Line, draw.TextShadow, draw.Color, draw.Text, draw.FilledRect, client.WorldToScreen, draw.GetScreenSize, client.GetConVar, client.SetConVar, client.Command, client.GetPlayerNameByUserID, client.GetPlayerIndexByUserID, entities.GetLocalPlayer, gui.SetValue, gui.GetValue, client.GetLocalPlayerIndex, client.AllowListener, callbacks.Register, globals.TickCount, globals.RealTime, globals.CurTime, math.floor, math.sqrt, entities.GetPlayerResources, entities.FindByClass, entities.GetPlayerResources
  10.  
  11. -- GUI Additions
  12.  
  13. local essentialsmenu = gui.Checkbox(menuloc, "essentialslua", "Show Aimware Essentials", false);
  14.  
  15.     -- window
  16.    
  17.         local window = gui.Window("essentialswindow", "Aimware Essentials", 1200, 300, 500, 700)
  18.         local hvhgroupbox = gui.Groupbox(window, "HvH Essentials", 10, 20, 230, 300)
  19.         local visualsgroupbox = gui.Groupbox(window, "Visuals Essentials", 260, 20, 230, 300)
  20.         local miscgroupbox = gui. Groupbox(window, "Misc Essentials", 260, 350, 230, 300)
  21.         local aagroupgox = gui.Groupbox(window, "Manual AA", 10, 350, 230, 300)
  22.  
  23.  
  24.  
  25. -----------------------------HVH-------------------------
  26.  
  27. -- jumpshot
  28.  
  29. local jumpshot = gui.Checkbox(hvhgroupbox, "jumpshot", "Jumpscout Fix", false)
  30.  
  31. local function jumpshot()
  32.     if gui.GetValue("jumpshot") == true then
  33.         local velocity = vector.Length(entities.GetLocalPlayer():GetPropVector("localdata", "m_vecVelocity[0]"))
  34.         gui.SetValue("msc_autostrafer_enable", 0)
  35.         if input.IsButtonDown(32) then
  36.             local x,y,z = entities.GetLocalPlayer():GetPropVector("localdata", "m_vecVelocity[0]")
  37.             local velocity = math.sqrt(x^2 + y^2)
  38.             if velocity >= 5 then
  39.                 gui.SetValue("msc_autostrafer_enable", 1)
  40.             else
  41.                 gui.SetValue("msc_autostrafer_enable", 0)
  42.             end
  43.         end
  44.     end
  45. end
  46. callbacks.Register("CreateMove", jumpshot)
  47.  
  48. -- fakeduck improvements
  49.  
  50. local fakeduckEnabled = gui.Checkbox(hvhgroupbox, "fdfakelag", "Fakeduck Fakelag", false)
  51. local fakeduckDisable = gui.Checkbox(hvhgroupbox, "fdaafix", "Fakeduck AA Fix", false)
  52. local fakeduckKey = gui.GetValue("rbot_antiaim_fakeduck")
  53. local fakeducking = false
  54.  
  55. local fakeduck_mode = 0;
  56.  
  57. local fakeduck_value = 4;
  58. local fakeduck_valueB, fakeduck_modeB, desyncS, desyncM;
  59.  
  60.  
  61. function fakeduckFix()
  62.     if entities.GetLocalPlayer() ~= nil then
  63.         if fakeduckEnabled:GetValue() == true and fakeduckKey ~= nil then
  64.             if input.IsButtonDown( fakeduckKey ) then
  65.                 if fakeducking == false then
  66.                     fakeduck_modeB = gui.GetValue("msc_fakelag_mode")
  67.                     fakeduck_valueB = gui.GetValue("msc_fakelag_value")
  68.                     desyncS = gui.GetValue("rbot_antiaim_stand_desync")
  69.                     desyncM = gui.GetValue("rbot_antiaim_move_desync")
  70.                     fakeducking = true;
  71.                 end
  72.                 if fakeduckDisable:GetValue() == true then
  73.                     gui.SetValue("rbot_antiaim_stand_desync", 0)
  74.                     gui.SetValue("rbot_antiaim_move_desync", 0)
  75.                 end
  76.                 gui.SetValue("msc_fakelag_mode", fakeduck_mode)
  77.                 gui.SetValue("msc_fakelag_value", fakeduck_value)
  78.             else
  79.                 if fakeducking == true then
  80.                     gui.SetValue("msc_fakelag_enable", 1)
  81.                     gui.SetValue("msc_fakelag_mode", fakeduck_modeB)
  82.                     gui.SetValue("msc_fakelag_value", fakeduck_valueB)
  83.                     gui.SetValue("rbot_antiaim_stand_desync", desyncS)
  84.                     gui.SetValue("rbot_antiaim_move_desync", desyncM)
  85.                     fakeducking = false;
  86.                 end
  87.             end
  88.         end
  89.     end
  90. end
  91. callbacks.Register("Draw", "fakeduckFix", fakeduckFix)
  92.  
  93. -- fakeduck indicator
  94.  
  95. local fdind = gui.Checkbox(hvhgroupbox, "fdind", "Fakeduck Indicator", false)
  96. local storedTick = 0
  97. local crouched_ticks = { }
  98.  
  99. fdR = gui.Slider(hvhgroupbox, "fdR", "R", 0, 0, 255);
  100. fdG = gui.Slider(hvhgroupbox, "fdG", "G", 0, 0, 255);
  101. fdB = gui.Slider(hvhgroupbox, "fdB", "B", 0, 0, 255);
  102. fdA = gui.Slider(hvhgroupbox, "fdA", "A", 255, 0, 255);
  103.  fR = gui.GetValue("fdR");
  104.  fG = gui.GetValue("fdG");
  105.  fB = gui.GetValue("fdB");
  106.  fA = gui.GetValue("fdA");
  107.  
  108. local function toBits(num)
  109.     local t = { }
  110.     while num > 0 do
  111.         rest = math.fmod(num,2)
  112.         t[#t+1] = rest
  113.         num = (num-rest) / 2
  114.     end
  115.  
  116.     return t
  117. end
  118.  
  119. callbacks.Register("DrawESP", "FD_Indicator", function(Builder)
  120.     local g_Local = entities.GetLocalPlayer()
  121.     local Entity = Builder:GetEntity()
  122.  
  123.     if g_Local == nil or Entity == nil or not Entity:IsPlayer() or not Entity:IsAlive() then
  124.         return
  125.     end
  126.  
  127.     local index = Entity:GetIndex()
  128.     local m_flDuckAmount = Entity:GetProp("m_flDuckAmount")
  129.     local m_flDuckSpeed = Entity:GetProp("m_flDuckSpeed")
  130.     local m_fFlags = Entity:GetProp("m_fFlags")
  131.  
  132.     if crouched_ticks[index] == nil then
  133.         crouched_ticks[index] = 0
  134.     end
  135.  
  136.     if m_flDuckSpeed ~= nil and m_flDuckAmount ~= nil then
  137.         if m_flDuckSpeed == 8 and m_flDuckAmount <= 0.9 and m_flDuckAmount > 0.01 and toBits(m_fFlags)[1] == 1 then
  138.             if storedTick ~= globals.TickCount() then
  139.                 crouched_ticks[index] = crouched_ticks[index] + 1
  140.                 storedTick = globals.TickCount()
  141.             end
  142.  
  143.        if gui.GetValue("fdind") == true then
  144.             if crouched_ticks[index] >= 5 then
  145.                 Builder:Color(fR, fG, fB, fA)
  146.                 Builder:AddTextTop("Fake Duck")
  147.             end
  148.         else
  149.             crouched_ticks[index] = 0
  150.         end
  151.     end
  152. end
  153. end)
  154.  
  155. -- autobuy
  156.  
  157. local Autobuy_Text = gui.Text( hvhgroupbox, "Autobuy" );
  158. local Autobuy_Enable = gui.Checkbox( hvhgroupbox, "lua_autobuy_enable", "Enable", 0 );
  159.  
  160. local Autobuy_PrimaryWeapon = gui.Combobox( hvhgroupbox, "lua_autobuy_primaryweapon", "Primary Weapon", "Off", "Auto", "Scout", "AWP", "Rifle", "Famas : Galil AR", "AUG : SG 553", "MP9 : MAC-10", "MP7 : MP5-SD", "UMP-45", "P90", "PP-Bizon", "Nova", "XM1014", "MAG-7 : Sawed-Off", "M249", "Negev" );
  161. local Autobuy_SecondaryWeapon = gui.Combobox( hvhgroupbox, "lua_autobuy_secondaryweapon", "Secondary Weapon", "Off", "Dual Berettas", "P250", "Five-Seven : CZ75-Auto : Tec-9", "Desert Eagle : R8 Revolver" );
  162.  
  163. local Autobuy_Armor = gui.Combobox( hvhgroupbox, "lua_autobuy_armor", "Armor", "Off", "Kevlar", "Kevlar + Helmet" );
  164. local Autobuy_Defuser = gui.Checkbox( hvhgroupbox, "lua_autobuy_defuser", "Defuser", 0 );
  165. local Autobuy_Taser = gui.Checkbox( hvhgroupbox, "lua_autobuy_taser", "Taser", 0 );
  166.  
  167. local Autobuy_HEGrenade = gui.Checkbox( hvhgroupbox, "lua_autobuy_hegrenade", "HE Grenade", 0 );
  168. local Autobuy_Smoke = gui.Checkbox( hvhgroupbox, "lua_autobuy_smoke", "Smoke", 0 );
  169. local Autobuy_Molotov = gui.Checkbox( hvhgroupbox, "lua_autobuy_molotov", "Molotov", 0 );
  170. local Autobuy_Flashbang = gui.Checkbox( hvhgroupbox, "lua_autobuy_flashbang", "Flashbang", 0 );
  171. local Autobuy_Decoy = gui.Checkbox( hvhgroupbox, "lua_autobuy_decoy", "Decoy", 0 );
  172.  
  173. local Money = 0
  174.  
  175. local function LocalPlayerMoney()
  176.     if Autobuy_Enable:GetValue() then
  177.         if entities.GetLocalPlayer() ~= nil then
  178.             Money = entities.GetLocalPlayer():GetProp( "m_iAccount" )
  179.         end
  180.     end
  181. end
  182.  
  183. local function Autobuy( Event )
  184.  
  185.     local PrimaryWeapon = Autobuy_PrimaryWeapon:GetValue()
  186.     local SecondaryWeapon = Autobuy_SecondaryWeapon:GetValue()
  187.     local Armor = Autobuy_Armor:GetValue()
  188.  
  189.     if Autobuy_Enable:GetValue() then
  190.  
  191.         if Event:GetName() ~= "player_spawn" then
  192.             return;
  193.         end
  194.  
  195.         local INT_UID = Event:GetInt( "userid" );
  196.         local PlayerIndex = client.GetPlayerIndexByUserID( INT_UID );
  197.        
  198.         if client.GetLocalPlayerIndex() == PlayerIndex then
  199.             ME = true
  200.         else
  201.             ME = false
  202.         end
  203.  
  204.         if ME and Money == 0 then
  205.             -- Primary Weapon
  206.             if PrimaryWeapon == 1 then client.Command( "buy scar20", true ); -- Auto
  207.             elseif PrimaryWeapon == 2 then client.Command( "buy ssg08", true ); -- Scout
  208.             elseif PrimaryWeapon == 3 then client.Command( "buy awp", true ); -- AWP
  209.             elseif PrimaryWeapon == 4 then client.Command( "buy ak47", true ); -- Rifle
  210.             elseif PrimaryWeapon == 5 then client.Command( "buy famas", true ); -- Famas : Galil AR
  211.             elseif PrimaryWeapon == 6 then client.Command( "buy aug", true ); -- AUG : SG 553
  212.             elseif PrimaryWeapon == 7 then client.Command( "buy mac10", true ); --  MP9 : MAC-10
  213.             elseif PrimaryWeapon == 8 then client.Command( "buy mp7", true ); -- MP7 : MP5-SD
  214.             elseif PrimaryWeapon == 9 then client.Command( "buy ump45", true ); -- UMP-45
  215.             elseif PrimaryWeapon == 10 then client.Command( "buy p90", true ); -- P90
  216.             elseif PrimaryWeapon == 11 then client.Command( "buy bizon", true ); -- PP-Bizon
  217.             elseif PrimaryWeapon == 12 then client.Command( "buy nova", true ); -- Nova
  218.             elseif PrimaryWeapon == 13 then client.Command( "buy xm1014", true ); -- XM1014
  219.             elseif PrimaryWeapon == 14 then client.Command( "buy mag7", true ); -- MAG-7 : Sawed-Off
  220.             elseif PrimaryWeapon == 15 then client.Command( "buy m249", true ); -- M249
  221.             elseif PrimaryWeapon == 16 then client.Command( "buy negev", true ); -- Negev
  222.             end
  223.             -- Secondary Weapon
  224.             if SecondaryWeapon == 1 then client.Command( "buy elite", true ); -- Dual Berettas
  225.             elseif SecondaryWeapon == 2 then client.Command( "buy p250", true ); -- P250
  226.             elseif SecondaryWeapon == 3 then client.Command( "buy tec9", true ); -- Five-Seven : CZ75-Auto : Tec-9
  227.             elseif SecondaryWeapon == 4 then client.Command( "buy deagle", true ); -- Desert Eagle : R8 Revolver
  228.             end
  229.             -- Taser
  230.             if Autobuy_Taser:GetValue() then
  231.                 client.Command( "buy taser", true );
  232.             end
  233.         elseif ME and Money <= 800 then
  234.             -- Secondary Weapon
  235.             if SecondaryWeapon == 1 then client.Command( "buy elite", true ); -- Dual Berettas
  236.             elseif SecondaryWeapon == 2 then client.Command( "buy p250", true ); -- P250
  237.             elseif SecondaryWeapon == 3 then client.Command( "buy tec9", true ); -- Five-Seven : CZ75-Auto : Tec-9
  238.             elseif SecondaryWeapon == 4 then client.Command( "buy deagle", true ); -- Desert Eagle : R8 Revolver
  239.             end
  240.             -- Taser
  241.             if Autobuy_Taser:GetValue() then
  242.                 client.Command( "buy taser", true );
  243.             end
  244.         elseif ME and Money > 800 then
  245.             -- Primary Weapon
  246.             if PrimaryWeapon == 1 then client.Command( "buy scar20", true ); -- Auto
  247.             elseif PrimaryWeapon == 2 then client.Command( "buy ssg08", true ); -- Scout
  248.             elseif PrimaryWeapon == 3 then client.Command( "buy awp", true ); -- AWP
  249.             elseif PrimaryWeapon == 4 then client.Command( "buy ak47", true ); -- Rifle
  250.             elseif PrimaryWeapon == 5 then client.Command( "buy famas", true ); -- Famas : Galil AR
  251.             elseif PrimaryWeapon == 6 then client.Command( "buy aug", true ); -- AUG : SG 553
  252.             elseif PrimaryWeapon == 7 then client.Command( "buy mac10", true ); --  MP9 : MAC-10
  253.             elseif PrimaryWeapon == 8 then client.Command( "buy mp7", true ); -- MP7 : MP5-SD
  254.             elseif PrimaryWeapon == 9 then client.Command( "buy ump45", true ); -- UMP-45
  255.             elseif PrimaryWeapon == 10 then client.Command( "buy p90", true ); -- P90
  256.             elseif PrimaryWeapon == 11 then client.Command( "buy bizon", true ); -- PP-Bizon
  257.             elseif PrimaryWeapon == 12 then client.Command( "buy nova", true ); -- Nova
  258.             elseif PrimaryWeapon == 13 then client.Command( "buy xm1014", true ); -- XM1014
  259.             elseif PrimaryWeapon == 14 then client.Command( "buy mag7", true ); -- MAG-7 : Sawed-Off
  260.             elseif PrimaryWeapon == 15 then client.Command( "buy m249", true ); -- M249
  261.             elseif PrimaryWeapon == 16 then client.Command( "buy negev", true ); -- Negev
  262.             end
  263.             -- Secondary Weapon
  264.             if SecondaryWeapon == 1 then client.Command( "buy elite", true ); -- Dual Berettas
  265.             elseif SecondaryWeapon == 2 then client.Command( "buy p250", true ); -- P250
  266.             elseif SecondaryWeapon == 3 then client.Command( "buy tec9", true ); -- Five-Seven : CZ75-Auto : Tec-9
  267.             elseif SecondaryWeapon == 4 then client.Command( "buy deagle", true ); -- Desert Eagle : R8 Revolver
  268.             end
  269.  
  270.             -- Armor
  271.             if Armor == 1 then client.Command( "buy vest", true );
  272.             elseif Armor == 2 then client.Command( "buy vesthelm", true );
  273.             end
  274.             -- Defuser
  275.             if Autobuy_Defuser:GetValue() then
  276.                 client.Command( "buy defuser", true );
  277.             end
  278.             -- Taser
  279.             if Autobuy_Taser:GetValue() then
  280.                 client.Command( "buy taser", true );
  281.             end
  282.  
  283.             -- HE Grenade
  284.             if Autobuy_HEGrenade:GetValue() then
  285.                 client.Command( "buy hegrenade", true );
  286.             end
  287.             -- Smoke
  288.             if Autobuy_Smoke:GetValue() then
  289.                 client.Command( "buy smokegrenade", true );
  290.             end
  291.             -- Molotov
  292.             if Autobuy_Molotov:GetValue() then
  293.                 client.Command( "buy molotov", true );
  294.             end
  295.             -- Flashbang
  296.             if Autobuy_Flashbang:GetValue() then
  297.                 client.Command( "buy flashbang", true );
  298.             end
  299.             -- Decoy
  300.             if Autobuy_Decoy:GetValue() then
  301.                 client.Command( "buy decoy", true );
  302.             end
  303.         end
  304.  
  305.     end
  306.  
  307. end
  308.  
  309. client.AllowListener( "player_spawn" )
  310.  
  311. callbacks.Register( "Draw", "Local Player Money", LocalPlayerMoney )
  312. callbacks.Register( "FireGameEvent", "Autobuy", Autobuy )
  313.  
  314. ----------------------VISUALS-------------------------
  315.  
  316. -- bomb timer
  317.  
  318. local bombtimer = gui.Checkbox(visualsgroupbox, "bombtimer", "Bomb Timer", false)
  319. local ref = gui.Reference("MISC", "GENERAL", "Main");
  320. local mouseX, mouseY, x, y, dx, dy, w, h = 0, 0, 650, 10, 0, 0, 400, 50;
  321. local shouldDrag = false;
  322. local fonticon = draw.CreateFont("icomoon", 25, 25);
  323. local fontinfo = draw.CreateFont("Verdana", 15, 15);
  324. local fonttext = draw.CreateFont("Verdana", 15, 15);
  325. local fontbombtext = draw.CreateFont("skeet Smallest Pixel-7 Modified", 10, 15);
  326.  
  327. local defusing = false;
  328.  
  329. function EventHook(Event)
  330. if gui.GetValue("bombtimer") == true then
  331.    if Event:GetName() == "bomb_begindefuse" then
  332.      defusing = true;
  333.      elseif Event:GetName() == "bomb_abortdefuse" then
  334.      defusing = false;
  335.    elseif Event:GetName() == "round_officially_ended"
  336.      or Event:GetName() == "bomb_defused" or Event:GetName() == "bomb_exploded" then
  337.       defusing = false;
  338.     end
  339. end
  340.  
  341. local function dragFeature()
  342.     if input.IsButtonDown(1) then
  343.         mouseX, mouseY = input.GetMousePos();
  344.         if shouldDrag then
  345.             x = mouseX - dx;
  346.             y = mouseY - dy;
  347.         end
  348.         if mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + 40 then
  349.             shouldDrag = true;
  350.             dx = mouseX - x;
  351.             dy = mouseY - y;
  352.         end
  353.     else
  354.         shouldDrag = false;
  355.     end
  356. end
  357.  
  358. local function drawTimer()
  359.  
  360. if entities.FindByClass("CPlantedC4")[1] ~= nil then
  361. local Bomb = entities.FindByClass("CPlantedC4")[1];
  362.  
  363. if Bomb:GetProp("m_bBombTicking") and Bomb:GetProp("m_bBombDefused") == 0 and globals.CurTime() < Bomb:GetProp("m_flC4Blow") then
  364. local Player = entities.GetLocalPlayer();
  365. if defusing == true then
  366. local BombMath = ((globals.CurTime() - Bomb:GetProp("m_flDefuseCountDown")) * 0.5) / ((Bomb:GetProp("m_flDefuseCountDown") - Bomb:GetProp("m_flDefuseLength")) - Bomb:GetProp("m_flDefuseCountDown")) + 1;
  367.  
  368. draw.Color(8, 8, 8, 30)
  369. draw.FilledRect(x, y, x + w, y + h)
  370. draw.FilledRect(x - 65, y, x + (w - 405), y + h )
  371.  
  372. draw.Color(8, 8, 8, 90)
  373. draw.FilledRect(x + 20, y + 20, x + (w - 20), y + h - 20)
  374.  
  375. draw.Color(0, 150, 255, 240)
  376. draw.FilledRect(x + 20, y + 20, (x + 20) * BombMath, y + h - 20)
  377.  
  378. draw.Color(180, 180, 180, 120)
  379. draw.OutlinedRect(x, y, x + w, y + h)
  380. draw.OutlinedRect(x - 65,y , x + (w - 405), y + h)
  381.  
  382. draw.Color(255, 255, 255, 255)
  383. draw.SetFont(fontbombtext)
  384. draw.Text(x - 48, y + 30, "BOMB")
  385. draw.SetFont(fonticon)
  386. draw.Text(x - 50, y + 10, "y")
  387.  
  388. else
  389.  
  390. local BombMath = ((globals.CurTime() - Bomb:GetProp("m_flC4Blow")) * 0.5) / ((Bomb:GetProp("m_flC4Blow") - Bomb:GetProp("m_flTimerLength")) - Bomb:GetProp("m_flC4Blow")) + 1;
  391.  
  392. draw.Color(8, 8, 8, 30)
  393. draw.FilledRect(x, y, x + w, y + h)
  394. draw.FilledRect(x - 65, y, x + (w - 405), y + h )
  395.  
  396. draw.Color(8, 8, 8, 90)
  397. draw.FilledRect(x + 20, y + 20, x + (w - 20), y + h - 20)
  398.  
  399. draw.Color(130, 255, 0, 240)
  400. draw.FilledRect(x + 20, y + 20, (x + 20) * BombMath, y + h - 20)
  401.  
  402. draw.Color(180, 180, 180, 120)
  403. draw.OutlinedRect(x, y, x + w, y + h)
  404. draw.OutlinedRect(x - 65,y , x + (w - 405), y + h)
  405.  
  406. draw.Color(255, 255, 255, 255)
  407. draw.SetFont(fontbombtext)
  408. draw.Text(x - 48, y + 30, "BOMB")
  409. draw.SetFont(fonticon)
  410. draw.Text(x - 50, y + 10, "y")
  411. end
  412.  
  413. if Player:IsAlive() and globals.CurTime() < Bomb:GetProp("m_flC4Blow") then
  414. if math.floor(0.5 + BombDamage(Bomb, Player)) >= Player:GetHealth() then
  415. draw.Color(255, 0, 0, 255)
  416. draw.SetFont(fontinfo)
  417. draw.Text(5, 0, "LETHAL");
  418. draw.TextShadow(5, 0, "LETHAL");
  419. else
  420. draw.Color(255, 255, 255, 255)
  421. draw.SetFont(fontinfo)
  422. draw.Text(5, 0, math.floor(0.5 + BombDamage(Bomb, Player)) .. " HP");
  423. draw.TextShadow(5, 0, math.floor(0.5 + BombDamage(Bomb, Player)) .. " HP");
  424. end
  425. end
  426. end
  427. end
  428. end
  429.  
  430. function BombDamage(Bomb, Player)
  431. local C4Distance = math.sqrt((select(1,Bomb:GetAbsOrigin()) - select(1,Player:GetAbsOrigin())) ^ 2 +
  432. (select(2,Bomb:GetAbsOrigin()) - select(2,Player:GetAbsOrigin())) ^ 2 +
  433. (select(3,Bomb:GetAbsOrigin()) - select(3,Player:GetAbsOrigin())) ^ 2);
  434.  
  435. local Gauss = (C4Distance - 75.68) / 789.2
  436. local flDamage = 450.7 * math.exp(-Gauss * Gauss);
  437.  
  438. if Player:GetProp("m_ArmorValue") > 0 then
  439.  
  440. local flArmorRatio = 0.5;
  441. local flArmorBonus = 0.5;
  442.  
  443. if Player:GetProp("m_ArmorValue") > 0 then
  444. local flNew = flDamage * flArmorRatio;
  445. local flArmor = (flDamage - flNew) * flArmorBonus;
  446.  
  447. if flArmor > Player:GetProp("m_ArmorValue") then
  448. flArmor = Player:GetProp("m_ArmorValue") * (1 / flArmorBonus);
  449. flNew = flDamage - flArmor;
  450. end
  451.  
  452. flDamage = flNew;
  453.  
  454. end
  455.  
  456. end
  457. return math.max(flDamage, 0);
  458. end
  459.  
  460. callbacks.Register( "Draw", "drag", dragFeature)
  461. callbacks.Register("FireGameEvent", "EventHookB", EventHook);
  462. callbacks.Register( "Draw", "drawTimer", drawTimer );
  463.  
  464. end
  465.  
  466. -- disable post prossesing
  467.  
  468. local disablepost = gui.Checkbox(visualsgroupbox, "vis_disable_post", "Disable Post Processing", false)
  469. function disablepp()
  470. if disablepost:GetValue() then client_SetConVar("mat_postprocess_enable", 0, true); else client_SetConVar("mat_postprocess_enable", 1, true); end end
  471. cb_Register('Draw', "Disable Post Processing" ,disablepp);
  472.  
  473. -- full bright
  474.  
  475. local fullbright = gui.Checkbox(visualsgroupbox, "fulbright", "Full Bright", false)
  476. function full_bright() if fullbright:GetValue() then client_SetConVar("mat_fullbright", 1, true); else client_SetConVar("mat_fullbright", 0, true); end end
  477. cb_Register('Draw', "Full brightness" ,full_bright);
  478.  
  479. -- scoped fov fix
  480.  
  481. local fovfix = gui.Checkbox(visualsgroupbox, "foxfix", "Fix Scope Fov", false)
  482. local fov_value = gui_GetValue("vis_view_fov")
  483. local vm_fov_value = gui_GetValue("vis_view_model_fov")
  484. function scopefov()
  485. local view_fov = gui_GetValue("vis_view_fov"); local view_model_fov = gui_GetValue("vis_view_model_fov");
  486. if view_fov ~= 0 then fov_value = gui_GetValue("vis_view_fov"); end if view_model_fov ~= 0 then vm_fov_value = gui_GetValue("vis_view_model_fov"); end
  487. if fovfix:GetValue() then
  488. if GetLocalPlayer() ~= nil then
  489. if GetLocalPlayer():GetProp("m_bIsScoped") == 1 or GetLocalPlayer():GetProp("m_bIsScoped") == 257 then gui_SetValue("vis_view_fov", 0); gui_SetValue("vis_view_model_fov", 0);
  490. elseif view_fov == 0 then gui_SetValue("vis_view_fov", fov_value); gui_SetValue("vis_view_model_fov", vm_fov_value); end end end end
  491. cb_Register("Draw", "scopefov", scopefov);
  492.  
  493. -- engine radar
  494.  
  495. local ERadar = gui.Checkbox(visualsgroupbox, "esp_engine_radar", "Engine Radar", false)
  496. function engineradar()
  497. if ERadar:GetValue() then ERval = 1; else ERval = 0; end
  498. for o, radar in pairs(entities_FindByClass("CCSPlayer")) do radar:SetProp("m_bSpotted", ERval); end end
  499. cb_Register("Draw", "engine radar", engineradar);
  500.  
  501. -- sniper crosshairs
  502.  
  503. local ComboCrosshair = gui.Combobox(visualsgroupbox, "vis_sniper_crosshair", "Force Sniper Crosshairs", "Off", "Force Crosshair", "Force Crosshair (+Scoped)", "Aimware Crosshair", "Draw Crosshair")
  504. function ifCrosshair()
  505. if GetLocalPlayer() == nil then return; end
  506. local Weapon = GetLocalPlayer():GetPropEntity("m_hActiveWeapon");
  507. local Scoped = GetLocalPlayer():GetProp("m_bIsScoped") == 1 or GetLocalPlayer():GetProp("m_bIsScoped") == 257
  508. if Weapon == nil then return; end
  509. local cWep = Weapon:GetClass();
  510. if cWep == "CWeaponAWP" or cWep == "CWeaponSSG08" or cWep == "CWeaponSCAR20" or cWep == "CWeaponG3SG1" then drawCrosshair = true;
  511. else drawCrosshair = false; end
  512. local screenCenterX, screenY = draw_GetScreenSize(); local scX, scY = screenCenterX / 2, screenY / 2;
  513. if drawCrosshair == true and ComboCrosshair:GetValue() == 0 then client_SetConVar("weapon_debug_spread_show", 0, true)
  514. elseif drawCrosshair == true and ComboCrosshair:GetValue() == 1 then gui_SetValue('esp_crosshair', false); if Scoped then client_SetConVar("weapon_debug_spread_show", 0, true); else client_SetConVar("weapon_debug_spread_show", 3, true) end
  515. elseif drawCrosshair == true and ComboCrosshair:GetValue() == 2 then gui_SetValue('esp_crosshair', false); client_SetConVar("weapon_debug_spread_show", 3, true)
  516. elseif drawCrosshair == true and ComboCrosshair:GetValue() == 3 then if Scoped then gui_SetValue('esp_crosshair', false); else client_SetConVar("weapon_debug_spread_show", 0, true); gui_SetValue('esp_crosshair', true); end
  517. elseif drawCrosshair == false and ComboCrosshair:GetValue() == 3 then gui_SetValue('esp_crosshair', false)
  518. elseif drawCrosshair == true and ComboCrosshair:GetValue() == 4 then client_SetConVar("weapon_debug_spread_show", 0, true); gui_SetValue('esp_crosshair', false); draw.SetFont(ff);
  519. draw_Color(255,255,255,255); draw_Line(scX, scY - 8, scX, scY + 8); --[[ line down ]] draw_Line(scX - 8, scY, scX + 8, scY); --[[ line across ]] end end
  520. cb_Register("Draw", "sniper crosshairs", ifCrosshair);
  521.  
  522. ---------------------------MISC------------------------
  523.  
  524. -- viewmodel changer
  525.  
  526. local function VM_Cache() xO = client_GetConVar("viewmodel_offset_x"); yO = client_GetConVar("viewmodel_offset_y"); zO = client_GetConVar("viewmodel_offset_z"); fO = client_GetConVar("viewmodel_fov"); end; VM_Cache()
  527. local show2, pressed2 = false, true
  528. local ViewModelShown = gui.Checkbox(miscgroupbox, "msc_vme", "Viewmodel Changer", false)
  529. local VM_W = gui.Window("VM_W", "Viewmodel Changer", 200,200,200,300)
  530. local VMStuff = gui.Groupbox(VM_W, "Viewmodel Changer", 15, 14, 170, 240)
  531. local VM_e = gui.Checkbox(VMStuff, "msc_vme", "Enable", false)
  532. local xS = gui.Slider(VMStuff, "VM_X", "X", xO, -20, 20)
  533. local yS = gui.Slider(VMStuff, "VM_Y", "Y", yO, -100, 100)
  534. local zS = gui.Slider(VMStuff, "VM_Z", "Z", zO, -20, 20)
  535. function press2() if ViewModelShown:GetValue() then show2 = true; else show2 = false; end if input.IsButtonPressed(gui_GetValue("msc_menutoggle")) then if pressed2 == true then pressed2 = false; else pressed2 = true; end end end
  536. function shows2() if show2 == true and pressed2 == true then VM_W:SetActive(1); elseif show2 == true and pressed2 == false or show2 == false and pressed2 == true or show2 == false and pressed2 == false then VM_W:SetActive(0); end end
  537. function VM_E() if VM_e:GetValue() then client_SetConVar("viewmodel_offset_x", xS:GetValue(), true); client_SetConVar("viewmodel_offset_y", yS:GetValue(), true); client_SetConVar("viewmodel_offset_z", zS:GetValue(), true);
  538. else client_SetConVar("viewmodel_offset_x", 2.0, true); client_SetConVar("viewmodel_offset_y", 0.0, true); client_SetConVar("viewmodel_offset_z", -2.0, true); end end
  539. cb_Register("Draw", "p2", press2); cb_Register("Draw", "s2", shows2); cb_Register("Draw", "vm sets", VM_E);
  540.  
  541. -- aspect ratio
  542.  
  543. local aspect_ratio_table = {};
  544. local aspect_ratio_check = gui.Checkbox(miscgroupbox, "msc_aspect_enable", "Aspect Ratio Changer", false)
  545. local aspect_ratio_reference = gui.Slider(miscgroupbox, "msc_aspect_value", "Force aspect ratio", 100, 1, 199) -- % times your original ratio
  546. local function gcd(m, n) while m ~= 0 do m, n = math.fmod(n, m), m; end return n; end
  547. local function set_aspect_ratio(aspect_ratio_multiplier) local screen_width, screen_height = draw_GetScreenSize(); local aspectratio_value = (screen_width*aspect_ratio_multiplier)/screen_height; if aspect_ratio_multiplier == 1 or not aspect_ratio_check:GetValue() then aspectratio_value = 0; end client_SetConVar( "r_aspectratio", tonumber(aspectratio_value), true); end
  548. local function on_aspect_ratio_changed() local screen_width, screen_height = draw_GetScreenSize(); for i=1, 200 do local i2=i*0.01;    i2 = 2 - i2; local divisor = gcd(screen_width*i2, screen_height); if screen_width*i2/divisor < 100 or i2 == 1 then aspect_ratio_table[i] = screen_width*i2/divisor .. ":" .. screen_height/divisor;  end  end local aspect_ratio = aspect_ratio_reference:GetValue()*0.01; aspect_ratio = 2 - aspect_ratio; set_aspect_ratio(aspect_ratio); end
  549. cb_Register('Draw', "aspect ratio" ,on_aspect_ratio_changed);
  550.  
  551. -- knife on left hand
  552.  
  553. local K_O_L_H = gui.Checkbox(miscgroupbox, "msc_knifelefthand", "Knife On Left Hand", false)
  554. function on_knife_righthand()
  555. if not K_O_L_H:GetValue() then return end
  556. if GetLocalPlayer() == nil then return end
  557. if GetLocalPlayer():GetHealth() == nil or GetLocalPlayer():GetHealth() <= 0 then client_exec("cl_righthand 1", true); return; end
  558. local wep = GetLocalPlayer():GetPropEntity("m_hActiveWeapon");
  559. if wep == nil then return; end local cwep = wep:GetClass();
  560. if cwep == "CKnife" then client_exec("cl_righthand 0", true); else client_exec("cl_righthand 1", true); end end
  561. cb_Register("Draw", "knife", on_knife_righthand);
  562.  
  563. -- skeet hitsoud
  564.  
  565. local MSC_PART_REF = gui.Reference( "MISC", "ENHANCEMENT", "Hitmarkers" );
  566. local AWMetallicHitsound = gui.Checkbox( miscgroupbox, "lua_hitsound", "Metallic Hitsound (Skeet)", 0 );
  567. local function MetallicHitsound( Event )
  568.  
  569.     if AWMetallicHitsound:GetValue() then
  570.         if gui.GetValue( "msc_hitmarker_enable" ) then
  571.             gui.SetValue( "msc_hitmarker_enable", 0 );
  572.         end
  573.         if ( Event:GetName() == "player_hurt" ) then
  574.             local ME = client.GetLocalPlayerIndex();
  575.             local INT_UID = Event:GetInt( "userid" );
  576.             local INT_ATTACKER = Event:GetInt( "attacker" );
  577.             local NAME_Victim = client.GetPlayerNameByUserID( INT_UID );
  578.             local INDEX_Victim = client.GetPlayerIndexByUserID( INT_UID );
  579.             local NAME_Attacker = client.GetPlayerNameByUserID( INT_ATTACKER );
  580.             local INDEX_Attacker = client.GetPlayerIndexByUserID( INT_ATTACKER );
  581.             if ( INDEX_Attacker == ME and INDEX_Victim ~= ME ) then
  582.                 volume = gui.GetValue("msc_hitmarker_volume");
  583.                 client.Command("playvol buttons\\arena_switch_press_02.wav "..volume, true);
  584.             end
  585.         end
  586.     end
  587. end
  588. client.AllowListener( "player_hurt" );
  589. callbacks.Register( "FireGameEvent", "Metallic Hitsound", MetallicHitsound );
  590.  
  591. -- hit log
  592.  
  593. local HitLog = gui.Checkbox(miscgroupbox, "msc_hitlog", "Hit Log", false)
  594. function HitGroup(i_hitgroup) if i_hitgroup == nil then return; elseif i_hitgroup == 0 then return "body"; elseif i_hitgroup == 1 then return "head"; elseif i_hitgroup == 2 then return "chest"; elseif i_hitgroup == 3 then return "stomach"; elseif i_hitgroup == 4 then return "left arm"; elseif i_hitgroup == 5 then return "right arm";  elseif i_hitgroup == 6 then return "left leg"; elseif i_hitgroup == 7 then return "right leg"; elseif i_hitgroup == 10 then return "body"; end end
  595. local draw_hitsay = {};
  596. function ChatLogger(Event)
  597. if HitLog:GetValue() then
  598. if Event:GetName() == nil then return;
  599. elseif (Event:GetName() == 'player_hurt') then
  600. local ME = LocalPlayerIndex();
  601. local uid = Event:GetInt('userid');
  602. local i_attacker = Event:GetInt('attacker');
  603. local i_dmg = Event:GetString('dmg_health');
  604. local i_health = Event:GetString('health');
  605. local i_hitgroup = Event:GetInt('hitgroup');
  606. local ind_Attacker = PlayerIndexByUserID(i_attacker);
  607. local N_Attacker = PlayerNameByUserID(i_attacker);
  608. local ind_Victim = PlayerIndexByUserID(uid);
  609. local n_Victim = PlayerNameByUserID(uid);
  610. hitPlayerName = ""; hitSpot = ""; hitDmg = ""; hitHealthRemaining = "";
  611. hitPlayerName = n_Victim; hitSpot = i_hitgroup; hitDmg = i_dmg; hitHealthRemaining = i_health;
  612. response = string.format("Hit %s in the %s for %s damage (%s health remaining)\n", hitPlayerName, HitGroup(hitSpot), hitDmg, hitHealthRemaining);
  613. if ( ind_Attacker == ME and ind_Victim ~= ME ) then print(response);
  614. table.insert(draw_hitsay, {globals.RealTime(), response}); end end end end
  615. local On_Screen_Time, pixels_between_each_line, ScreenX, ScreenY = 10, 10, 10, 10
  616. function hitlog()
  617. if HitLog:GetValue() then local things_on_screen = 0;
  618. for k, l in pairs(draw_hitsay) do
  619. if globals.RealTime() > l[1] + On_Screen_Time then table.remove(draw_hitsay, k); else
  620. draw_Color(255,255,255,255); draw.SetFont(ff); draw_TextShadow(ScreenX, things_on_screen * pixels_between_each_line + ScreenY, l[2]); things_on_screen = things_on_screen + 1; end end end end
  621. c_AllowListener('player_hurt'); cb_Register('Draw', 'drawing your hits', hitlog); cb_Register('FireGameEvent', 'ChatLogger', ChatLogger);  
  622.  
  623. --------------------------------AA---------------------------------
  624.  
  625. -- Manual AA
  626.  
  627. leftKey = -1;
  628. backKey = -1;
  629. rightKey = -1;
  630. check_indicator = gui.Checkbox( aagroupgox, "Enable", "Manual Anti-Aim", false);
  631. outline_check = gui.Checkbox( aagroupgox, "Outline", "Outline", false);
  632. antiAimLeft = gui.Keybox(aagroupgox, "antiAimLeft", "Left", 0);
  633. antiAimRight = gui.Keybox(aagroupgox, "antiAimRight", "Right", 0);
  634. antiAimBack = gui.Keybox(aagroupgox, "antiAimBack", "Back", 0);
  635. local standdef = gui.GetValue("rbot_antiaim_stand_real_add");
  636. local movedef = gui.GetValue("rbot_antiaim_move_real_add");
  637. local autodirdef = gui.GetValue("rbot_antiaim_at_targets");
  638.  
  639.  
  640. R = gui.Slider(aagroupgox, "R", "R", 0, 0, 255);
  641. G = gui.Slider(aagroupgox, "G", "G", 0, 0, 255);
  642. B = gui.Slider(aagroupgox, "B", "B", 0, 0, 255);
  643. A = gui.Slider(aagroupgox, "A", "A", 255, 0, 255);
  644.  
  645. S = gui.Slider(aagroupgox, "S", "Indicator Size", 40, 0, 70);
  646.  
  647. S1 = gui.Slider(aagroupgox, "S1", "Font Size", 40, 0, 70);
  648.  
  649.  
  650.  
  651.  
  652. --You can change the RGBA to your liking.
  653. arrowSize = 40;
  654. arrowR = 255;
  655. arrowG = 255;
  656. arrowB = 255;
  657. arrowA = 150;
  658.  
  659. local function main()  
  660.    if antiAimLeft:GetValue() ~= 0 then
  661.        if input.IsButtonPressed(antiAimLeft:GetValue()) then
  662.            leftKey = leftKey * -1;
  663.            backKey = -1;
  664.            rightKey = -1;
  665.            gui.SetValue("rbot_antiaim_stand_real_add", -90);
  666.            gui.SetValue("rbot_antiaim_move_real_add", -90);
  667.            gui.SetValue("rbot_antiaim_at_targets", 0);
  668.        end
  669.    end
  670.    if antiAimBack:GetValue() ~= 0 then
  671.        if input.IsButtonPressed(antiAimBack:GetValue()) then
  672.            backKey = backKey * -1;
  673.            leftKey = -1;
  674.            rightKey = -1;
  675.            gui.SetValue("rbot_antiaim_stand_real_add", 0);
  676.             gui.SetValue("rbot_antiaim_move_real_add", 0);
  677.             gui.SetValue("rbot_antiaim_at_targets", 0);
  678.        end
  679.    end
  680.    if antiAimRight:GetValue() ~= 0 then
  681.        if input.IsButtonPressed(antiAimRight:GetValue()) then
  682.            rightKey = rightKey * -1;
  683.            leftKey = -1;
  684.            backKey = -1;
  685.            gui.SetValue("rbot_antiaim_stand_real_add", 90);
  686.            gui.SetValue("rbot_antiaim_move_real_add", 90);
  687.            gui.SetValue("rbot_antiaim_at_targets", 0);
  688.        end
  689.    end
  690. end
  691.  
  692.  
  693. function SetAuto()
  694.   gui.SetValue("rbot_antiaim_stand_real_add", 0);
  695.   gui.SetValue("rbot_antiaim_move_real_add", 0);
  696.   gui.SetValue("rbot_antiaim_at_targets", 1);
  697. end
  698.  
  699. function draw_indicator()
  700.  
  701.  arrowR = gui.GetValue("R");
  702.  arrowG = gui.GetValue("G");
  703.  arrowB = gui.GetValue("B");
  704.  arrowA = gui.GetValue("A");
  705.  
  706.    arrowSize = math.floor(gui.GetValue("S"));
  707.    textSize = math.floor(gui.GetValue("S1"));
  708.  
  709.  
  710.  
  711.    local active = check_indicator:GetValue();
  712.  
  713.    if active then
  714.    local arrowFont = draw.CreateFont("Arial", arrowSize, 30);
  715.      local textFont = draw.CreateFont("Arial", textSize, 30);
  716.       draw.SetFont(arrowFont);
  717.    local w, h = draw.GetScreenSize();
  718.        if (leftKey == 1) then
  719.            draw.Color(arrowR, arrowG, arrowB, arrowA);
  720.  
  721.            if(outline_check:GetValue()) then
  722.                draw.TextShadow( w/2 - w/14.7692307692, h/2 - arrowSize/2, "<"); --Uncomment if u want arrows to have an outline. I personally don't like it. (Also delete previous line so you dont draw twice).
  723.                   else
  724.                      draw.Text( w/2 - w/14.7692307692, h/2 - arrowSize/2, "<");
  725.            end
  726.  
  727.  
  728.        elseif (backKey == 1) then
  729.  
  730.            draw.Color(arrowR, arrowG, arrowB, arrowA);
  731.  
  732.            if(outline_check:GetValue()) then
  733.              draw.TextShadow( w/2 - arrowSize/2.4, h/2 + h/11.7391304348, "?"); --Uncomment if u want arrows to have an outline. I personally don't like it. (Also delete previous line so you dont draw twice).
  734.            else
  735.                       draw.Text( w/2 - arrowSize/2.35, h/2 + h/11.7391304348, "?");
  736.            end
  737.  
  738.  
  739.        elseif (rightKey == 1) then
  740.  
  741.  
  742.            draw.Color(arrowR, arrowG, arrowB, arrowA);
  743.            if(outline_check:GetValue()) then
  744.              draw.TextShadow( w/2 + w/20.2105263158, h/2 - arrowSize/2, ">"); --Uncomment if u want arrows to have an outline. I personally don't like it. (Also delete previous line so you dont draw twice).
  745.            else
  746.                  draw.Text( w/2 + w/20.2105263158, h/2 - arrowSize/2, ">");
  747.            end
  748.        else
  749.            draw.SetFont(textFont);
  750.            draw.Color(arrowR, arrowG, arrowB, 200);
  751.            draw.TextShadow(15, h/2, "AUTO");
  752.            SetAuto();
  753.            
  754.  
  755.        end
  756.    end
  757. end
  758.  
  759. callbacks.Register( "Draw", "main", main);
  760. callbacks.Register( "Draw", "draw_indicator", draw_indicator);
  761.  
  762. -- Inverter Key
  763.  
  764. local invertKey = gui.Keybox(aagroupgox, "cluainvert_key", "Inverter key", false)
  765. local desyncators = gui.Multibox(aagroupgox, "Indicators")
  766. local dArrows = gui.Checkbox(desyncators, "cluadesync_arrows", "Arrows (Real)", false)
  767. local dText = gui.Checkbox(desyncators, "cluadesync_text", "Text", false)
  768. local vleftDesync = 3;
  769. local vrightDesync = 2;
  770. local eleftDesync = 2;
  771. local erightDesync = 3;
  772. local activeSide = "null";
  773. iR = gui.Slider(aagroupgox, "iR", "R", 0, 0, 255);
  774. iG = gui.Slider(aagroupgox, "iG", "G", 0, 0, 255);
  775. iB = gui.Slider(aagroupgox, "iB", "B", 0, 0, 255);
  776. iA = gui.Slider(aagroupgox, "iA", "A", 255, 0, 255);
  777. local function inverter()
  778.     if entities.GetLocalPlayer() ~= nil then
  779.         if invertKey:GetValue() == 0 then return end
  780.         if input.IsButtonPressed(invertKey:GetValue()) and not input.IsButtonDown(69) then
  781.             if rightDesync == false then
  782.                 gui.SetValue("rbot_antiaim_stand_desync", vrightDesync);
  783.                 gui.SetValue("rbot_antiaim_move_desync", vrightDesync);
  784.                 rightDesync = not rightDesync;
  785.             else
  786.                 gui.SetValue("rbot_antiaim_stand_desync", vleftDesync);
  787.                 gui.SetValue("rbot_antiaim_move_desync", vleftDesync);
  788.                 rightDesync = not rightDesync;
  789.             end
  790.         else if input.IsButtonPressed(invertKey:GetValue()) and input.IsButtonDown(69) then
  791.             if rightDesync == false then
  792.                 gui.SetValue("rbot_antiaim_stand_desync", erightDesync);
  793.                 gui.SetValue("rbot_antiaim_move_desync", erightDesync);
  794.                 rightDesync = not rightDesync;
  795.             else
  796.                 gui.SetValue("rbot_antiaim_stand_desync", eleftDesync);
  797.                 gui.SetValue("rbot_antiaim_move_desync", eleftDesync);
  798.                 rightDesync = not rightDesync;
  799.             end
  800.         end
  801.         end
  802.     end
  803. end
  804. callbacks.Register("Draw", "inverter", inverter)
  805. local function indicators()
  806.  
  807.  cR = gui.GetValue("iR");
  808.  cG = gui.GetValue("iG");
  809.  cB = gui.GetValue("iB");
  810.  cA = gui.GetValue("iA");
  811.  
  812.     if entities.GetLocalPlayer() ~= nil then
  813.         local x, y = draw.GetScreenSize()
  814.         local textFont = draw.CreateFont('Verdana', 30, 30)
  815.         local arrowFont = draw.CreateFont('Verdana', 100, 300)
  816.         draw.SetFont(textFont)
  817.         if not rightDesync then
  818.             if gui.GetValue("cluadesync_text") == true then
  819.                 draw.Color(cR, cG, cB, cA)
  820.                 draw.Text(20, y - 200, "REAL: RIGHT")
  821.                 draw.TextShadow(20, y - 200, "REAL: RIGHT")
  822.             end
  823.  
  824.             if gui.GetValue("cluadesync_arrows") == true then
  825.                 draw.SetFont(arrowFont)
  826.                 draw.Color(255, 255, 255, cA)
  827.                 draw.Text(x/2 - 75, y/2 - 55, "?")
  828.                 draw.TextShadow(x/2 - 75, y/2 - 55, "?")
  829.                 draw.Color(cR, cG, cB, cA)
  830.                 draw.Text(x/2 + 10, y/2 - 55, "?")
  831.                 draw.TextShadow(x/2 + 10, y/2 - 55, "?")
  832.             end
  833.  
  834.         else if rightDesync then
  835.             if gui.GetValue("cluadesync_text") == true then
  836.                 draw.Color(cR, cG, cB, cA)
  837.                 draw.Text(20, y - 200, "REAL: LEFT")
  838.                 draw.TextShadow(20, y - 200, "REAL: LEFT")
  839.             end
  840.  
  841.             if gui.GetValue("cluadesync_arrows") == true then
  842.                 draw.SetFont(arrowFont)
  843.                 draw.Color(cR, cG, cB, cA)
  844.                 draw.Text(x/2 - 75, y/2 - 55, "?")
  845.                 draw.TextShadow(x/2 - 75, y/2 - 55, "?")
  846.                 draw.Color(255, 255, 255, cA)
  847.                 draw.Text(x/2 + 10, y/2 - 55, "?")
  848.                 draw.TextShadow(x/2 + 10, y/2 - 55, "?")
  849.             end
  850.         else
  851.             if gui.GetValue("cluadesync_text") == true then
  852.                 draw.Color(cR, cG, cB, cA)
  853.                 draw.Text(30, y - 600, "INVERTER: OFF")
  854.                 draw.TextShadow(30, y - 600, "INVERTER: OFF")
  855.             end
  856.  
  857.             if gui.GetValue("cluadesync_arrows") == true then
  858.                 draw.SetFont(arrowFont)
  859.                 draw.Color(255, 255, 255, cA)
  860.                 draw.Text(x/2 - 75, y/2 - 55, "?")
  861.                 draw.TextShadow(x/2 - 75, y/2 - 55, "?")
  862.                 draw.Color(255, 255, 255, cA)
  863.                 draw.Text(x/2 + 10, y/2 - 55, "?")
  864.                 draw.TextShadow(x/2 + 10, y/2 - 55, "?")
  865.             end
  866.         end
  867.         end
  868.     end
  869. end
  870. callbacks.Register("Draw", "indicators", indicators)
  871.  
  872. -- menu toggle (DO NOT EDIT)
  873.  
  874.  
  875. local awMenu = gui.Reference("MENU");
  876.  
  877. local function hideMenu()
  878.     if awMenu:IsActive() then
  879.         eActive = 1
  880.     else
  881.         eActive = 0
  882.     end
  883.     if (essentialsmenu:GetValue()) then
  884.         window:SetActive(eActive);
  885.     else
  886.         window:SetActive(0);
  887.     end
  888. end
  889. callbacks.Register("Draw", "hideMenu", hideMenu)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top