Created
February 21, 2023 21:41
-
-
Save h4xrOx/3c786f4bffb84cc095700eb2bea9309f to your computer and use it in GitHub Desktop.
cheat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cl_showfps 1 | |
| maxplayers 1 | |
| sv_cheats 1 | |
| +sv_pure 1 | |
| alias GAMESENSE "" | |
| alias GAMESENS "" | |
| alias GAMESEN "" | |
| alias GAMESE "" | |
| alias GAMES "" | |
| alias GAME "" | |
| alias GAM "" | |
| alias GA "" | |
| alias G "" | |
| alias G "cl_clanid 35297413 ;alias Clantag GA" | |
| alias GA "cl_clanid 35297418 ;alias Clantag GAM" | |
| alias GAM "cl_clanid 35297419 ;alias Clantag GAME" | |
| alias GAME "cl_clanid 35297422 ;alias Clantag GAMES" | |
| alias GAMES "cl_clanid 35297426 ;alias Clantag GAMESE" | |
| alias GAMESE "cl_clanid 35297431 ;alias Clantag GAMESEN" | |
| alias GAMESEN "cl_clanid 35297438 ;alias Clantag GAMESENS" | |
| alias GAMESENS "cl_clanid 35297445 ;alias Clantag GAMESENSE" | |
| alias GAMESENSE "cl_clanid 35297410 ;alias Clantag GAMESENS2" | |
| alias GAMESENS2 "cl_clanid 35297445 ;alias Clantag GAMESEN2" | |
| alias GAMESEN2 "cl_clanid 35297438 ;alias Clantag GAMESE2" | |
| alias GAMESE2 "cl_clanid 35297431 ;alias Clantag GAMES2" | |
| alias GAMES2 "cl_clanid 35297426 ;alias Clantag GAME2" | |
| alias GAME2 "cl_clanid 35297422 ;alias Clantag GAM2" | |
| alias GAM2 "cl_clanid 35297419 ;alias Clantag GA2" | |
| alias GA2 "cl_clanid 35297418 ;alias Clantag G" | |
| alias Clantag "G" | |
| # CheatVar | |
| {% hint style="info" %} | |
| You can access `CheatVar` instance through [g\_Config](../classes/Config.md) | |
| {% endhint %} | |
| ## Functions | |
| ## GetBool | |
| ### Return value: | |
| | Name | Type | Description | | |
| | :--- | :--- | :--- | | |
| | value | bool | CheatVar value as a bool | | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | el\_index | int | Element index for multicombo cheatvar | - | | |
| ```lua | |
| local val = var:GetBool() | |
| ``` | |
| ## GetFloat | |
| ### Return value: | |
| | Name | Type | Description | | |
| | :--- | :--- | :--- | | |
| | value | float | CheatVar value as a float | | |
| ```lua | |
| local val = var:GetFloat() | |
| ``` | |
| ## GetInt | |
| ### Return value: | |
| | Name | Type | Description | | |
| | :--- | :--- | :--- | | |
| | value | int | CheatVar value as int | | |
| ```lua | |
| local val = var:GetInt() | |
| ``` | |
| ## GetColor | |
| ### Return value: | |
| | Name | Type | Description | | |
| | :--- | :--- | :--- | | |
| | value | Color | CheatVar value as Color | | |
| ```lua | |
| local val = var:GetColor() | |
| ``` | |
| ## GetString | |
| ### Return value: | |
| | Name | Type | Description | | |
| | :--- | :--- | :--- | | |
| | value | string | CheatVar value as string | | |
| ```lua | |
| local val = var:GetString() | |
| ``` | |
| ## SetBool | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | el\_index | int | Element index for multicombo cheatvar | - | | |
| | value | bool | New bool value | + | | |
| ```lua | |
| local ref_fake_options = g_Config:FindVar("Aimbot", "Anti Aim", "Fake Angle", "Fake Options") | |
| ref_fake_options:SetBool(3, true) | |
| ``` | |
| ## SetInt | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | int | New int value | + | | |
| ```lua | |
| var:SetInt(1) | |
| ``` | |
| ## SetFloat | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | float | New float value | + | | |
| ```lua | |
| var:SetFloat(1.5) | |
| ``` | |
| ## SetColor | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | Color | New Color value | + | | |
| ```lua | |
| var:SetColor(Color.new(1, 1, 1, 1)) | |
| ``` | |
| ## SetString | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | string | New string value | + | | |
| ```lua | |
| var:SetString("Hello") | |
| ``` | |
| ## RegisterCallback | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | function | Callback | + | | |
| ```lua | |
| var:RegisterCallback(function() | |
| print("callback!") | |
| end) | |
| ``` | |
| ## SetVisible | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | bool | Item visibility | + | | |
| ```lua | |
| var:SetVisible(false) | |
| ``` | |
| ## DestroyItem | |
| {% hint style="warning" %} | |
| DestroyItem was previously incorrectly listed here. It has been moved to to the [Menu API](../other/menuapi.md#destroyitem) | |
| {% endhint %} | |
| ## SetTooltip | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | value | string | Tooltip content | + | | |
| ```lua | |
| var:SetTooltip("Tooltip") | |
| ``` | |
| ## UpdateList | |
| ### Parameters: | |
| | Name | Type | Description | Required | | |
| | :--- | :--- | :--- | :--- | | |
| | new combo items | table | Combo Items | + | | |
| ```lua | |
| local combo = menu.Combo("Neverlose", "Combo", {"Element 1", "Element 2", "Element 3"}, 0, "Tooltip") | |
| menu.Button("neverlose", "update"):RegisterCallback(function() | |
| combo:UpdateList({"el1", "el2"}) | |
| end) | |
| ``` | |
| ## GetList | |
| ### Return value: | |
| | Name | Type | Description | | |
| | :--- | :--- | :--- | | |
| | Combo elements | table | Returns all elements in combo | | |
| ```lua | |
| local bodyAim = g_Config:FindVar("Aimbot", "Ragebot", "Accuracy", "Body Aim") | |
| local list = bodyAim:GetList() | |
| for _, item in ipairs(list) do | |
| print(item) | |
| end | |
| ``` | |
| bind "key" "Clantag" | |
| //antiaim | |
| var jitter_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset") | |
| var yaw_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset") | |
| function lowdeltaslow() { | |
| localplayer_index = Entity.GetLocalPlayer(); | |
| if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "AA on slowwalk") && UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) { | |
| UI.SetValue("Anti-Aim", "Fake-Lag", "Jitter", 0); | |
| UI.SetValue("Anti-Aim", "Fake-Lag", "Trigger limit", 16); | |
| UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", 16); | |
| UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", -10); | |
| UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 40); | |
| AntiAim.SetOverride(1); | |
| AntiAim.SetFakeOffset(0); | |
| AntiAim.SetRealOffset(-13); | |
| } else { | |
| UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_cache); | |
| AntiAim.SetOverride(0); | |
| } | |
| if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "AA on slowwalk") && !UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) { | |
| UI.SetValue("Anti-Aim", "Fake-Lag", "Jitter", 100); | |
| UI.SetValue("Anti-Aim", "Fake-Lag", "Trigger limit", 16); | |
| UI.SetValue("Anti-Aim", "Fake-Lag", "Limit", 0); | |
| UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0); | |
| UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 5); | |
| AntiAim.SetOverride(1); | |
| AntiAim.SetFakeOffset(0); | |
| AntiAim.SetRealOffset(-29); | |
| } | |
| } | |
| Cheat.RegisterCallback("CreateMove", "lowdeltaslow"); | |
| //local tracer | |
| var x = 0, | |
| y = 0, | |
| z = 0; | |
| var eye_angles = [0, 0, 0]; | |
| var wts_impact = [0, 0, 0]; | |
| var render_time = 0; | |
| function bullet_impact() { | |
| if (!UI.GetValue("Local Bullet Tracer")) | |
| return; | |
| player = Event.GetInt("userid"); | |
| player_id = Entity.GetEntityFromUserID(player); | |
| impact_x = Event.GetFloat("x"), impact_y = Event.GetFloat("y"), impact_z = Event.GetFloat("z"); | |
| if (Entity.GetLocalPlayer() !== player_id) | |
| return; | |
| x = impact_x; | |
| y = impact_y; | |
| z = impact_z; | |
| eye_angles = Entity.GetEyePosition(Entity.GetLocalPlayer()); | |
| render_time = Globals.Curtime(); | |
| } | |
| function drawed() { | |
| if (!UI.GetValue("Local Bullet Tracer")) | |
| return; | |
| wts_impact = Render.WorldToScreen([x, y, z]); | |
| wts_eye_angles = Render.WorldToScreen([eye_angles[0], eye_angles[1], eye_angles[2]]); | |
| if (wts_impact[2] === 1 && wts_eye_angles[2] === 1 //remove this and experience a mess | |
| && | |
| (Globals.Curtime() - render_time) < 4) //4s just as the client/server impacts | |
| Render.Line(wts_eye_angles[0], wts_eye_angles[1], wts_impact[0], wts_impact[1], [61, 135, 224, 230]); | |
| } | |
| Cheat.RegisterCallback("bullet_impact", "bullet_impact"); | |
| Cheat.RegisterCallback("Draw", "drawed"); | |
| //keybinds | |
| const keybinds_x = UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]) | |
| const keybinds_y = UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]) | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x", 0); | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y", 655); | |
| function in_bounds(vec, x, y, x2, y2) { | |
| return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2) | |
| } | |
| function xy() { | |
| UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_x", false) | |
| UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_y", false) | |
| } | |
| xy(); | |
| function keybinds() { | |
| if (UI.GetValue("Script items", "Enable binds list")) { | |
| var h = []; | |
| const fontpixel = Render.AddFont("MuseoSansCyrl-500", 12, 100); | |
| const fontpixel1 = Render.AddFont("MuseoSansCyrl-500", 13, 100); | |
| var lflt = UI.GetValue("Anti-aim", "Fake-Lag", "Limit"); | |
| if (UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled") && lflt > 0) { | |
| h.push("Fakelag - " + lflt) | |
| } | |
| if (UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Manual dir")) { | |
| h.push("Manual direction") | |
| } | |
| if (UI.GetValue("Misc", "GENERAL", "Movement", "Auto bunnyhop") && Input.IsKeyPressed(0x20)) { | |
| h.push("Strafe") | |
| } | |
| if (UI.IsHotkeyActive("Visual", "WORLD", "View", "Thirdperson")) { | |
| h.push("Thirdperson") | |
| } | |
| if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) { | |
| h.push("Slow walk") | |
| } | |
| if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) { | |
| h.push("Fake duck") | |
| } | |
| if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) { | |
| h.push("Auto peek") | |
| } | |
| if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) { | |
| h.push("Inverter") | |
| } | |
| if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) { | |
| h.push("Safe point") | |
| } | |
| if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum damage override")) { | |
| h.push("Dmg override") | |
| } | |
| if (UI.IsHotkeyActive("Rage", "General", "General", "Force body aim")) { | |
| h.push("Body aim") | |
| } | |
| if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Desync on shot")) { | |
| h.push("On shot anti-aim") | |
| } | |
| if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) { | |
| h.push("Hide shots") | |
| } | |
| if (UI.IsHotkeyActive("Legit", "GENERAL", "Triggerbot", "Enabled")) { | |
| h.push("Triggerbot") | |
| } | |
| if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Resolver override")) { | |
| h.push("Resolver override") | |
| } | |
| if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) { | |
| h.push("Double Tap") | |
| } | |
| const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x"), | |
| y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y"); | |
| const rainbow = [ | |
| Math.floor(Math.sin(Global.Realtime() * 2) * 127 + 128), | |
| Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128), | |
| Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128), | |
| 255 | |
| ]; | |
| Render.FilledRect(x, y, 200, 26, [0, 0, 10, 255]); | |
| Render.FilledRect(x + 1, y - 1, 198, 2, [0, 0, 10, 255]); | |
| Render.FilledRect(x + 2, y - 2, 196, 2, [0, 0, 10, 255]); | |
| Render.StringCustom(x + 39, y + 1, 0, "Binds", [255, 255, 255, 255], fontpixel1); | |
| Render.FilledRect(x + 7, y + 3, 24, 16, [34, 179, 246, 255]); | |
| Render.FilledRect(x + 8, y + 2, 24, 16, [34, 179, 246, 255]); | |
| Render.FilledRect(x + 10, y + 5, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 14, y + 5, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 18, y + 5, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 22, y + 5, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 26, y + 5, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 12, y + 9, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 16, y + 9, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 20, y + 9, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 24, y + 9, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 10, y + 13, 3, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 14, y + 13, 11, 3, [0, 0, 10, 255]) | |
| Render.FilledRect(x + 26, y + 13, 3, 3, [0, 0, 10, 255]) | |
| for (i = 0; i < h.length; i++) { | |
| Render.StringCustom(x + 4, y + 25 + 20 * i, 0, h[i], [255, 255, 255, 255], fontpixel); | |
| Render.StringCustom(x + 176, y + 25 + 20 * i, 0, "on", [255, 255, 255, 255], fontpixel); | |
| } | |
| if (Global.IsKeyPressed(1)) { | |
| const mouse_pos = Global.GetCursorPosition(); | |
| if (in_bounds(mouse_pos, x - 10, y - 10, x + 220, y + 50)) { | |
| if (UI.IsMenuOpen() == false) | |
| return; | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x", mouse_pos[0] - 100); | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y", mouse_pos[1] - 5); | |
| } | |
| } | |
| } | |
| } | |
| Global.RegisterCallback("Draw", "keybinds"); | |
| //spactator list | |
| UI.AddSliderInt("Specs_x", 0, Render.GetScreenSize()[0]) | |
| UI.AddSliderInt("Specs_y", 0, Render.GetScreenSize()[1]) | |
| UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Specs_x", false) | |
| UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Specs_y", false) | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Specs_x", 250); | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Specs_y", 655); | |
| function get_spectators() { | |
| var specs = []; | |
| const players = Entity.GetPlayers(); | |
| for (i = 0; i < players.length; i++) { | |
| const cur = players[i]; | |
| if (Entity.GetProp(cur, "CBasePlayer", "m_hObserverTarget") != "m_hObserverTarget") { | |
| const obs = Entity.GetProp(cur, "CBasePlayer", "m_hObserverTarget") | |
| if (obs === Entity.GetLocalPlayer()) { | |
| const name = Entity.GetName(cur); | |
| specs.push(name); | |
| } | |
| } | |
| } | |
| return specs; | |
| } | |
| function Spectatorss() { | |
| if (UI.GetValue("Script items", "Enable spectators list")) { | |
| const fontpixel = Render.AddFont("MuseoSansCyrl-500", 12, 100); | |
| const fontpixel1 = Render.AddFont("MuseoSansCyrl-500", 13, 100); | |
| var icons = Render.AddFont("raphaelicons", 19, 500) | |
| const names = get_spectators(); | |
| const x1 = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Specs_x"), | |
| y1 = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Specs_y"); | |
| //Light bottom | |
| Render.FilledRect(x1, y1, 200, 26, [0, 0, 10, 255]); | |
| Render.FilledRect(x1 + 1, y1 - 1, 198, 2, [0, 0, 10, 255]); | |
| Render.FilledRect(x1 + 2, y1 - 2, 196, 2, [0, 0, 10, 255]); | |
| //Dark Top rectangle | |
| Render.FilledRect(x1, y1, 200, 26, [0, 0, 10, 255]); | |
| Render.FilledRect(x1 + 1, y1 - 1, 198, 2, [0, 0, 10, 255]); | |
| Render.FilledRect(x1 + 2, y1 - 2, 196, 2, [0, 0, 10, 255]); | |
| //Logo | |
| Render.StringCustom(x1 + 5, y1, 0, "K", [34, 179, 246, 255], icons); | |
| //Spectators text | |
| Render.StringCustom(x1 + 30, y1 + 1, 0, "Spectators", [255, 255, 255, 255], fontpixel1); | |
| //Logo ENd | |
| //Render Active Keybind | |
| for (i = 0; i < names.length; i++) { | |
| Render.StringCustom(x1 + 5, y1 + 25 + 25 * i, 0, names[i], [255, 255, 255, 255], fontpixel); | |
| } | |
| //Move menu | |
| if (Global.IsKeyPressed(1)) { | |
| const mouse_pos = Global.GetCursorPosition(); | |
| if (in_bounds(mouse_pos, x1, y1, x1 + 200, y1 + 26)) { | |
| if (UI.IsMenuOpen() == false) | |
| return; | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Specs_x", mouse_pos[0] - 100); | |
| UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Specs_y", mouse_pos[1] - 15); | |
| } | |
| } | |
| } | |
| } | |
| Global.RegisterCallback("Draw", "Spectatorss"); | |
| //resolver | |
| /* | |
| UI.AddCheckbox("Better resolver") | |
| var onres = UI.GetValue("Script items", "Better resolver") | |
| var isKeyActive = UI.IsHotkeyActive( "Rage", "GENERAL", "General", "Resolver override" ); | |
| function betterresik() | |
| { | |
| if (onres = true) | |
| { | |
| if (offover = true) | |
| { | |
| UI.ToggleHotkey("Rage", "GENERAL", "General", "Resolver override") | |
| } | |
| else if (offover = false) | |
| { | |
| UI.ToggleHotkey("Rage", "GENERAL", "General", "Resolver override") | |
| } | |
| } | |
| else | |
| { | |
| } | |
| } | |
| Cheat.RegisterCallback("CreateMove", "betterresik"); | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how can i load this?