//gui
UI.AddCheckbox("Visibel / InVisibel");
UI.AddHotkey("Legit Anti-Aim");
//var
yawoffset_cache = UI.GetValue( "Anti-Aim", "Rage Anti-Aim", "Yaw offset" )
function legitaa () {
if(UI.IsHotkeyActive( "Script items", "Legit Anti-Aim" ))
{
UI.SetValue("Misc", "PERFORMANCE&INFORMATION", "Information", "Restrictions", "Anti Untrusted", false);
UI.SetValue("Anti-Aim", "Extra", "Pitch", 3);
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", -180);
}
else
{
UI.SetValue("Misc", "PERFORMANCE&INFORMATION", "Information", "Restrictions", "Anti Untrusted", true);
UI.SetValue("Anti-Aim", "Extra", "Pitch", 1);
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yawoffset_cache);
}
}
function menu () {
if (UI.IsMenuOpen() == true) {
if (UI.GetValue( "Script items", "Visibel / InVisibel")) {
UI.SetEnabled("Script items", "Legit Anti-Aim", true);
} else {
UI.SetEnabled("Script items", "Legit Anti-Aim", false);
}
}
}
Cheat.RegisterCallback("Draw", "menu");
Cheat.RegisterCallback("Draw", "legitaa");