Начинающий
-
Автор темы
- #1
После включения "madness.ui.aa.check" у меня пропадают все ненужные мне элементы, а то есть все которые я прописал под "madness.refs.aa" .
Но никак не могу придумать так, чтобы было выбрано в madness.ui.aa.state стейт "stand" и у меня показывалось только настройка для этого стейта, а остальные скрывались.
Но никак не могу придумать так, чтобы было выбрано в madness.ui.aa.state стейт "stand" и у меня показывалось только настройка для этого стейта, а остальные скрывались.
lua:
-- custom namespaces
local madness = {}
madness.ui = {
info = {},
aa = {},
aa2 = {},
aa_states = {"global", "stand", "slow", "move", "duck", "air", "air+c"},
visuals = {},
misc = {},
config = {},
tab = {},
}
local return_fl = return_fl
local is_valve_ds_spoofed = 0
madness.refs = {}
madness.refs.aa = {}
madness.refs.aa.enabled = ui.reference("aa", "anti-aimbot angles", "enabled")
madness.refs.aa.pitch, madness.refs.aa.pitch_slider = ui.reference("aa", "anti-aimbot angles", "pitch")
madness.refs.aa.yaw_base = ui.reference("aa", "anti-aimbot angles", "yaw base")
madness.refs.aa.yaw, madness.refs.aa.yaw_offset = ui.reference("aa", "anti-aimbot angles", "yaw")
madness.refs.aa.yaw_jitter, madness.refs.aa.yaw_jitter_offset = ui.reference("aa", "anti-aimbot angles", "yaw jitter")
madness.refs.aa.body_yaw, madness.refs.aa.body_yaw_offset = ui.reference("aa", "anti-aimbot angles", "body yaw")
madness.refs.aa.body_yaw_fs = ui.reference('aa', 'anti-aimbot angles', 'freestanding body yaw')
madness.refs.aa.roll = ui.reference("aa", "anti-aimbot angles", "roll")
madness.refs.aa.edge_yaw = ui.reference("aa", "anti-aimbot angles", "edge yaw")
madness.refs.aa.freestanding, madness.refs.aa.freestanding_hk = ui.reference("aa", "anti-aimbot angles", "freestanding")
local ref = {
SlowMotion = { ui.reference("aa", "other", "slow motion") },
LegMovement = ui.reference("aa", "other", "leg movement"),
FL = ui.reference("aa", "fake lag", "limit"),
FLenb = ui.reference("aa", "fake lag", "enabled"),
SafePoint = ui.reference("rage", "aimbot", "force safe point"),
FD = ui.reference("rage", "other", "duck peek assist"),
DT = {ui.reference("rage", "aimbot", "double tap")},
DT_LIM = ui.reference("rage", "aimbot", "double tap fake lag limit"),
OSAA = {ui.reference("aa", "other", "on shot anti-aim")},
QuickPeek = {ui.reference("rage", "other", "quick peek assist")},
ProcessTicks = ui.reference("misc", "settings", "sv_maxusrcmdprocessticks2"),
HoldAim = ui.reference("misc", "settings", "sv_maxusrcmdprocessticks_holdaim"),
MaxUnlag = ui.reference("misc", "settings", "sv_maxunlag2"),
AUT = ui.reference("misc","settings","anti-Untrusted"),
Tag = ui.reference("misc", "miscellaneous", "clan tag spammer"),
Ping = {ui.reference("Misc", "Miscellaneous", "Ping spike")},
AccuracyBoost = ui.reference("rage", "other", "accuracy boost"),
MinDmg = ui.reference("rage", "aimbot", "minimum damage"),
AirStrafe = ui.reference("misc", "movement", "air strafe"),
Ind = ui.reference("visuals", "other esp", "feature indicators"),
}
local og_menu = function(x)
for k, v in pairs(madness.refs.aa) do
ui.set_visible(v, x)
end
end
-- menu items
madness.ui.aa.check = ui.new_checkbox("aa", "anti-aimbot angles", "\aA65A5AFFM A D N E S S")
madness.ui.tab = ui.new_combobox("aa", "anti-aimbot angles", "\ntab", {"info", "anti-aim", "anti-aim 2", "visuals", "misc", "config"})
-- info
madness.ui.info.build = ui.new_label("aa", "anti-aimbot angles", "- Build: debug")
madness.ui.info.author = ui.new_label("aa", "anti-aimbot angles", "- Author: lordfrenzied")
madness.ui.info.discord = ui.new_label("aa", "anti-aimbot angles", "- Discord: soon...")
-- anti-aim
madness.ui.aa.state = ui.new_combobox("aa", "anti-aimbot angles", "movement state", madness.ui.aa_states)
madness.ui.aa.states = {}
for k, x in pairs(madness.ui.aa_states) do
madness.ui.aa.states[x] = {}
madness.ui.aa.states[x].enable = ui.new_checkbox("aa", "anti-aimbot angles", "enable "..tostring(x))
madness.ui.aa.states[x].pitch = ui.new_combobox("aa", "anti-aimbot angles", "pitch "..tostring(x), {"off", "default", "up", "down", "minimal", "random"})
end
-- anti-aim 2
ui.new_checkbox("aa", "anti-aimbot angles", "defensive")
ui.new_combobox("aa", "anti-aimbot angles", "defensive enabled states", {"stand", "slow", "move", "duck", "air", "air+c"})
-- callbacks
client.set_event_callback("paint_ui", function()
og_menu(not ui.get(madness.ui.aa.check))
end)