Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- MENU
- */
- local options = {
- ["AIM"] =
- {
- ["Active"] = {"Checkbox", 1, false, "Active"},
- ["OnKey"] = {"Checkbox", 2, true, "On Key"},
- ["AutoShoot"] = {"Checkbox", 3, true, "Auto Shoot"},
- ["AutoPistol"] = {"Checkbox", 4, true, "Auto Pistol"},
- ["BulletTime"] = {"Checkbox", 5, false, "Bullet Time"},
- ["AutoAim"] = {"Checkbox", 6, false, "Auto Aim"},
- ["AutoDuck"] = {"Checkbox", 7, false, "Auto Duck"},
- ["IgnoreTeam"] = {"Checkbox", 8, false, "Ignore Team"}
- },
- ["TRIG"] =
- {
- ["Active"] = {"Checkbox", 1, false, "Active"}
- },
- ["VIS"] =
- {
- ["Active"] = {"Checkbox", 1, true, "Active"},
- ["Box"] = {"Checkbox", 2, true, "Box"},
- ["FilledBox"] = {"Checkbox", 3, true, "Filled Box"},
- ["Snapline"] = {"Checkbox", 4, true, "Snapline"},
- ["HealthBar"] = {"Checkbox", 5, true, "Healthbar"},
- ["ArmourBar"] = {"Checkbox", 6, true, "Armourbar"},
- ["Barrel"] = {"Checkbox", 7, true, "Barrel"},
- ["AimPos"] = {"Checkbox", 8, true, "Aim Pos"},
- ["Skeleton"] = {"Checkbox", 9, true, "Skeleton"},
- ["Chams"] = {"Checkbox", 10, true, "Chams"},
- ["Health"] = {"Checkbox", 11, true, "Health"},
- ["Name"] = {"Checkbox", 12, true, "Name"},
- ["Weapon"] = {"Checkbox", 13, true, "Weapon"},
- ["Distance"] = {"Checkbox", 14, true, "Distance"},
- ["Money"] = {"Checkbox", 15, true, "Money"},
- ["Rank"] = {"Checkbox", 16, true, "Rank"},
- ["SteamID"] = {"Checkbox", 17, true, "SteamID"},
- ["Points"] = {"Checkbox", 18, true, "Points"},
- ["Armour"] = {"Checkbox", 19, true, "Armour"},
- ["HitBox"] = {"Checkbox", 20, false, "HitBox"},
- ["FilledHitBox"] = {"Checkbox", 21, false, "Filled HitBox"},
- ["Beacon"] = {"Checkbox", 22, false, "Beacon"},
- ["AsusWalls"] = {"Checkbox", 23, false, "ASUS Walls"},
- ["BoxType"] = {"Selection", 1, "2D", "Box Type", {"2D", "3D"}},
- ["BoxStyle"] = {"Selection", 2, "IWebz", "Box Style", {"Default", "IWebz"}},
- ["SnapLineType"] = {"Selection", 3, "Center", "SnapLine Type", {"Bottom", "Center"}},
- ["HealthBarStyle"] = {"Selection", 4, "Fami", "HealthBar Style", {"Aria", "Default", "Fami", "Naisho"}},
- ["ArmourBarStyle"] = {"Selection", 5, "Fami", "ArmourBar Style", {"Aria", "Default", "Fami"}},
- ["ChamsType"] = {"Selection", 6, "XQZ", "Chams Type", {"Solid", "Wireframe", "XQZ"}},
- ["DistanceType"] = {"Selection", 7, "Metres", "Distance Type", {"Feet", "Metres", "Units"}},
- ["AsusWallsInt"] = {"Slider", 8, 0.95, "ASUS Walls Int", {0.5, 0.99, 2}}
- },
- ["RAD"] =
- {
- ["Active"] = {"Checkbox", 1, false, "Active"}
- },
- ["REM"] =
- {
- ["Active"] = {"Checkbox", 1, true, "Active"},
- ["NoSpread"] = {"Checkbox", 2, false, "No Spread"},
- ["NoRecoil"] = {"Checkbox", 3, true, "No Recoil"},
- ["NoVisRecoil"] = {"Checkbox", 4, true, "No Visual Recoil"}
- },
- ["HVH"] =
- {
- ["Active"] = {"Checkbox", 1, false, "Active"}
- },
- ["MISC"] =
- {
- ["Active"] = {"Checkbox", 1, true, "Active"},
- ["BunnyHop"] = {"Checkbox", 2, true, "Bunny Hop"},
- ["AutoStrafer"] = {"Checkbox", 3, true, "Auto Strafer"},
- ["NameStealer"] = {"Checkbox", 4, false, "Name Stealer"},
- ["AutoPistol"] = {"Checkbox", 5, true, "Auto Pistol"},
- ["Fov"] = {"Checkbox", 6, true, "FoV"},
- ["ThirdPerson"] = {"Checkbox", 7, false, "Third Person"},
- ["EdgeJump"] = {"Checkbox", 8, true, "Edge Jump"},
- ["AutoStraferType"] = {"Selection", 1, "Forwards", "Auto-Strafer Type", {"Forwards", "Sideways", "W-Hop"}},
- ["NameStealerType"] = {"Selection", 2, "Steam", "Name Stealer Type", {"Steam", "DarkRP"}},
- ["NameStealerInt"] = {"Slider", 3, 5, "Name Stealer Int", {1, 30, 0}},
- ["FovInt"] = {"Slider", 4, 120, "FoV Int", {90, 150, 0}},
- ["ThirdPersonInt"] = {"Slider", 5, 20, "ThirdPerson Int", {10, 20, 0}}
- },
- ["COL"] =
- {
- ["Active"] = {"Checkbox", 1, false, "Active"}
- }
- };
- local function gBool(k, _k)
- return options[k][_k][3];
- end
- local function gOption(k, _k)
- return tostring(options[k][_k][3]);
- end
- local function gInt(k, _k)
- return options[k][_k][3];
- end
- local function Menu()
- surface.SetFont("Trebuchet18");
- local Menu = vgui.Create("DFrame")
- Menu:SetSize(600, 400)
- Menu:ShowCloseButton(true)
- Menu:SetTitle("")
- Menu:MakePopup()
- Menu:Center()
- function Menu.Paint(self)
- draw.RoundedBox(0, 0, 0, self:GetWide(), self:GetTall(), Color(60, 60, 60))
- draw.RoundedBox(0, 0, 0, self:GetWide(), 22, Color(255, 100, 100))
- draw.SimpleText("GenericBot", "ChatFont", self:GetWide()*0.5 - 30, 4, color_white)
- end
- local PSheet = vgui.Create("DPropertySheet", Menu)
- PSheet:Dock(FILL)
- local AimBot = vgui.Create("DPanel")
- PSheet:AddSheet(" Aimbot ", AimBot, false, false, false)
- local TriggerBot = vgui.Create("DPanel")
- PSheet:AddSheet(" Triggerbot ", TriggerBot, false, false, false)
- local Visuals = vgui.Create("DPanel")
- PSheet:AddSheet(" Visuals ", Visuals, false, false, false)
- local Radar = vgui.Create("DPanel")
- PSheet:AddSheet(" Radar ", Radar, false, false, false)
- local Removals = vgui.Create("DPanel")
- PSheet:AddSheet(" Removals ", Removals, false, false, false)
- local HvH = vgui.Create("DPanel")
- PSheet:AddSheet(" HvH ", HvH, false, false, false)
- local Misc = vgui.Create("DPanel")
- PSheet:AddSheet(" Miscellaneous ", Misc, false, false, false)
- local Configs = vgui.Create("DPanel")
- PSheet:AddSheet(" Configs ", Configs, false, false, false)
- local Colors = vgui.Create("DPanel")
- PSheet:AddSheet(" Colors ", Colors, false, false, false)
- local Credits = vgui.Create("DPanel")
- PSheet:AddSheet(" Credits ", Credits, false, false, false)
- local Sheets =
- {
- ["AIM"] = AimBot;
- ["TRIG"] = TriggerBot;
- ["VIS"] = Visuals;
- ["RAD"] = Radar;
- ["REM"] = Removals;
- ["MISC"] = Misc;
- ["HVH"] = HvH;
- ["COL"] = Colors;
- };
- local function AddCheckBox(k, _k)
- local x = 10 + math.floor(options[k][_k][2]/11.5) * 100;
- local y = 10 - math.floor(options[k][_k][2]/11.5) * 330 + (options[k][_k][2]-1) * 30;
- local checkbox = vgui.Create("DCheckBoxLabel", Sheets[k]);
- checkbox:SetPos(x, y);
- checkbox:SetText(options[k][_k][4]);
- checkbox:SetValue(options[k][_k][3])
- checkbox.OnChange = function()
- options[k][_k][3] = !options[k][_k][3];
- end
- checkbox:SetTextColor(Color(5,5,5))
- checkbox:SizeToContents()
- end
- local function AddSelectionBox(k, _k)
- local selectionx = 0;
- for _, text in next, options[k][_k][5] do
- local textx = select(1, surface.GetTextSize(tostring(text)))
- selectionx = math.max(selectionx, textx);
- end
- local titlex = select(1, surface.GetTextSize(tostring(options[k][_k][4] .. ":"))) - 5;
- local y = 5 + (options[k][_k][2]-1) * 30;
- local _selectbox = vgui.Create( "DLabel", Sheets[k])
- _selectbox:SetPos(510 - selectionx - titlex,y + 2)
- _selectbox:SetSize(titlex,14)
- _selectbox:SetColor(Color(5,5,5))
- _selectbox:SetText(options[k][_k][4] .. ":")
- local selectbox = vgui.Create("DComboBox", Sheets[k])
- selectbox:SetPos(510 - selectionx, y)
- selectbox:SetSize(selectionx + 60, 20)
- selectbox:SetValue(options[k][_k][3])
- for __k, __v in next, options[k][_k][5] do
- selectbox:AddChoice(__v);
- end
- selectbox.OnSelect = function()
- options[k][_k][3] = selectbox:GetSelected();
- end
- end
- local function AddSlider(k, _k)
- local titlex = select(1, surface.GetTextSize(tostring(options[k][_k][4] .. ":"))) - 5;
- local y = 5 + (options[k][_k][2]-1) * 30;
- local _slider = vgui.Create( "DLabel", Sheets[k])
- _slider:SetPos(420 - titlex, y + 2)
- _slider:SetSize(titlex,14)
- _slider:SetColor(Color(5,5,5))
- _slider:SetText(options[k][_k][4] .. ":")
- local slider = vgui.Create("DNumSlider", Sheets[k])
- slider:SetPos(290, y)
- slider:SetSize(300, 20)
- slider:SetMin(options[k][_k][5][1])
- slider:SetMax(options[k][_k][5][2])
- slider:SetDecimals(options[k][_k][5][3])
- slider:SetValue(options[k][_k][3])
- slider.OnValueChanged = function()
- options[k][_k][3] = slider:GetValue();
- end
- end
- for k,v in next, options do
- for _k,_v in next, options[k] do
- if (options[k][_k][1] == "Checkbox") then
- AddCheckBox(k,_k);
- elseif (options[k][_k][1] == "Selection") then
- AddSelectionBox(k, _k);
- elseif (options[k][_k][1] == "Slider") then
- AddSlider(k, _k);
- end
- end
- end
- end
- concommand.Add("Menu", Menu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement