-
Автор темы
- #1
Вашему вниманию представляется луа на легендвар кряк.Как вы знаете там сломаны клауд система кфг и был создан скрипт позволяющий как загружать так и сохранять конфигурации в чите.
Для работы луа вам необходимо создать папку "Legendware" в корневой папке игры.
Так же предоставляю тестовый конфиг
Для работы луа вам необходимо создать папку "Legendware" в корневой папке игры.
Так же предоставляю тестовый конфиг
code_language.lua:
menu.set_bool("scripts.allow_file", true)
console.execute("clear")
print("made by another forum be like :)")
function split(str, delimiter)
local result = {}
local pattern = string.format("([^%s]+)", delimiter)
str:gsub(pattern, function(substring)
table.insert(result, substring)
end)
return result
end
local verify = file.read("Legendware/configsname.txt")
if verify == "" then
file.write("Legendware/configsname.txt", "config1\nconfig2\nconfig3")
file.write("Legendware/config1.txt", "")
file.write("Legendware/config2.txt", "")
file.write("Legendware/config3.txt", "")
local verify = file.read("Legendware/configsname.txt")
if verify == "" then
print("you need to create a folder named 'Legendware' in the csgo folder")
end
end
local configues = {}
function loadcfgsname()
local verify = file.read("Legendware/configsname.txt")
if verify == "" then
print("you need to create a folder named 'Legendware' in the csgo folder")
configues = {}
return {}
end
configues = split(verify, "\n")
return split(verify, "\n")
end
menu.add_combo_box("CONFIGS", loadcfgsname())
menu.add_check_box("SAVE")
menu.add_check_box("LOAD")
menulw = {
["legit.enable"] = "bool",
["legit.checks[0]"] = "bool",
["legit.checks[1]"] = "bool",
["legit.backtrack_limit"] = "int",
["legit.automatic_wall_key"] = "keybind",
["legit.automatic_fire_key"] = "keybind",
["rage.enable"] = "bool",
["rage.silent"] = "bool",
["rage.automatic_fire"] = "bool",
["rage.automatic_wall"] = "bool",
["rage.field_of_view"] = "int",
["rage.force_damage_key"] = "keybind",
["rage.double_tap_key"] = "keybind",
["rage.hide_shots_key"] = "keybind",
["anti_aim.enable"] = "bool",
["anti_aim.pitch"] = "int",
["anti_aim.target_yaw"] = "int",
["anti_aim.yaw_offset"] = "int",
["anti_aim.yaw_modifier"] = "int",
["anti_aim.freestanding"] = "bool",
["anti_aim.manual_forward_key"] = "keybind",
["anti_aim.manual_back_key"] = "keybind",
["anti_aim.manual_left_key"] = "keybind",
["anti_aim.manual_right_key"] = "keybind",
["anti_aim.desync_type"] = "int",
["anti_aim.desync_range"] = "int",
["anti_aim.desync_range_inverted"] = "int",
["anti_aim.invert_desync_key"] = "keybind",
["anti_aim.roll"] = "bool",
["anti_aim.disable_on_high_velocity"] = "bool",
["anti_aim.roll_range"] = "int",
["anti_aim.enable_fake_lag"] = "bool",
["anti_aim.fake_lag_type"] = "int",
["anti_aim.fake_lag_limit"] = "int",
["misc.leg_movement"] = "int",
["misc.slow_walk_key"] = "keybind",
["anti_aim.fake_duck_key"] = "keybind",
["visuals.enemy.chams_enable"] = "bool",
["visuals.enemy.chams_ragdoll"] = "bool",
["visuals.enemy.glow_enable"] = "bool",
["visuals.enemy.glow_clr"] = "color",
["visuals.enemy.glow_type"] = "int",
["visuals.enemy.esp_enable"] = "bool",
["visuals.enemy.esp_box"] = "bool",
["visuals.enemy.esp_box_clr"] = "color",
["visuals.enemy.esp_name"] = "bool",
["visuals.enemy.esp_name_clr"] = "color",
["visuals.enemy.esp_hp_bar"] = "bool",
["visuals.enemy.esp_hp_bar_custom_color"] = "bool",
["visuals.enemy.esp_hp_bar_color"] = "color",
["visuals.enemy.esp_skeleton"] = "bool",
["visuals.enemy.esp_skeleton_clr"] = "color",
["visuals.enemy.flags"] = "bool",
["visuals.enemy.esp_weapon"] = "bool",
["visuals.enemy.esp_weapon_clr"] = "color",
["visuals.enemy.esp_weapon_arr[0]"] = "bool",
["visuals.enemy.esp_weapon_arr[1]"] = "bool",
["visuals.enemy.esp_knife_taser_clr"] = "color",
["visuals.enemy.esp_ammo"] = "bool",
["visuals.enemy.esp_ammo_clr"] = "color",
["visuals.enemy.sounds"] = "bool",
["visuals.enemy.sounds_color"] = "color",
["visuals.enemy.sounds_time"] = "float",
["visuals.enemy.sounds_radius"] = "int",
["visuals.team.chams_enable"] = "bool",
["visuals.team.chams_ragdoll"] = "bool",
["visuals.team.glow_enable"] = "bool",
["visuals.team.glow_clr"] = "color",
["visuals.team.glow_type"] = "int",
["visuals.team.esp_enable"] = "bool",
["visuals.team.esp_box"] = "bool",
["visuals.team.esp_box_clr"] = "color",
["visuals.team.esp_name"] = "bool",
["visuals.team.esp_name_clr"] = "color",
["visuals.team.esp_hp_bar"] = "bool",
["visuals.team.esp_hp_bar_custom_color"] = "bool",
["visuals.team.esp_hp_bar_color"] = "color",
["visuals.team.esp_skeleton"] = "bool",
["visuals.team.esp_skeleton_clr"] = "color",
["visuals.team.flags"] = "bool",
["visuals.team.esp_weapon"] = "bool",
["visuals.team.esp_weapon_clr"] = "color",
["visuals.team.esp_weapon_arr[0]"] = "bool",
["visuals.team.esp_weapon_arr[1]"] = "bool",
["visuals.team.esp_knife_taser_clr"] = "color",
["visuals.team.esp_ammo"] = "bool",
["visuals.team.esp_ammo_clr"] = "color",
["visuals.team.sounds"] = "bool",
["visuals.team.sounds_color"] = "color",
["visuals.team.sounds_time"] = "float",
["visuals.team.sounds_radius"] = "int",
["visuals.local.transparency_in_scope"] = "int",
["visuals.local.chams_enable"] = "bool",
["visuals.local.layered"] = "bool",
["visuals.local.visualize_lag"] = "bool",
["visuals.local.glow_enable"] = "bool",
["visuals.local.glow_clr"] = "color",
["visuals.local.glow_type"] = "int",
["visuals.local.esp_enable"] = "bool",
["visuals.local.esp_box"] = "bool",
["visuals.local.esp_box_clr"] = "color",
["visuals.local.esp_name"] = "bool",
["visuals.local.esp_name_clr"] = "color",
["visuals.local.esp_hp_bar"] = "bool",
["visuals.local.esp_hp_bar_custom_color"] = "bool",
["visuals.local.esp_hp_bar_color"] = "color",
["visuals.local.esp_skeleton"] = "bool",
["visuals.local.esp_skeleton_clr"] = "color",
["visuals.local.flags"] = "bool",
["visuals.local.esp_weapon"] = "bool",
["visuals.local.esp_weapon_clr"] = "color",
["visuals.local.esp_weapon_arr[0]"] = "bool",
["visuals.local.esp_weapon_arr[1]"] = "bool",
["visuals.local.esp_knife_taser_clr"] = "color",
["visuals.local.esp_ammo"] = "bool",
["visuals.local.esp_ammo_clr"] = "color",
["visuals.local.sounds"] = "bool",
["visuals.local.sounds_color"] = "color",
["visuals.local.sounds_time"] = "float",
["visuals.local.sounds_radius"] = "int",
["visuals.world.weapon.esp"] = "bool",
["visuals.world.weapon.box"] = "bool",
["visuals.world.weapon.box_clr"] = "color",
["visuals.world.weapon.ammo"] = "bool",
["visuals.world.weapon.ammo_clr"] = "color",
["visuals.world.weapon.ammo_type[0]"] = "bool",
["visuals.world.weapon.ammo_type[1]"] = "bool",
["visuals.world.weapon.icon"] = "bool",
["visuals.world.weapon.icon_clr"] = "color",
["visuals.world.weapon.glow"] = "bool",
["visuals.world.weapon.glow_clr"] = "color",
["visuals.world.weapon.glow_type"] = "int",
["visuals.world.grenade_esp.enable"] = "bool",
["visuals.world.grenade_esp.box"] = "bool",
["visuals.world.grenade_esp.box_clr"] = "color",
["visuals.world.grenade_esp.name"] = "bool",
["visuals.world.grenade_esp.name_types[0]"] = "bool",
["visuals.world.grenade_esp.name_types[1]"] = "bool",
["visuals.world.grenade_esp.prediction"] = "bool",
["visuals.world.grenade_esp.prediction_clr"] = "color",
["visuals.world.grenade_esp.inferno_indicator"] = "bool",
["visuals.world.grenade_esp.inferno_indicator_clr"] = "color",
["visuals.world.grenade_esp.smoke_indicator"] = "bool",
["visuals.world.grenade_esp.smoke_indicator_clr"] = "color",
["visuals.world.nade.glow"] = "bool",
["visuals.world.nade.glow_clr"] = "color",
["visuals.world.nade.glow_type"] = "int",
["visuals.world.c4.esp"] = "bool",
["visuals.world.c4.box"] = "bool",
["visuals.world.c4.box_clr"] = "color",
["visuals.world.c4.icon"] = "bool",
["visuals.world.c4.icon_clr"] = "color",
["visuals.world.bomb_timer"] = "bool",
["visuals.world.c4.glow"] = "bool",
["visuals.world.c4.glow_clr"] = "color",
["visuals.world.c4.glow_type"] = "int",
["visuals.world.manual_anti_aim"] = "bool",
["visuals.world.manual_anti_aim_clr"] = "color",
["visuals.world.offscreen_enable"] = "bool",
["visuals.world.offscreen_color"] = "color",
["visuals.world.offscreen_color_out"] = "color",
["visuals.world.offscreen_fade"] = "bool",
["visuals.world.offscreen_distance"] = "int",
["visuals.world.offscreen_size"] = "int",
["visuals.world.force_crosshair"] = "bool",
["visuals.world.penetration_crosshair"] = "bool",
["visuals.world.client_bullet_impacts"] = "bool",
["visuals.world.client_bullet_impacts_clr"] = "color",
["visuals.world.server_bullet_impacts"] = "bool",
["visuals.world.server_bullet_impacts_clr"] = "color",
["visuals.world.bullet_tracer"] = "bool",
["visuals.world.bullet_tracer_clr"] = "color",
["visuals.world.hit_sound"] = "bool",
["visuals.world.damage_marker"] = "bool",
["visuals.world.skybox"] = "int",
["visuals.world.world_color_modulate.world"] = "bool",
["visuals.world.world_color_modulate.world_clr"] = "color",
["visuals.world.world_color_modulate.props_clr"] = "color",
["misc.anti_untrusted"] = "bool",
["misc.bypasses[0]"] = "bool",
["misc.bypasses[1]"] = "bool",
["misc.bypasses[2]"] = "bool",
["misc.adblock"] = "bool",
["misc.preserve_killfeed"] = "bool",
["misc.clan_tag"] = "bool",
["misc.display_lw_users"] = "bool",
["misc.automatic_accept"] = "bool",
["misc.rank_reveal"] = "bool",
["misc.logs[0]"] = "bool",
["misc.logs[1]"] = "bool",
["misc.logs[2]"] = "bool",
["misc.logs[3]"] = "bool",
["misc.logs_position[0]"] = "bool",
["misc.logs_position[1]"] = "bool",
["misc.automatic_jump"] = "bool",
["misc.automatic_strafe"] = "int",
["misc.smoothing"] = "int",
["misc.edge_jump_key"] = "keybind",
["misc.infinite_duck"] = "bool",
["misc.fast_stop"] = "bool",
["misc.automatic_peek_key"] = "keybind",
["misc.automatic_peek[0]"] = "bool",
["misc.automatic_peek[1]"] = "bool",
["misc.automatic_peek_clr"] = "color",
["misc.watermark"] = "bool",
["misc.key_binds"] = "bool",
["misc.spectator_list"] = "bool",
["misc.automatic_buy"] = "bool",
["misc.primary"] = "int",
["misc.secondary"] = "int",
["misc.others[0]"] = "bool",
["misc.others[1]"] = "bool",
["misc.others[2]"] = "bool",
["misc.others[3]"] = "bool",
["misc.third_person_key"] = "keybind",
["misc.third_person_distance"] = "int",
["misc.field_of_view"] = "int",
["misc.viewmodel_changer"] = "bool",
["misc.viewmodel_field_of_view"] = "int",
["misc.viewmodel_x"] = "int",
["misc.viewmodel_y"] = "int",
["misc.viewmodel_z"] = "int",
["misc.viewmodel_roll"] = "int",
["misc.aspect_ratio"] = "bool",
["misc.aspect_ratio_value"] = "float",
["scripts.developer_mode"] = "bool",
["scripts.allow_file"] = "bool",
["scripts.allow_http"] = "bool",
}
function chamsmenu(path, stat, sems)
local modifier = sems and "_modifer" or "_modifiers"
if stat ~= nil then
menulw[path.."_"..stat] = "bool"
menulw[path.."_clr_"..stat] = "color"
menulw[path.."_type_"..stat] = "int"
menulw[path..modifier.."_"..stat] = "bool"
menulw[path.."_modifiers_arr_"..stat.."[0]"] = "bool"
menulw[path.."_modifiers_arr_"..stat.."[1]"] = "bool"
menulw[path.."_modifiers_arr_"..stat.."[2]"] = "bool"
else
menulw[path] = "bool"
menulw[path.."_clr"] = "color"
menulw[path.."_type"] = "int"
menulw[path..modifier] = "bool"
menulw[path.."_modifiers_arr[0]"] = "bool"
menulw[path.."_modifiers_arr[1]"] = "bool"
menulw[path.."_modifiers_arr[2]"] = "bool"
end
end
chamsmenu("visuals.enemy.chams", "visible")
chamsmenu("visuals.enemy.chams", "invisible")
chamsmenu("visuals.enemy.chams_shot")
chamsmenu("visuals.enemy.chams_ghost")
chamsmenu("visuals.enemy.chams", "visible")
chamsmenu("visuals.enemy.chams", "invisible")
chamsmenu("visuals.local.chams", "visible")
chamsmenu("visuals.local.chams_fake")
chamsmenu("visuals.local.chams_hand")
chamsmenu("visuals.local.chams_weapon")
chamsmenu("visuals.world.weapon.chams", nil, true)
chamsmenu("visuals.world.nade.chams", nil, true)
chamsmenu("visuals.world.c4.chams", nil, true)
for i = 0, 8 do
local weap = "legit.weapon["..i.."]"
menulw[weap..".field_of_view"] = "float"
menulw[weap..".smooth"] = "int"
menulw[weap..".pitch_recoil"] = "int"
menulw[weap..".yaw_recoil"] = "int"
menulw[weap..".first_shot_delay"] = "int"
menulw[weap..".target_switch_delay"] = "int"
for j = 0, 5 do
menulw[weap..".hitboxes["..j.."]"] = "bool"
end
menulw[weap..".automatic_attack"] = "bool"
menulw[weap..".fire_delay"] = "int"
menulw[weap..".automatic_wall"] = "bool"
menulw[weap..".automatic_fire"] = "bool"
local weap = "rage.weapon["..i.."]"
menulw[weap..".hit_chance"] = "int"
menulw[weap..".minimum_damage"] = "int"
menulw[weap..".force_damage_value"] = "int"
menulw[weap..".body_aim"] = "int"
for j = 0, 5 do
menulw[weap..".hitboxes["..j.."]"] = "bool"
end
menulw[weap..".double_tap_hit_chance"] = "int"
menulw[weap..".lag_exploit"] = "bool"
menulw[weap..".automatic_stop"] = "bool"
menulw[weap..".modifiers[0]"] = "bool"
menulw[weap..".modifiers[1]"] = "bool"
menulw[weap..".modifiers[2]"] = "bool"
menulw[weap..".extended_teleport"] = "bool"
menulw[weap..".force_body_aim_if_lethal"] = "bool"
menulw[weap..".force_safe_points_if_lethal"] = "bool"
menulw[weap..".static_point_scale"] = "bool"
menulw[weap..".head_scale"] = "float"
menulw[weap..".body_scale"] = "float"
end
for i = 0, 7 do
menulw["visuals.world.removals["..i.."]"] = "bool"
end
function stringtocolor(string)
local core = split(string, ",")
return color.new(tonumber(core[1]), tonumber(core[2]), tonumber(core[3]), tonumber(core[4]))
end
local antigo = {
save = menu.get_bool("SAVE"),
load = menu.get_bool("LOAD"),
}
function pegavalormenu(path)
local tipo = menulw[path]
if tipo == "bool" then
return menu.get_bool(path)
elseif tipo == "int" then
return menu.get_int(path)
elseif tipo == "float" then
return menu.get_float(path)
elseif tipo == "keybind" then
return menu.get_key_bind_mode(path)
elseif tipo == "color" then
local color = menu.get_color(path)
return "'"..color:r()..","..color:g()..","..color:b()..","..color:a().."'"
else
return "nil"
end
end
function setavalormenu(path, valor)
local tipo = menulw[path]
if tipo == "bool" then
menu.set_bool(path, valor)
elseif tipo == "int" then
menu.set_int(path, valor)
elseif tipo == "float" then
menu.set_float(path, valor)
elseif tipo == "keybind" then
--menu.set_key_bind_mode(path, valor)
elseif tipo == "color" then
menu.set_color(path, stringtocolor(valor))
else
print("NENHUM TIPO MEU BOM")
end
end
client.add_callback("on_paint", function()
local cfgselecionada = configues[menu.get_int("CONFIGS")+1]
if (menu.get_bool("SAVE") ~= antigo.save) then
menu.set_bool("scripts.allow_file", true)
antigo.save = menu.get_bool("SAVE")
local cfgstring = "menulwcfg = {\n"
for i, v in pairs(menulw) do
cfgstring = cfgstring.."['"..i.."'] = " .. tostring(pegavalormenu(i)) .. ",\n"
end
cfgstring = cfgstring .. "}"
file.write("Legendware/"..cfgselecionada..".txt", cfgstring)
print(cfgselecionada .. " SAVED")
end
if (menu.get_bool("LOAD") ~= antigo.load) then
menu.set_bool("scripts.allow_file", true)
antigo.load = menu.get_bool("LOAD")
local cfgload = file.read("Legendware/"..cfgselecionada..".txt")
if (cfgload == "") then print("INVALID CFG 1") return end
local afuncao = loadstring(cfgload)
if type(afuncao) ~= "function" then print("INVALID CFG 2") return end
afuncao()
if (menulwcfg == nil) then print("INVALID CFG 3") return end
for i, v in pairs(menulwcfg) do
setavalormenu(i, v)
end
print("CONFIG LOADED")
end
end)
Вложения
-
26.7 KB Просмотры: 196