LUA скрипт [PDC] - Whiteless [debug] (ультра сырая в таком виде юзлесс)

ЧВК EB_LAN
Эксперт
Статус
Онлайн
Регистрация
26 Янв 2021
Сообщения
1,552
Реакции[?]
519
Поинты[?]
189K
Бля ребят не обисуйте да короче, луашка не готова и она для меня пока чисто как база была сделана с которой мне бы легче потом чето делать
Сразу скажу, я может быть потом её буду обновлять и она будет опен сурс думаю. (если обнов не будет, значит сами запастите туда че нибудь ибо референсы легкие и простые в использовании (также как и сделать кнопочки в табе визибл и инвизибл))
code_language.lua:
local Logo = [[
                                                                                        
__          ___    _ _____ _______ ______ _      ______  _____ _____  _     _    _     
\ \        / / |  | |_   _|__   __|  ____| |    |  ____|/ ____/ ____|| |   | |  | |  /\
  \ \  /\  / /| |__| | | |    | |  | |__  | |    | |__  | (___| (___  | |   | |  | | /  \
   \ \/  \/ / |  __  | | |    | |  |  __| | |    |  __|  \___ \\___ \ | |   | |  | |/ /\ \
    \  /\  /  | |  | |_| |_   | |  | |____| |____| |____ ____) |___) || |___| |__| / ____ \
     \/  \/   |_|  |_|_____|  |_|  |______|______|______|_____/_____(_)______\____/_/    \_\
                                                                                        
                                                                                        
]]

-- Console logo
client.log(Logo)

-- Shit but its working (i dont wanna make it in lua reference cuz for me it not working)
local Size_X, Size_Y = render.get_screen( )
local Verdana = render.create_font("Verdana", 16, 500, bit.bor(font_flags.dropshadow, font_flags.antialias));

-- Simple lua reference
local Lua = {
   Menu = {
      Label = ui.add_label("----Whiteless [Debug]----"),
      Label1 = ui.add_label(""),

      Tab = ui.add_dropdown("Tab", {"Ragebot", "Exploits", "Antiaim", "Visuals", "Misc"})
   },

   Ragebot = {
      Enable = ui.add_checkbox("Custom ragebot functions"),
   },

   Exploits = {
      Enable = ui.add_checkbox("Custom Exploits"),
   },

   Antiaim = {
      Enable = ui.add_checkbox("Override antiaim"),

      YawJitter = ui.add_checkbox("Custom yaw jitter"),
      OriginalYaw = ui.add_slider("Original Yaw Amount", -60, 60),

      YawJitterType = ui.add_dropdown("Type", {"Offset", "Center", "Random"}),
      YawJitterAmount = ui.add_slider("Yaw jitter Amount", 0, 60),

      Jitter = ui.add_checkbox("Custom Default jitter"),
      JitterAmount = ui.add_slider("Default jitter Amount", 0, 60),

      FakeFlick = ui.add_checkbox("Fake-Flick"),
      FakeFlickKey = ui.add_cog("bind", false, true)
   },

   Visuals = {
      Enable = ui.add_checkbox("Override Indicators"),

      Theme = ui.add_cog("Theme", true, false),

      Watermark = ui.add_checkbox("Watermark"),
      Keybinds = ui.add_checkbox("Keybinds"),
      BindsPosX = ui.add_slider("Position [X]", 0, Size_X),
      BindsPosY = ui.add_slider("Position [Y]", 0, Size_Y),
      Indicators = ui.add_checkbox("Corner Indicators"),
      ManualIndicator = ui.add_checkbox("Manual Indicator")
   },

   Misc = {
      Enable = ui.add_checkbox("Custom misc functions")
   }
}

-- Simple menu antiaim reference
local Menu = {
   Antiaim = {
      Enable = ui.get("Rage", "Anti-aim", "General", "Anti-aim"),
      Pitch = ui.get("Rage", "Anti-aim", "General", "Anti-aim"),
      Freestanding = ui.get("Rage", "Anti-aim", "General", "Freestanding key"),
      BaseAngle = ui.get("Rage", "Anti-aim", "General", "Yaw base"),
      YawBase = ui.get("Rage", "Anti-aim", "General", "Yaw"),
      Yaw = ui.get("Rage", "Anti-aim", "General", "Yaw additive"),
      EnableJitter = ui.get("Rage", "Anti-aim", "General", "Yaw jitter"),
      JitterConditions = ui.get("Rage", "Anti-aim", "General", "Yaw jitter conditions"),
      JitterType = ui.get("Rage", "Anti-aim", "General", "Yaw jitter type"),
      EnableRandomJitter = ui.get("Rage", "Anti-aim", "General", "Random jitter range"),
      JitterRange = ui.get("Rage", "Anti-aim", "General", "Yaw jitter range"),
      DesyncMode = ui.get("Rage", "Anti-aim", "General", "Fake yaw type"),
      DesyncAmount = ui.get("Rage", "Anti-aim", "General", "Body yaw limit"),
      ManualLeft = ui.get("Rage", "Anti-aim", "General", "Manual left key"),
      ManualRight = ui.get("Rage", "Anti-aim", "General", "Manual right key"),
      ManualBack = ui.get("Rage", "Anti-aim", "General", "Manual backwards key")
   },

   Ragebot = {
      MinDamage = ui.get("Rage", "Aimbot", "General", "Minimum damage override key"),
      Hitboxes = ui.get("Rage", "Aimbot", "General", "Hitboxes"),
      ForceSafePoint = ui.get("Rage", "Aimbot", "General", "Force safety key"),
      ForceBodyAim = ui.get("Rage", "Aimbot", "Accuracy", "Force body-aim key"),
      RollResolver = ui.get("Rage", "Aimbot", "General", "Roll resolver"),
      DormantAimbot = ui.get("Rage", "Aimbot", "General", "Dormant aimbot key")
   },

   Exploits = {
      Doubletap = ui.get("Rage", "Exploits", "General", "Double tap key"),
      FakeDuck = ui.get("Rage", "Anti-aim", "Fake-lag", "Fake duck key"),
      HideShots = ui.get("Rage", "Exploits", "General", "Hide shots key"),
      ExploitChoke = ui.get("Rage", "Exploits", "General", "Exploit lag limit")
   },

   Visuals = {
      ThirdPerson = ui.get("Visuals", "General", "Other group", "Third person key")
   },

   Misc = {
      SlowWalk = ui.get("Misc", "General", "Movement", "Slow motion key"),
      AutoPeek = ui.get("Misc", "General", "Movement", "Auto peek key"),
      PingSpike = ui.get("Misc", "General", "General", "Ping spike key")
   }
}


-- Math functions
function Clamp(x, min, max)
   if min > max then
       return math.min(math.max(x, max), min)
   else
       return math.min(math.max(x, min), max)
   end 
   return x
end

function TimeToTicks(a)
   return math.floor(1 + a / global_vars.interval_per_tick())
end

function ToInt(n)
   local s = tostring(n)
   local i, j = s:find('%.')
   if i then
       return tonumber(s:sub(1, i-1))
   else
       return n
   end
end
-- Math functions


-- Simple get desync side func
function DesyncSide()
    local Side = 0

    if anti_aim.inverted() == false then
        Side = 1
    else
        Side = -1
    end

    return Side
end

local function AntiAim()

   local JitterSide = 0
   local SwapTimer = math.ceil((math.pi * 8) * global_vars.realtime) % 2  -- :)
   Clamp(SwapTimer, 0, 1)

   if SwapTimer == 1 then
      JitterSide = 1
   else
      JitterSide = -1
   end

   -- Yaw jitter
   if Lua.Antiaim.YawJitter:get() == true then

      -- Jitter type: offset
      if Lua.Antiaim.YawJitterType:get() == 0 then
         if SwapTimer == 1 then
            JitterSide = 1
         else
            JitterSide = 0
         end

         Menu.Antiaim.Yaw:set(Lua.Antiaim.OriginalYaw:get() + (Lua.Antiaim.YawJitterAmount:get() * DesyncSide()) * JitterSide)
      end

      -- Jitter type: center
      if Lua.Antiaim.YawJitterType:get() == 1 then
         Menu.Antiaim.Yaw:set(Lua.Antiaim.OriginalYaw:get() + (Lua.Antiaim.YawJitterAmount:get() * JitterSide))
      end

      -- Jitter type: random
      if Lua.Antiaim.YawJitterType:get() == 2 then
         Menu.Antiaim.Yaw:set((Lua.Antiaim.OriginalYaw:get() + math.random(-Lua.Antiaim.YawJitterAmount:get(), Lua.Antiaim.YawJitterAmount:get())) * JitterSide)
      end
   end

   -- Default jitter from menu
   if Lua.Antiaim.Jitter:get() == true then
      Menu.Antiaim.EnableJitter:set(true)

      -- Shit, but why not?
      Menu.Antiaim.JitterConditions:set("Standing", true)
      Menu.Antiaim.JitterConditions:set("Moving", true)
      Menu.Antiaim.JitterConditions:set("In air", true)
      Menu.Antiaim.JitterConditions:set("Walking", true)
      Menu.Antiaim.JitterConditions:set("Allow manual", true)
      Menu.Antiaim.JitterConditions:set("Allow freestanding", true)

      Menu.Antiaim.JitterType:set(0)
      Menu.Antiaim.JitterRange:set(Lua.Antiaim.JitterAmount:get())
   end

   -- Simple fake flick
   if Lua.Antiaim.FakeFlick:get() and Lua.Antiaim.FakeFlickKey:get_key() then
      if math.floor(global_vars.curtime * 26) % 16 == 0 then
         Menu.Antiaim.Yaw:set(90 * DesyncSide())
      else
         Menu.Antiaim.Yaw:set(0)
      end
   end

end

local function Keybinds()
   -- Simple keybinds
   if Lua.Visuals.Keybinds:get() == true then
      -- Simple reference for reference (xDDDD idk name)
      local x, y = Lua.Visuals.BindsPosX:get(), Lua.Visuals.BindsPosY:get()

      -- Table for keybinds
      local Table = {}

      -- Cancer
      if Menu.Exploits.Doubletap:get_key() then
         table.insert(Table, {text = "Doubletap", color = color.new(255,255,255,200)})
      end
      if Menu.Exploits.FakeDuck:get_key() then
         table.insert(Table, {text = "FakeDuck", color = color.new(255,255,255,200)})
      end
      if Menu.Ragebot.MinDamage:get_key() then
         table.insert(Table, {text = "Damage Override", color = color.new(255,255,255,200)})
      end
      if Menu.Ragebot.ForceSafePoint:get_key() then
         table.insert(Table, {text = "Force Safe-points", color = color.new(255,255,255,200)})
      end
      if Menu.Ragebot.ForceBodyAim:get_key() then
         table.insert(Table, {text = "Force Body hitboxes", color = color.new(255,255,255,200)})
      end
      if Menu.Ragebot.RollResolver:get_key() then
         table.insert(Table, {text = "Roll Resolver", color = color.new(255,255,255,200)})
      end
      if Menu.Ragebot.DormantAimbot:get_key() then
         table.insert(Table, {text = "Dormant aimbot", color = color.new(255,255,255,200)})
      end
      if Menu.Exploits.HideShots:get_key() then
         table.insert(Table, {text = "HideShots", color = color.new(255,255,255,200)})
      end
      if Menu.Visuals.ThirdPerson:get_key()then
         table.insert(Table, {text = "Third Person", color = color.new(255,255,255,200)})
      end
      if Menu.Misc.SlowWalk:get_key() then
         table.insert(Table, {text = "Slow Motion", color = color.new(255,255,255,200)})
      end
      if Menu.Misc.AutoPeek:get_key() then
         table.insert(Table, {text = "Peek Assist", color = color.new(255,255,255,200)})
      end
      if Menu.Antiaim.ManualLeft:get_key() then
         table.insert(Table, {text = "Base angle [Left]", color = color.new(255,255,255,200)})
      end
      if Menu.Antiaim.ManualRight:get_key() then
         table.insert(Table, {text = "Base angle [Right]", color = color.new(255,255,255,200)})
      end
      if Menu.Antiaim.ManualBack:get_key() then
         table.insert(Table, {text = "Base angle [Back]", color = color.new(255,255,255,200)})
      end
      if Menu.Antiaim.Freestanding:get_key() then
         table.insert(Table, {text = "Freestanding", color = color.new(255,255,255,200)})
      end
      if Menu.Misc.PingSpike:get_key() then
         table.insert(Table, {text = "Ping spike", color = color.new(255,255,255,200)})
      end
      if Lua.Antiaim.FakeFlickKey:get_key() then
         table.insert(Table, {text = "Fake flick", color = color.new(255,255,255,200)})
      end

      -- Text Size
      local text_size = 0
      local render1 = false

      -- Make simple cycle to render keybinds in realtime
      for idx = 1, #Table do
         local Table = Table[idx]

         text_size = Verdana:get_size(Table.text)
         render1 = true

         -- Window
         render.rectangle_filled(x, y, (text_size + 6) + 5, 25, color.new(25,25,25,255))

         -- Line
         render.rectangle_filled(x, y, (text_size + 6) + 5, 2, Lua.Visuals.Theme:get_color())

         -- Binds
         Verdana:text(x + 2, (y + 9) + (idx * 16), Table.color, Table.text)
      end

      if render1 == true then
         -- Window Name
         Verdana:text(x + 5, y + 5, color.new(255,255,255,200), "Keybinds")
      end

   end
end

local function ManualIndicator()
   -- Simple reference for reference (xDDDD idk name)
   local x, y = Size_X, Size_Y

   x = x / 2
   y = y / 2

   if Lua.Visuals.ManualIndicator:get() == true then
      render.triangle_filled(vector2d.new(x - 50, y), vector2d.new(x - 35, y - 7), vector2d.new(x - 35, y + 7 ), color.new(10, 10, 10, 100)) -- Left
      render.triangle_filled(vector2d.new(x + 50, y), vector2d.new(x + 35, y - 7), vector2d.new(x + 35, y + 7), color.new(10, 10, 10, 100)) -- Right
  
     -- ITS NOT PASTE!!! I JUST USED IT FROM MY LUA FROM NEVERLOSE
      --if AntiAim.GetInverterState() == true then
      --   Render.BoxFilled(vector.new(x / 2 + 33, y / 2 - 7), vector.new(x / 2 + 32, y / 2 + 7), color.new(0.1, 0.1, 0.1, g_ManualDesyncSide:GetColor().a - 0.3)) -- Right Background
      --   Render.BoxFilled(vector.new(x / 2 - 33, y / 2 - 7), vector.new(x / 2 - 32, y / 2 + 7), g_ManualDesyncSide:GetColor()) -- Left
      --else
      --   Render.BoxFilled(vector.new(x / 2 - 33, y / 2 - 7), vector.new(x / 2 - 32, y / 2 + 7), color.new(0.1, 0.1, 0.1, g_ManualDesyncSide:GetColor().a - 0.3)) -- Left Background
      --   Render.BoxFilled(vector.new(x / 2 + 33, y / 2 - 7), vector.new(x / 2 + 32, y / 2 + 7), g_ManualDesyncSide:GetColor()) -- Right
      --end
                      
      if Menu.Antiaim.ManualLeft:get_key() then
         render.triangle_filled(vector2d.new(x - 50, y), vector2d.new(x - 35, y - 7), vector2d.new(x - 35, y + 7 ), color.new(35, 115, 175, 255)) -- Left
      end
                      
      if Menu.Antiaim.ManualRight:get_key() then
         render.triangle_filled(vector2d.new(x + 50, y), vector2d.new(x + 35, y - 7), vector2d.new(x + 35, y + 7), color.new(35, 115, 175, 255)) -- Right
      end
   end
end

local function Ragebot()
   -- Soon
end

local function Exploits()
   -- Soon
end


local function Misc()
   -- Soon
end

function HookedRender()
   -- Simple tab switcher
   Lua.Ragebot.Enable:set_visible(false)
   Lua.Exploits.Enable:set_visible(false)

   Lua.Antiaim.Enable:set_visible(false)
   Lua.Antiaim.YawJitter:set_visible(false)
   Lua.Antiaim.OriginalYaw:set_visible(false)
   Lua.Antiaim.YawJitterType:set_visible(false)
   Lua.Antiaim.YawJitterAmount:set_visible(false)
   Lua.Antiaim.Jitter:set_visible(false)
   Lua.Antiaim.JitterAmount:set_visible(false)
   Lua.Antiaim.FakeFlick:set_visible(false)
   Lua.Antiaim.FakeFlickKey:set_visible(false)

   Lua.Visuals.Enable:set_visible(false)
   Lua.Visuals.Theme:set_visible(false)
   Lua.Visuals.Watermark:set_visible(false)
   Lua.Visuals.Keybinds:set_visible(false)
   Lua.Visuals.BindsPosX:set_visible(false)
   Lua.Visuals.BindsPosY:set_visible(false)
   Lua.Visuals.Indicators:set_visible(false)

   Lua.Misc.Enable:set_visible(false)

   if Lua.Menu.Tab:get() == 0 then
      Lua.Ragebot.Enable:set_visible(true)
   end

   if Lua.Menu.Tab:get() == 1 then
      Lua.Exploits.Enable:set_visible(true)

      --if Lua.Exploits.Enable:get() == true then
      --end
   end

   if Lua.Menu.Tab:get() == 2 then
      Lua.Antiaim.Enable:set_visible(true)

      if Lua.Antiaim.Enable:get() == true then
         Lua.Antiaim.YawJitter:set_visible(true)
         Lua.Antiaim.OriginalYaw:set_visible(true)
         Lua.Antiaim.YawJitterType:set_visible(true)
         Lua.Antiaim.YawJitterAmount:set_visible(true)
         Lua.Antiaim.Jitter:set_visible(true)
         Lua.Antiaim.JitterAmount:set_visible(true)
         Lua.Antiaim.FakeFlick:set_visible(true)
         Lua.Antiaim.FakeFlickKey:set_visible(true)
      end
   end

   if Lua.Menu.Tab:get() == 3 then
      Lua.Visuals.Enable:set_visible(true)

      if Lua.Visuals.Enable:get() == true then
         Lua.Visuals.Theme:set_visible(true)
         Lua.Visuals.Watermark:set_visible(true)
         Lua.Visuals.Keybinds:set_visible(true)
         Lua.Visuals.BindsPosX:set_visible(true)
         Lua.Visuals.BindsPosY:set_visible(true)
         Lua.Visuals.Indicators:set_visible(true)
      end
   end

   if Lua.Menu.Tab:get() == 4 then
      Lua.Misc.Enable:set_visible(true)

      --if Lua.Misc.Enable:get() == true then
      --end
   end


   -- Proper optimisation
   if Lua.Ragebot.Enable:get() == true then
      Ragebot()
   end

   if Lua.Exploits.Enable:get() == true then
      Exploits()
   end

   if Lua.Antiaim.Enable:get() == true then
      AntiAim()
   end

   if Lua.Visuals.Enable:get() == true and engine.is_connected() then
      Keybinds()
      ManualIndicator()
   end

   if Lua.Misc.Enable:get() == true then
      Misc()
   end
end

callbacks.register("paint", HookedRender);

-- My leaked skeet legs + static legs in air
callbacks.register("post_anim_update", function(ent)
   local m_flPoseParameter = ent:get_prop("DT_BaseAnimating", "m_flPoseParameter");
   m_flPoseParameter:set_float_index(6, 1);
   m_flPoseParameter:set_float_index(0, 1);
end)
Так как я вгетал опять вантап, ждите чуда на вантапчик думаю (кстати он на данный момент стреляет очень ахуенно по сравнению с нлом, за все время он не менялся и что раньше шмалял ахуенно и что сейчас хз)
 
Последнее редактирование:
Сверху Снизу