//Coder's = magister#3896 & dfrnz#1337
//Print text in console
Cheat.PrintColor([125, 150, 255, 255], "███╗░░░███╗░█████╗░███╗░░██╗░█████╗░████████╗██╗░░██╗ \n");
Cheat.PrintColor([125, 150, 255, 255], "████╗░████║██╔══██╗████╗░██║██╔══██╗╚══██╔══╝██║░░██║ \n");
Cheat.PrintColor([125, 150, 255, 255], "██╔████╔██║██║░░██║██╔██╗██║███████║░░░██║░░░███████║ \n");
Cheat.PrintColor([125, 150, 255, 255], "██║╚██╔╝██║██║░░██║██║╚████║██╔══██║░░░██║░░░██╔══██║ \n");
Cheat.PrintColor([125, 150, 255, 255], "██║░╚═╝░██║╚█████╔╝██║░╚███║██║░░██║░░░██║░░░██║░░██║ \n");
Cheat.PrintColor([125, 150, 255, 255], "╚═╝░░░░░╚═╝░╚════╝░╚═╝░░╚══╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝ \n");
Cheat.PrintColor([125, 150, 255, 255], "Discord server: https://discord.gg/cAjszZXERp \n");
UI.AddLabel("Discord: discord.gg/cAjszZXERp");
UI.AddDropdown("Section", [ "Rage", "Anti-Aim", "Visuals", "Misc", "Settings"]); //UI element for tabs(sections)
function menu_sections() { //Function for tabs(sections)
var is_section_rage = UI.GetValue("Script items", "Section") == 0 ? 1 : 0, //If section == rage will show only rage UI elements // это если надо чтобы показывалось только в рейдже
is_section_antiaim = UI.GetValue("Script items", "Section") == 1 ? 1 : 0, //If section == anti-aims will show only anti-aims UI elements // это если надо чтобы показывалось только в анти аимах
is_section_visuals = UI.GetValue("Script items", "Section") == 2 ? 1 : 0, //If section == visuals will show only visuals UI elements // это если надо чтобы показывалось только в визуалах
is_section_misc = UI.GetValue("Script items", "Section") == 3 ? 1 : 0, //If section == misc will show only misc UI elements // это если надо чтобы показывалось только в мисках
is_section_settings = UI.GetValue("Script items", "Section") == 4 ? 1 : 0; //If section == settings will show only settings UI elements // это если надо чтобы показывалось только в сеттингсах
// и еще && UI.GetValue("Script items", "НАЗВАНИЕ") ? 1 : 0 это проверка на чекбокс (ну типо секция + включен ли чекбокс)
UI.SetEnabled("Script items", "Min DMG", is_section_rage),
UI.SetEnabled("Script items", "MinDMG key", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0),
UI.SetEnabled("Script items", "MinDMG - GENERAL", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0),
UI.SetEnabled("Script items", "MinDMG - PISTOL", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0),
UI.SetEnabled("Script items", "MinDMG - HEAVY PISTOL", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0),
UI.SetEnabled("Script items", "MinDMG - SCOUT", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0),
UI.SetEnabled("Script items", "MinDMG - AWP", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0),
UI.SetEnabled("Script items", "MinDMG - AUTOSNIPER", is_section_rage && UI.GetValue("Script items", "Min DMG") ? 1 : 0);
UI.SetEnabled("Script items", "Prefer baim on dt", is_section_rage);
UI.SetEnabled("Script items", "Prefer safepoint on dt", is_section_rage);
UI.SetEnabled("Script items", "Force head key", is_section_rage);
UI.SetEnabled("Script items", "Safe head", is_section_antiaim),
UI.SetEnabled("Script items", "Safe head key", is_section_antiaim && UI.GetValue("Script items", "Safe head") ? 1 : 0);
UI.SetEnabled('Script items', 'Enable keybinds', is_section_visuals),
UI.SetEnabled('Script items', 'Keybinds design', is_section_visuals && UI.GetValue('Script items', 'Enable keybinds') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'Keybinds color', is_section_visuals && UI.GetValue('Script items', 'Keybinds design') == 0 && UI.GetValue('Script items', 'Enable keybinds') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'first color ', is_section_visuals && (UI.GetValue('Script items', 'Keybinds design') == 1 || UI.GetValue('Script items', 'Keybinds design') == 2) && UI.GetValue('Script items', 'Enable keybinds') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'second color ', is_section_visuals && (UI.GetValue('Script items', 'Keybinds design') == 1 || UI.GetValue('Script items', 'Keybinds design') == 2) && UI.GetValue('Script items', 'Enable keybinds') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'third color ', is_section_visuals && UI.GetValue('Script items', 'Keybinds design') == 2 && UI.GetValue('Script items', 'Enable keybinds') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'Enable spectators list', is_section_visuals),
UI.SetEnabled('Script items', 'Spectators list design', is_section_visuals && UI.GetValue('Script items', 'Enable spectators list') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'Spectators list color', is_section_visuals && UI.GetValue('Script items', 'Spectators list design') == 0 && UI.GetValue('Script items', 'Enable spectators list') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'first color ', is_section_visuals && (UI.GetValue('Script items', 'Spectators list design') == 1 || UI.GetValue('Script items', 'Spectators list design') == 2) && UI.GetValue('Script items', 'Enable spectators list') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'second color ', is_section_visuals && (UI.GetValue('Script items', 'Spectators list design') == 1 || UI.GetValue('Script items', 'Spectators list design') == 2) && UI.GetValue('Script items', 'Enable spectators list') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'third color ', is_section_visuals && UI.GetValue('Script items', 'Spectators list design') == 2 && UI.GetValue('Script items', 'Enable spectators list') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'Enable ideal yaw indicators', is_section_visuals),
UI.SetEnabled('Script items', 'Centered text', is_section_visuals && UI.GetValue('Script items', 'Enable ideal yaw indicators') ? 1 : 0), //Set visible colorpicker
UI.SetEnabled('Script items', 'Outline text', is_section_visuals && UI.GetValue('Script items', 'Enable ideal yaw indicators') ? 1 : 0), //Set visible colorpicker
UI.SetEnabled('Script items', 'Outline text color', is_section_visuals && UI.GetValue('Script items', 'Outline text') && UI.GetValue('Script items', 'Enable ideal yaw indicators') ? 1 : 0); //Hide outline text color if main checkbox disabled
UI.SetEnabled('Script items', 'Enable watermark', is_section_visuals),
UI.SetEnabled('Script items', 'Watermark elements', is_section_visuals && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0); //Set visible multidropdown
if (UI.GetValue('Script items', 'Watermark elements') & (1<<1)) { UI.SetEnabled('Script items', 'Watermark player name', is_section_visuals && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0) } else { UI.SetEnabled('Script items', 'Watermark player name', 0) }
UI.SetEnabled('Script items', 'Watermark design', is_section_visuals && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0); //Set visible multidropdown
UI.SetEnabled('Script items', 'Watermark color', is_section_visuals && UI.GetValue('Script items', 'Watermark design') == 0 && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'first color', is_section_visuals && (UI.GetValue('Script items', 'Watermark design') == 1 || UI.GetValue('Script items', 'Watermark design') == 2) && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'second color', is_section_visuals && (UI.GetValue('Script items', 'Watermark design') == 1 || UI.GetValue('Script items', 'Watermark design') == 2) && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0); //Set visible colorpicker
UI.SetEnabled('Script items', 'third color', is_section_visuals && UI.GetValue('Script items', 'Watermark design') == 2 && UI.GetValue('Script items', 'Enable watermark') ? 1 : 0); //Set visible colorpicker
}
Cheat.RegisterCallback("Draw", "menu_sections") //Register callback for function for tabs(sections)
//Rage function's
UI.AddCheckbox("Min DMG"),
UI.AddHotkey('MinDMG key'),
UI.AddSliderInt('MinDMG - GENERAL', 0, 130),
UI.AddSliderInt('MinDMG - PISTOL', 0, 130),
UI.AddSliderInt('MinDMG - HEAVY PISTOL', 0, 130),
UI.AddSliderInt('MinDMG - SCOUT', 0, 130),
UI.AddSliderInt('MinDMG - AWP', 0, 130),
UI.AddSliderInt('MinDMG - AUTOSNIPER', 0, 130);
w2t = {'glock 18': 'PISTOL','cz75 auto': 'PISTOL','p250': 'PISTOL','five seven': 'PISTOL','dual berettas': 'PISTOL','tec 9': 'PISTOL','usp s': 'PISTOL', 'p2000': 'PISTOL','desert eagle': 'HEAVY PISTOL',
'r8 revoler': 'HEAVY PISTOL','mac 10': 'GENERAL', 'mp9': 'GENERAL', 'mp7': 'GENERAL', 'ump 45': 'GENERAL', 'pp bizon': 'GENERAL', 'p90': 'GENERAL','galil ar': 'GENERAL','famas': 'GENERAL', 'ak 47': 'GENERAL',
'm4a4': 'GENERAL', 'm4a1 s': 'GENERAL','sg 553': 'GENERAL', 'aug': 'GENERAL','nova': 'GENERAL','xm1014': 'GENERAL','sawed off': 'GENERAL','mag 7': 'GENERAL','m249': 'GENERAL', 'negev': 'GENERAL',
'ssg 08': 'SCOUT','awp': 'AWP','scar 20': 'AUTOSNIPER','g3sg1': 'AUTOSNIPER'}
function minDMG() {
tab = w2t[Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))]
if (!UI.GetValue("Script items", "Min DMG")) return;
dmg = UI.GetValue('Script items', 'MinDMG - ' + tab)
enemies = Entity.GetEnemies()
for (var i in enemies) {
if (UI.IsHotkeyActive('Script items', 'MinDMG key')) {
Ragebot.ForceTargetMinimumDamage(enemies[i], dmg)
}
}
}
Cheat.RegisterCallback('CreateMove', 'minDMG')
UI.AddCheckbox("Prefer baim on dt");
function Prefer_baim_on_dt(){
if(! UI.GetValue("Script items", "Prefer baim on dt")) return;
if(UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap") && UI.GetValue("Rage", "GENERAL", "Exploits", "Doubletap") && Exploit.GetCharge() === 1) UI.SetValue("Rage", "AUTO", "Accuracy", "Prefer body aim", 1);
else UI.SetValue("Rage", "AUTOSNIPER", "Accuracy", "Prefer body aim", 0);
}
Cheat.RegisterCallback("Draw", "Prefer_baim_on_dt")
UI.AddCheckbox("Prefer safepoint on dt");
function Prefer_safepoint_on_dt(){
if(!UI.GetValue("Script items", "Prefer safepoint on dt")) return;
if(UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap") && UI.GetValue("Rage", "GENERAL", "Exploits", "Doubletap")) return;
enemies = Entity.GetEnemies();
for(i = 0; i < enemies.length; i++) {
if (!Entity.IsValid(enemies[i])) continue;
if (!Entity.IsAlive(enemies[i])) continue;
Ragebot.ForceTargetSafety(enemies[i]);
}
}
Cheat.RegisterCallback("CreateMove", "Prefer_safepoint_on_dt")
UI.AddHotkey('Force head key') //Add the hotkey of force head
w2t = {'glock 18': 'PISTOL','cz75 auto': 'PISTOL','p250': 'PISTOL','five seven': 'PISTOL','dual berettas': 'PISTOL','tec 9': 'PISTOL','usp s': 'PISTOL', 'p2000': 'PISTOL','desert eagle': 'HEAVY PISTOL',
'r8 revoler': 'HEAVY PISTOL','mac 10': 'GENERAL', 'mp9': 'GENERAL', 'mp7': 'GENERAL', 'ump 45': 'GENERAL', 'pp bizon': 'GENERAL', 'p90': 'GENERAL','galil ar': 'GENERAL','famas': 'GENERAL', 'ak 47': 'GENERAL',
'm4a4': 'GENERAL', 'm4a1 s': 'GENERAL','sg 553': 'GENERAL', 'aug': 'GENERAL','nova': 'GENERAL','xm1014': 'GENERAL','sawed off': 'GENERAL','mag 7': 'GENERAL','m249': 'GENERAL', 'negev': 'GENERAL',
'ssg 08': 'SCOUT','awp': 'AWP','scar 20': 'AUTOSNIPER','g3sg1': 'AUTOSNIPER'}
hitboxesBackup = UI.GetValue('Rage', 'SCOUT', 'Targeting', 'Hitboxes')
function force_head() {
tab = w2t[Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))]
if (!UI.IsHotkeyActive('Script items', 'Force head key')) {
if (backup) {
UI.SetValue('Rage', tab, 'Targeting', 'Hitboxes', hitboxesBackup)
backup = false
}
}
else {
UI.SetValue('Rage', tab, 'Targeting', 'Hitboxes', 1)
}
backup = true
}
Cheat.RegisterCallback('CreateMove', 'force_head') //Create callback of force head function
//Anti-aim function's
UI.AddCheckbox("Safe head"),
UI.AddHotkey("Safe head key");
function safe_head() {
var jitter_offset_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
var at_targets_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "At targets");
var auto_direction_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction");
if (!UI.GetValue("Script items", "Safe head")) return;
fakelby = getrandomvalue(0, 3) > 1 ? 15 : 5;
if (UI.IsHotkeyActive("Script items", "Safe head key")) { //Check for hotkey [if enable]
AntiAim.SetOverride(1); //Set AA override 1
AntiAim.SetFakeOffset(fakelby); //Set fake offset 15 or 5
AntiAim.SetRealOffset(0); //Set real offset 0 [full backward]
AntiAim.SetLBYOffset(fakelby); //Set lby offset 15 or 5
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 2); //Set jitter offset 2
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", 1); //Enable at targets
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", 0); //Disable autodirection
}
else { //Check for hotkey [if disable]
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset_cache);
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", at_targets_cache);
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", auto_direction_cache);
AntiAim.SetOverride(0); //Set AA override 0
}
}
getrandomvalue = function(min_value, max_value) { //Function for get random value
min_value = Math.ceil(min_value);
max_value = Math.floor(max_value);
return Math.floor(Math.random() * (max_value - min_value + 1)) + min_value;
};
Cheat.RegisterCallback("CreateMove", "safe_head") //Register callback for function for tabs(sections)
//Visuals function's
UI.AddCheckbox('Enable watermark') //Create the checkbox of watermark
UI.AddMultiDropdown('Watermark elements', ['JS name', 'Player name', 'Ping', 'Date',])
UI.AddDropdown('Watermark design', ['Default', 'Two gradients', 'Three gradients']) //Create watermark design dropdown
UI.AddTextbox('Watermark player name') //Create the text box of player name
UI.AddColorPicker('Watermark color'); UI.SetColor('Script items', 'Watermark color', [255,0,0,255]) //Create the colorpicker of watermark top rect; set default color in colorpicker
UI.AddColorPicker('first color'); UI.SetColor('Script items', 'first color', [255,0,0,255])
UI.AddColorPicker('second color'); UI.SetColor('Script items', 'second color', [138, 120, 255, 255])
UI.AddColorPicker('third1 color'); UI.SetEnabled('Script items', 'third1 color', 0)
UI.AddColorPicker('third color'); UI.SetColor('Script items', 'third color', [0, 221, 255, 255])
function watermark() {
if (!UI.GetValue('Script items', 'Enable watermark')) return
var text = '' //Create a variable with text
var multidropdown = UI.GetValue('Script items', 'Watermark elements') //Getting values from multidropdown
if (multidropdown & (1<<0)) { text += 'Monath.js '} //Checking if multidropdown including 'JS name'
var username = UI.GetString('Script items', 'Watermark player name') == '' ? Cheat.GetUsername() : UI.GetString('Script items', 'Watermark player name') //Getting the username
if (multidropdown & (1<<1)) { text += '| ' + username + ' '; } //Checking if multidropdown including 'Player name'
var ping = Math.round(Local.Latency() * 1000 - 16) //Getting the ping
if (multidropdown & (1<<2)) { text += '| ' + ping + ' '} //Checking if multidropdown including 'Ping'
var today = new Date(); //Getting the current date
var hours = today.getHours() <= 9 ? '0' + today.getHours()+ ':' : today.getHours() + ':' //Getting the hours (Pasted from magister)
var minutes = today.getMinutes() <= 9 ? '0' + today.getMinutes() + ':' : today.getMinutes()+ ':' //Getting the minutes (Pasted from magister)
var seconds = today.getSeconds() <= 9 ? '0' + today.getSeconds() : today.getSeconds() //Getting the seconds (Pasted from magister)
if (multidropdown & (1<<3)) { text += ('| ' + hours+minutes+seconds + '') }
var font = Render.AddFont('Verdana', 10, 100) //Getting the font
var width = Render.TextSizeCustom(text, font)[0] + 3 //Getting the width of text
var screen = Render.GetScreenSize()[0] //Getting the X coordinate
screen = screen - width - 9 //Change the X coordinate value
if (text == "") return;
Render.FilledRect(screen, 12, width + 3, 23, [0,0,0,175]) //Render the background rect
Render.StringCustom(screen + 4, 16, 0, text, [255,255,255,255], font)
if (UI.GetValue('Script items', 'Watermark design') == 0) {
Render.FilledRect(screen, 12, width + 3, 2, UI.GetColor('Script items', 'Watermark color'))
} else if (UI.GetValue('Script items', 'Watermark design') == 1) {
Render.GradientRect(screen, 12, width + 3, 2, 1, UI.GetColor('Script items', 'first color'), UI.GetColor('Script items', 'second color'))
} else if (UI.GetValue('Script items', 'Watermark design') == 2) {
UI.SetColor('Script items', 'third1 color', UI.GetColor('Script items', 'second color'))
Render.GradientRect(screen, 12, (width + 3) /2, 2, 1, UI.GetColor('Script items', 'first color'), UI.GetColor('Script items', 'second color'))
Render.GradientRect(screen + (width + 3) /2, 12, (width + 3) /2, 2, 1, UI.GetColor('Script items', 'third1 color'), UI.GetColor('Script items', 'third color'))
}
}
Cheat.RegisterCallback('Draw', 'watermark') //Create callback of watermark render function
UI.AddCheckbox('Enable keybinds') //Add checkbox of watermark
UI.AddDropdown('Keybinds design', ['Default', 'Two gradients', 'Three gradients'])
UI.AddColorPicker('Keybinds color'); UI.SetColor('Script items', 'Keybinds color', [255,0,0,255]) //Add colorpicker of watermark; set default value in colorpicker
UI.AddColorPicker('first color '); UI.SetColor('Script items', 'first color ', [255,0,0,255])
UI.AddColorPicker('second color '); UI.SetColor('Script items', 'second color ', [138, 120, 255, 255])
UI.AddColorPicker('third1 color '); UI.SetEnabled('Script items', 'third1 color ', 0)
UI.AddColorPicker('third color '); UI.SetColor('Script items', 'third color ', [0, 221, 255, 255])
UI.AddSliderInt('x', 0, Render.GetScreenSize()[0]); UI.SetValue('Script items', 'x', 425); UI.SetEnabled('Script items', 'x', 0) //Add slider of x position; set default value of x position; hide the element
UI.AddSliderInt('y', 0, Render.GetScreenSize()[1]); UI.SetValue('Script items', 'y', 125);; UI.SetEnabled('Script items', 'y', 0) //Add slider of y position; set default value of y position; hide the element
var kb = false ;var xo = 0; var yo = 0 //any variables ^-^
function in_bounds(vec, x, y, x2, y2) { //in bounds function (let drag keybinds)
return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
function keybinds() {
if (!UI.GetValue('Script items', 'Enable keybinds')) return //Checking if main checkbox enabled
const data = [ //Array with data of keybinds
['Doubletap', ['Rage', 'GENERAL', 'Exploits', 'Double tap'], 'On'],
['Hide shots', ['Rage', 'GENERAL', 'Exploits', 'Hide shots'], 'On'],
['Body aim', ['Rage', 'GENERAL', 'General', 'Force body aim'], 'Force'],
['Safe points', ['Rage', 'GENERAL', 'General', 'Force safe point'], 'Force'],
['Inverter', ['Anti-Aim', 'Fake angles', 'Inverter'], 'On'],
['Fake duck', ['Anti-Aim', 'Extra', 'Fake duck'], 'On'],
['Slow walk', ['Anti-Aim', 'Extra', 'Slow walk'], 'On'],
['Edge jump', ['Misc', 'GENERAL', 'Movement', 'Edge jump'], 'On'],
['Auto peek', ['Misc', 'GENERAL', 'Movement', 'Auto peek'], 'On'],
['Mindamage', ['Script items', 'MinDMG key'], UI.GetValue('Script items', 'MinDMG - ' + w2t[Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))])],
['Safe head', ['Script items', 'Safe head key'], 'On'],
]
var keybinds = [] //Array with rendering text
const x = UI.GetValue('Script items', 'x') //Variable with x coordinate
const y = UI.GetValue('Script items', 'y') //Variable with y coordinate
font = Render.AddFont('Verdana', 7, 100) //Add font
for (var p in data) {
if (UI.IsHotkeyActive.apply(null, data[p][1])) { //Checking if hotkey from data actived
keybinds.push(p) //Pushing data to keybinds
}
}
if (!Entity.IsAlive(Entity.GetLocalPlayer())) return
Render.FilledRect(x, y, 130, 18, [0,0,0,200]) //Rendering background rect
Render.StringCustom(x + 45, y + 3, 0, 'Bind list', [255,255,255,255], font) //Rendering the text
if (UI.GetValue('Script items', 'Keybinds design') == 0) {
Render.FilledRect(x, y, 130, 2, UI.GetColor('Script items', 'Keybinds color')) //Rendering top background rect
} else if (UI.GetValue('Script items', 'Keybinds design') == 1) {
Render.GradientRect(x, y, 130, 2, 1, UI.GetColor('Script items', 'first color '), UI.GetColor('Script items', 'second color '))
} else if (UI.GetValue('Script items', 'Keybinds design') == 2) {
UI.SetColor('Script items', 'third1 color ', UI.GetColor('Script items', 'second color '))
Render.GradientRect(x, y, 65, 2, 1, UI.GetColor('Script items', 'first color '), UI.GetColor('Script items', 'second color '))
Render.GradientRect(x + 65, y, 65, 2, 1, UI.GetColor('Script items', 'third1 color '), UI.GetColor('Script items', 'third color '))
}
for (var k in keybinds) {
Render.StringCustom(x, y + 17 + (10 * k), 0, data[keybinds[k]][0], [255,255,255,255], font) //Rendering the keybind name
if (data[keybinds[k]][2] == 'On') dx = 115 //Any manipulations with X coordinate
if (data[keybinds[k]][2] == 'Force') dx = 101
if (data[keybinds[k]][2] >= 100) { dx = 110 } else if (data[keybinds[k]][2] < 100 && data[keybinds[k]][2] > 10) { dx = 117 } else if (data[keybinds[k]][2] < 10 ) { dx = 123 }
Render.StringCustom(x + dx, y + 17 + (10 * k), 0, data[keybinds[k]][2].toString(), [255,255,255,255], font) //Rendering the state of keybinds
}
if(UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) { //Checking for opened menu and pressed LMB
const mousep = Global.GetCursorPosition() //Getting the cursor position
if (in_bounds(mousep, x, y, x + 150, y + 40)) { //Checking for pointed cursor in rect
if(!kb){ // backup condition
xo = mousep[0] - x
yo = mousep[1] - y
kb = true
}
UI.SetValue("Script items", "x", mousep[0] - xo) //Setting the X coordinate
UI.SetValue("Script items", "y", mousep[1] - yo) //Setting the Y coordinate
}
} else if(kb) kb = false //Backup condition #2
}
Cheat.RegisterCallback('Draw', 'keybinds') //Create the callback of keybinds render function
UI.AddCheckbox('Enable spectators list') //Create the main checkbox
UI.AddDropdown('Spectators list design', ['Default', 'Two gradients', 'Three gradients'])
UI.AddColorPicker('Spectators list color'); UI.SetColor('Script items', 'Spectators list color', [255,0,0,255])
UI.AddColorPicker('first color '); UI.SetColor('Script items', 'first color ', [255,0,0,255])
UI.AddColorPicker('second color '); UI.SetColor('Script items', 'secont color ', [138, 120, 255, 255])
UI.AddColorPicker('third1 color '); UI.SetEnabled('Script items', 'third1 color ', 0)
UI.AddColorPicker('third color '); UI.SetColor('Script items', 'third color ', [0, 221, 255, 255])
UI.AddSliderInt('x_s', 0, Render.GetScreenSize()[0]); UI.SetValue('Script items', 'x_s', 625); UI.SetEnabled('Script items', 'x_s', 0) //Create slider of x offset; set default value; hide slider
UI.AddSliderInt('y_s', 0, Render.GetScreenSize()[1]); UI.SetValue('Script items', 'y_s', 125); UI.SetEnabled('Script items', 'y_s', 0)//Create slider of y offset; set default value; hide slider
function spectatorsLIST() {
var spectators = [] //Create the array with spectators
const players = Entity.GetPlayers() //Getting the players
for (i in players) {
if (Entity.GetProp(players[i], 'CBasePlayer', 'm_hObserverTarget') == Entity.GetLocalPlayer()) { //Checking if target is local player
spectators.push(Entity.GetName(players[i])) //Pusting the names of spectators to array
}
} return spectators //Return the array with spectators
}
sb = false; sxo = 0; syo = 0 //some variables
function spectatorsRender() {
if (!UI.GetValue('Script items', 'Enable spectators list')) return //Checking if main checkbox enabled
const spects = spectatorsLIST() //Getting the spectators name from function
x = UI.GetValue('Script items', 'x_s') //Getting the X coordinate
y = UI.GetValue('Script items', 'y_s') //Getting the Y coordinate
if (!Entity.IsAlive(Entity.GetLocalPlayer())) return
Render.FilledRect(x, y, 130, 18, [0,0,0,200]) //Render the background rect
Render.StringCustom(x + 42, y + 3, 0, 'Spectators', [255,255,255,255], Render.AddFont('Verdana', 7, 100)) //Render the main StringCustom
if (UI.GetValue('Script items', 'Spectators list design') == 0) {
Render.FilledRect(x, y, 130, 2, UI.GetColor('Script items', 'Spectators list color')) //Render the top rect
} else if (UI.GetValue('Script items', 'Spectators list design') == 1) {
Render.GradientRect(x, y, 130, 2, 1, UI.GetColor('Script items', 'first color '), UI.GetColor('Script items', 'second color '))
} else if (UI.GetValue('Script items', 'Spectators list design') == 2) {
UI.SetColor('Script items', 'third1 color ', UI.GetColor('Script items', 'second color '))
Render.GradientRect(x, y, 65, 2, 1, UI.GetColor('Script items', 'first color '), UI.GetColor('Script items', 'second color '))
Render.GradientRect(x + 65, y, 65, 2, 1, UI.GetColor('Script items', 'third1 color '), UI.GetColor('Script items', 'third color '))
}
for (var s in spects) {
Render.StringCustom(x, y + 17 + (12 * s), 0, spects[s], [255,255,255,255], Render.AddFont('Verdana', 5, 100)) //Render the spectators names
}
if(UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) { //Checking for opened menu and pressed LMB
const mousep = Global.GetCursorPosition() //Getting the cursor position
if (in_bounds(mousep, x, y, x + 150, y + 40)) { //Checking for pointed cursor in rect
if(!sb){ // backup condition
sxo = mousep[0] - x
syo = mousep[1] - y
sb = true
}
UI.SetValue('Script items', 'x_s', mousep[0] - sxo) //Setting the X coordinate
UI.SetValue('Script items', 'y_s', mousep[1] - syo) //Setting the Y coordinate
}
} else if(sb) sb = false //Backup condition #2
}
Cheat.RegisterCallback('Draw', 'spectatorsRender') //Create callback of spectators render function
UI.AddCheckbox('Enable ideal yaw indicators') //Add main checkbox
UI.AddCheckbox('Centered text') //Add centered text checkbox
UI.AddCheckbox('Outline text') //Add outline text checkox
UI.AddColorPicker('Outline text color'); UI.SetColor('Script items', 'Outline text color', [0,0,0,255]) //Add outline color colorpikcer; set color to colorpicker
function idealYawIndicators() {
if (!UI.GetValue('Script items', 'Enable ideal yaw indicators')) return //Checking for disabled main checkbox
var text = [] //array with texts
var color = [] //array with colors
const font = Render.AddFont("Tahoma", 10, 100) //Add the font
text.push('IDEAL YAW'); color.push([220, 135, 49, 255]) //pusting IDEAL YAW text and orange color
if (UI.GetValue('Anti-Aim', 'Rage Anti-Aim', 'Auto direction')) { text.push('FREESTAND'); color.push([209, 159, 230, 255])
} else { text.push('DYNAMIC'); color.push([209, 159, 230, 255]) } //Checking for auto direction checkbox enabled and pusting the text and color
dtColor = Exploit.GetCharge() == 1 ? [25, 255, 25, 255] : [255, 0, 0, 255] //Getting the dt color based on charge state
if (UI.IsHotkeyActive('Rage', 'GENERAL', 'Exploits', 'Double tap')) { text.push('DT'); color.push(dtColor) } //Checking for doubletap hotkey enabled and pusting the text and color
if (UI.IsHotkeyActive('Rage', 'GENERAL', 'Exploits', 'Hide shots')) { text.push('AA'); color.push([255,255,255,255]) } //Checking for hide shots hotkey enabled and pusting the text and color
if (UI.IsHotkeyActive('Script items', 'MinDMG key')) { text.push('DMG: ' + UI.GetValue('Script items', 'MinDMG - ' + w2t[Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))])); color.push([200, 185, 255, 255]) } //Checking for minDMG hotkey enabled and pusting the text and color
if (UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force body aim')) { text.push('BAIM'); color.push([9, 228, 155, 255]) } //Checking for baim hotkey enabled and pusting the text and color
screen = Render.GetScreenSize() //Getting the screen size
centered = UI.GetValue('Script items', 'Centered text') //Getting the value of "centered" checkbox
outlineColor = UI.GetColor('Script items', 'Outline text color') //Getting the color from "outline text color" colorpicker
if (!Entity.IsAlive(Entity.GetLocalPlayer())) return
for (i = 0; i < text.length && i < color.length; i++) {
if (UI.GetValue('Script items', 'Outline text')) {
Render.StringCustom(screen[0] /2 + 1, screen[1] / 2 + 17 + (14*i) + 1, centered, text[i], outlineColor, font) //Rendering the outline
Render.StringCustom(screen[0] /2 - 1, screen[1] / 2 + 17 + (14*i) - 1, centered, text[i], outlineColor, font) //Rendering the outline
Render.StringCustom(screen[0] /2 + 1, screen[1] / 2 + 17 + (14*i) - 1, centered, text[i], outlineColor, font) //Rendering the outline
Render.StringCustom(screen[0] /2 - 1, screen[1] / 2 + 17 + (14*i) + 1, centered, text[i], outlineColor, font) //Rendering the outline
}
Render.StringCustom(screen[0] /2, screen[1] / 2 + 17 + (14*i) + 2, centered, text[i], [0,0,0,255], font) //Rendering the indicators
Render.StringCustom(screen[0] /2, screen[1] / 2 + 17 + (14*i), centered, text[i], color[i], font) //Rendering the shadow of indicators
}
}
Cheat.RegisterCallback('Draw', 'idealYawIndicators') //Create callback of "idealYawIndicators" function