Содер
-
Автор темы
- #1
code_language.lua:
-- By qhouz / senkotech & xo-yaw
local http = require("neverlose/http")
local panorama_events = require("neverlose/panorama_events")
local misc = ui.find("Miscellaneous", "Main", "Other");
local version_spoof = misc:switch('Spoof latest client');
local sig = "?? 35 ? ? ? ? 8D 4C 24 10";
local version = utils.opcode_scan("engine.dll", sig, 2);
local interface = ffi.cast('uint32_t**', version)[0];
local function update()
if not version_spoof:get() then
return
end
http.get("https://api.steampowered.com/ISteamApps/UpToDateCheck/v1/?appid=730&version=" .. interface[ 0 ], function(success, response)
if not success or response.status ~= 200 then
return
end
local data = json.parse(response.body);
if data.response.required_version ~= nil then
interface[ 0 ] = data.response.required_version;
end
end)
end
version_spoof:set_callback(update, true);
events.console_input:set(function(i) if i == "disconnect" then update() end end);
events.cs_win_panel_match:set(update);
panorama_events.register_event('CSGOShowMainMenu', update);