Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //potatoe0(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 3F 39 8E E3 3F ? ? 80 40 ? ? A0 40 ? ? 20 41 ? ? 98 41 ? ?").Scan().As<float*>()),//19B1DB0
- //potatoe1(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? E0 3F 39 8E E3 3F ? ? 80 40 ? ? A0 40 ? ? 20 41 ? ? 98 41 ? ?").Scan().As<float*>()),//19B1DB1
- //potatoe2(Signature("? ? ? ? ? ? ? ? ? ? ? ? E0 3F 39 8E E3 3F ? ? 80 40 ? ? A0 40 ? ? 20 41 ? ? 98 41 ? ?").Scan().As<float*>()),//19B1DB2
- //potatoe3(Signature("? ? ? ? ? ? ? ? ? ? ? E0 3F 39 8E E3 3F ? ? 80 40 ? ? A0 40 ? ? 20 41 ? ? 98 41 ? ?").Scan().As<float*>()),//19B1DB3
- //freezetraffic(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FF FF FF FF ? ? ? ? ? ? ? ? ? ? ? ? FF FF FF FF FF FF FF FF 1C 45 ? ? ? 7F ? ? C8 8A ? ? ? ? ? ? B8").Scan().As<float*>()),//19B7188
- shitter_crash(Signature("48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 56 41 57 48 83 EC 20 48 8D 81 D4 ? ? ?").Scan().As<PVOID>()),//15E5690
- m_zenith_patch(Signature("0F 29 A2 B0 00 00 00 8B 81 58 03 00 00").Scan().As<decltype(m_zenith_patch)>()),//GTA5.exe+E3FF77
- m_zenith_transition_patch(Signature("0F 29 A2 E0 00 00 00").Scan().As<decltype(m_zenith_transition_patch)>()),//GTA5.exe+E3FFB1
- m_east_azimuth_patch(Signature("0F 29 62 20").Scan().As<decltype(m_east_azimuth_patch)>()),//GTA5.exe+E3FEC9
- m_west_azimuth_patch(Signature("0F 29 62 50 8B 81 9C 03 00 00").Scan().As<decltype(m_west_azimuth_patch)>()),//GTA5.exe+E3FEFD
- m_azimuth_transition_patch(Signature("0F 29 A2 80 00 00 00").Scan().As<decltype(m_azimuth_transition_patch)>()),//GTA5.exe+E3FF31
- m_cloud_base_patch(Signature("0F 29 A2 80 03 00 00").Scan().As<decltype(m_cloud_base_patch)>()),//GTA5.exe+E402F1
- red_zenith(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 26 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 44 ? ? 80 42 ? ? ? 43 ? ? ? ? 25").Scan().As<float*>()),//GTA5.exe+26BB960
- green_zenith(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 26 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 44 ? ? 80 42 ? ? ? 43 ? ? ? ? 25").Scan().As<float*>()),//GTA5.exe+26BB964
- blue_zenith(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 26 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 44 ? ? 80 42 ? ? ? 43 ? ? ? ? 25").Scan().As<float*>()),//GTA5.exe+26BB968
- red_transition(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 26 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 44 ? ? 80 42 ? ? ? 43 ? ? ? ? 25").Scan().As<float*>()),//GTA5.exe+26BB990 //GTA5.exe+26CEB80 - 00 60 60 - add [rax+60],ah
- green_transition(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 26 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 44 ? ? 80 42 ? ? ? 43 ? ? ? ? 25").Scan().As<float*>()),//GTA5.exe+26BB994
- blue_transition(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 26 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 44 ? ? 80 42 ? ? ? 43 ? ? ? ? 25").Scan().As<float*>()),//GTA5.exe+26BB998
- red_cloud(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? ? ? ? ? ? 17 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 16 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 15").Scan().As<float*>()),//GTA5.exe+0x26EB4E0 //26BBC30
- green_cloud(Signature("? ? ? ? ? ? ? ? ? ? ? ? 1B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? ? ? ? ? ? 17 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 16 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 15").Scan().As<float*>()),//GTA5.exe+0x26EB4E4 //26BBC34
- blue_cloud(Signature("? ? ? ? ? ? ? ? 1B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? ? ? ? ? ? 17 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 16 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 15").Scan().As<float*>()),//GTA5.exe+0x26EB4E0 //26BBC38
- //red_cloud(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? B8 ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? 3F ? ? ? ? 17 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3C 16 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ?").Scan().As<float*>()),//GTA5.exe+26BBC30
- //green_cloud(Signature("? ? ? ? ? ? ? ? ? ? ? ? 1B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? B8 ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? 3F ? ? ? ? 17 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3C 16 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ?").Scan().As<float*>()),//GTA5.exe+26BBC34
- //blue_cloud(Signature("? ? ? ? ? ? ? ? 1B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? B8 ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? 3F ? ? ? ? 17 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 40 ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3C 16 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ?").Scan().As<float*>()),//GTA5.exe+26BBC38
- m_azimuth_west_red(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F 2A ? ? ? ? ? ? 3F ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+0x26EB1B0 //tu scan 48 83 EC 68 0F 29 74 24 50 0F 28 35 tu appuis dessus xmmword_7FF6EFFDB300 et tu compte 6 db h au dessus
- m_azimuth_west_green(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F 2A ? ? ? ? ? ? 3F ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB904
- m_azimuth_west_blue(Signature("? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F 2A ? ? ? ? ? ? 3F ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB908
- //m_azimuth_west_red(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3E ? ? ? ? ? ? 80 3F 2A ? ? ? ? ? ? 3F ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 B0 3C ? ? ? 3D ? ? ? 3D ? E0 B0 3C ? ? 80 3F ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB900
- //m_azimuth_west_green(Signature("? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3E ? ? ? ? ? ? 80 3F 2A ? ? ? ? ? ? 3F ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 B0 3C ? ? ? 3D ? ? ? 3D ? E0 B0 3C ? ? 80 3F ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB904
- //m_azimuth_west_blue(Signature("? ? ? ? ? ? ? 3D ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3E ? ? ? ? ? ? 80 3F 2A ? ? ? ? ? ? 3F ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 B0 3C ? ? ? 3D ? ? ? 3D ? E0 B0 3C ? ? 80 3F ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB908
- m_azimuth_est_red(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+0x26EB180
- m_azimuth_est_green(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+0x26EB184
- m_azimuth_est_blue(Signature("? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+0x26EB188
- //m_azimuth_est_red(Signature("? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? 80 3F ? ? ? ? ? ? ? ? ? ? ? ? 2C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 B0 3C ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB8D0
- //m_azimuth_est_green(Signature("? ? ? ? ? ? ? ? ? ? ? 3D ? ? 80 3F ? ? ? ? ? ? ? ? ? ? ? ? 2C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 B0 3C ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB8D4
- //m_azimuth_est_blue(Signature("? ? ? ? ? ? ? 3D ? ? 80 3F ? ? ? ? ? ? ? ? ? ? ? ? 2C ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3D ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 2B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 29 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? E0 B0 3C ? ? ? 3F ? ? ? ? ? ? ? ? ? ? ? ? 28").Scan().As<float*>()),//GTA5.exe+26BB8D8
- float m_function::FogValue = 0.0f;
- int m_function::lastrdatachar = 0;
- bool m_function::toggleoffsetrdata = 0;
- bool getlineRDATA = 1;
- int rdataLINE = 0;
- int getRDATAline()
- {
- rdataLINE = ARRAYSIZE(rdata);
- return 0;
- }
- int m_function::offsetrdatatoggle()
- {
- if (getlineRDATA)
- {
- getRDATAline();
- getlineRDATA = 0;
- }
- if (m_function::toggleoffsetrdata)
- {
- DWORD ticks = GetTickCount64();
- DWORD milliseconds = ticks % 1000;
- ticks /= 1000;
- DWORD seconds = ticks % 60;
- int getTimer = seconds;
- if (getTimer % 2 == 0)
- {
- if (m_function::lastrdatachar <= rdataLINE)
- {
- std::string datar = std::string(rdata[m_function::lastrdatachar]);
- Log::Msg((char*)datar.c_str());
- int m_dwIP;
- std::istringstream ss(datar);
- ss >> std::hex >> m_dwIP;
- string str = std::to_string(m_dwIP);
- //Log::Msg((char*)std::string(std::to_string(m_dwIP)).c_str());
- Log::Msg((char*)str.c_str());
- uintptr_t base_address = uintptr_t(GetModuleHandleA(nullptr));
- *((int*)(base_address + (m_dwIP))) = m_function::FogValue;
- m_function::lastrdatachar = m_function::lastrdatachar + 1;
- }
- else
- {
- m_function::toggleoffsetrdata = 0;
- m_function::lastrdatachar = 0;
- }
- }
- }
- return 0;
- }
- int m_function::offsetrdata()
- {
- if (IsKeyPressed(VK_ADD))
- {
- m_function::FogValue = 0.0f;
- }
- if (IsKeyPressed(VK_SUBTRACT))
- {
- m_function::FogValue = -255.0f;
- }
- for (int i = 0; i < ARRAYSIZE(rdata); i++)//pointdata
- {
- if (Menu::Option(rdata[i]))
- {
- std::string datar = std::string(rdata[i]);
- Log::Msg((char*)datar.c_str());
- int m_dwIP;
- std::istringstream ss(datar);
- ss >> std::hex >> m_dwIP;
- string str = std::to_string(m_dwIP);
- Log::Msg((char*)std::string(std::to_string(m_dwIP)).c_str());
- Log::Msg((char*)str.c_str());
- uintptr_t base_address = uintptr_t(GetModuleHandleA(nullptr));
- *((int*)(base_address + (m_dwIP))) = m_function::FogValue; //? ? ? ? 6F 12 83 3A 0A D7 23 3C 35 FA 8E 3C 08 21 04 3D 89 88 08 3D
- }
- }
- return 0;
- }
- #pragma region changesclouds
- case changesclouds:
- {
- Menu::Title("Weather Menu");
- headers::thunderheaders();
- Menu::MenuOption("azimuth east", azimutheast);
- Menu::MenuOption("azimuth west", azimuthwest);
- Menu::MenuOption("azimuth transition", azimuthtransition);
- Menu::MenuOption("zenithtransition", zenithtransition);
- Menu::MenuOption("azimuthz", azimuthz);
- //Menu::MenuOption("cloudbase", cloudbase);
- //Menu::MenuOption("zenith", zenith);
- m_function::changeclouds();
- headers::thunderbackgrounds();
- backgrounds::casesixteen();
- }
- break;
- #pragma endregion
- #pragma region trafficspeed
- case trafficspeed:
- {
- Menu::Title("Traffic Speed");
- headers::thunderheaders();
- m_function::trafficspeed();
- headers::thunderbackgrounds();
- backgrounds::casesixteen();
- }
- break;
- #pragma endregion
- #pragma region azimuthz
- case azimuthz:
- {
- Menu::Title("Change Color");
- headers::thunderheaders();
- Menu::Float("zenith_red value", g_Settings.zenith_red, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_green value", g_Settings.zenith_green, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_blue value", g_Settings.zenith_blue, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_intensity value", m_vars.m_zenith_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("Color Pattern1"))
- {
- std::fill_n(g_GameVariables->m_zenith_patch, 7, '\x90');
- *(float*)g_GameVariables->red_zenith = (g_Settings.zenith_red / 255.f) * m_vars.m_zenith_intensity;
- *(float*)g_GameVariables->green_zenith = (g_Settings.zenith_green / 255.f) * m_vars.m_zenith_intensity;
- *(float*)g_GameVariables->blue_zenith = (g_Settings.zenith_blue / 255.f) * m_vars.m_zenith_intensity;
- }
- if (Menu::Option("Color Pattern2"))
- {
- std::fill_n(g_GameVariables->m_zenith_patch, 7, '\x90');
- DWORD hash_code = (((int)m_vars.m_zenith_intensity & 0xFF) << 24) + (((int)g_Settings.zenith_red & 0xFF) << 16) + (((int)g_Settings.zenith_green & 0xFF) << 8) + ((int)g_Settings.zenith_blue & 0xFF);
- g_Settings.m_SkyAlpha = (hash_code & 0xFF000000) >> 24;
- g_Settings.m_SkyRed = (hash_code & 0x00FF0000) >> 16;
- g_Settings.m_SkyGreen = (hash_code & 0x0000FF00) >> 8;
- g_Settings.m_SkyBlue = (hash_code & 0x000000FF);
- *(float*)g_GameVariables->red_zenith = (g_Settings.m_SkyRed / 255.f) * g_Settings.m_SkyAlpha;
- *(float*)g_GameVariables->green_zenith = (g_Settings.m_SkyGreen / 255.f) * g_Settings.m_SkyAlpha;
- *(float*)g_GameVariables->blue_zenith = (g_Settings.m_SkyBlue / 255.f) * g_Settings.m_SkyAlpha;
- }
- if (Menu::Option("Color Pattern3"))
- {
- std::fill_n(g_GameVariables->m_zenith_patch, 7, '\x90');
- DWORD hash_code = (((int)m_vars.m_zenith_intensity & 0xFF) << 24) + (((int)g_Settings.zenith_red & 0xFF) << 16) + (((int)g_Settings.zenith_green & 0xFF) << 8) + ((int)g_Settings.zenith_blue & 0xFF);
- g_Settings.m_SkyAlpha = (hash_code & 0xFF000000) >> 24;
- g_Settings.m_SkyRed = (hash_code & 0x00FF0000) >> 16;
- g_Settings.m_SkyGreen = (hash_code & 0x0000FF00) >> 8;
- g_Settings.m_SkyBlue = (hash_code & 0x000000FF);
- *(float*)g_GameVariables->red_zenith = g_Settings.m_SkyRed;
- *(float*)g_GameVariables->green_zenith = g_Settings.m_SkyGreen;
- *(float*)g_GameVariables->blue_zenith = g_Settings.m_SkyBlue;
- }
- Menu::Float("m_zenith_transition_red value", m_vars.m_zenith_transition_red, 0.f, 255.0f, 1.f);
- Menu::Float("m_zenith_transition_green value", m_vars.m_zenith_transition_green, 0.f, 255.0f, 1.f);
- Menu::Float("m_zenith_transition_blue value", m_vars.m_zenith_transition_blue, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_intensity value", m_vars.m_zenith_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("Color Transition"))
- {
- std::fill_n(g_GameVariables->m_zenith_transition_patch, 7, '\x90');
- uintptr_t base_address = uintptr_t(GetModuleHandleA(nullptr));
- uintptr_t zenith_transition_red = engine::scan_address(base_address + 0x26EB210, {});//0x26BB990
- uintptr_t zenith_transition_green = engine::scan_address(base_address + 0x26EB214, {});//0x26BB994
- uintptr_t zenith_transition_blue = engine::scan_address(base_address + 0x26EB218, {});//0x26BB998
- *(float*)zenith_transition_red = (m_vars.m_zenith_transition_red / 255.f) * m_vars.m_zenith_transition_intensity;
- *(float*)zenith_transition_green = (m_vars.m_zenith_transition_green / 255.f) * m_vars.m_zenith_transition_intensity;
- *(float*)zenith_transition_blue = (m_vars.m_zenith_transition_blue / 255.f) * m_vars.m_zenith_transition_intensity;
- }
- if (Menu::Option("Color Transition Pattern"))
- {
- std::fill_n(g_GameVariables->m_zenith_transition_patch, 7, '\x90');
- DWORD hash_code = (((int)m_vars.m_zenith_intensity & 0xFF) << 24) + (((int)g_Settings.zenith_red & 0xFF) << 16) + (((int)g_Settings.zenith_green & 0xFF) << 8) + ((int)g_Settings.zenith_blue & 0xFF);
- g_Settings.m_SkyAlpha = (hash_code & 0xFF000000) >> 24;
- g_Settings.m_SkyRed = (hash_code & 0x00FF0000) >> 16;
- g_Settings.m_SkyGreen = (hash_code & 0x0000FF00) >> 8;
- g_Settings.m_SkyBlue = (hash_code & 0x000000FF);
- *(float*)g_GameVariables->red_transition = g_Settings.m_SkyRed;
- *(float*)g_GameVariables->green_transition = g_Settings.m_SkyGreen;
- *(float*)g_GameVariables->blue_transition = g_Settings.m_SkyBlue;
- }
- if (Menu::Option("Reset"))
- {
- std::copy_n("\x0F\x29\xA2\xE0", 7, g_GameVariables->m_zenith_transition_patch);
- }
- if (Menu::Option("Reset2"))
- {
- std::copy_n("\x0F\x29\xA2\xB0", 7, g_GameVariables->m_zenith_transition_patch);
- }
- headers::thunderbackgrounds();
- backgrounds::casefourteen();
- }
- break;
- #pragma endregion
- #pragma region azimuthwest
- case azimuthwest:
- {
- Menu::Title("Change Color");
- headers::thunderheaders();
- Menu::Float("m_azimuth_west_red value", m_vars.m_azimuth_west_red, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_west_green value", m_vars.m_azimuth_west_green, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_west_blue value", m_vars.m_azimuth_west_blue, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_west_intensity value", m_vars.m_azimuth_west_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("m_azimuth_west"))
- {
- std::fill_n(g_GameVariables->m_west_azimuth_patch, 4, '\x90');
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- uintptr_t west_red = engine::scan_address(g_base_address + 0x26EB1B0, {});
- uintptr_t west_green = engine::scan_address(g_base_address + 0x26EB1B4, {});
- uintptr_t west_blue = engine::scan_address(g_base_address + 0x26EB1B8, {});
- *(float*)west_red = (m_vars.m_azimuth_west_red / 255.f) * m_vars.m_azimuth_west_intensity;
- *(float*)west_green = (m_vars.m_azimuth_west_green / 255.f) * m_vars.m_azimuth_west_intensity;
- *(float*)west_blue = (m_vars.m_azimuth_west_blue / 255.f) * m_vars.m_azimuth_west_intensity;
- }
- if (Menu::Option("m_azimuth_west Pattern"))
- {
- std::fill_n(g_GameVariables->m_west_azimuth_patch, 4, '\x90');
- *(float*)g_GameVariables->m_azimuth_west_red = (m_vars.m_azimuth_west_red / 255.f) * m_vars.m_azimuth_west_intensity;
- *(float*)g_GameVariables->m_azimuth_west_green = (m_vars.m_azimuth_west_green / 255.f) * m_vars.m_azimuth_west_intensity;
- *(float*)g_GameVariables->m_azimuth_west_blue = (m_vars.m_azimuth_west_blue / 255.f) * m_vars.m_azimuth_west_intensity;
- }
- if (Menu::Option("Reset"))
- {
- std::copy_n("\x0F\x29\x62\x50", 4, g_GameVariables->m_west_azimuth_patch);
- }
- headers::thunderbackgrounds();
- backgrounds::caseseven();
- }
- break;
- #pragma endregion
- #pragma region sunintensity
- case sunintensity:
- {
- Menu::Title("Sun Change Color");
- headers::thunderheaders();
- if (Menu::Option((char*)langage::h16.c_str())) { TIME::SET_CLOCK_TIME(16, 0, 0); }
- Menu::Float("redsun value", g_Settings.sunred, 0.f, 255.0f, 1.f);
- Menu::Float("greensun value", g_Settings.sungreen, 0.f, 255.0f, 1.f);
- Menu::Float("bluesun value", g_Settings.sunblue, 0.f, 255.0f, 1.f);
- Menu::Float("sunalpha value", g_Settings.sunalpha, 0.f, 255.0f, 1.f);
- if (Menu::Option("sun"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- memset(reinterpret_cast<void*>(g_base_address + 0xE437F2), 0x90, 4); //E43896//E4369E//0xE437F2
- uintptr_t redsun = engine::scan_address(g_base_address + 0x2851EA0, {});//28367E0//0x2822600 //0x2835800
- uintptr_t greensun = engine::scan_address(g_base_address + 0x2851EA4, {});//0x28367E4//0x2822604 //0x2835804
- uintptr_t bluesun = engine::scan_address(g_base_address + 0x2851EA8, {});//0x28367E8//0x2822608 //0x2835808
- *(float*)redsun = (g_Settings.sunred / 255.f) * g_Settings.sunalpha;
- *(float*)greensun = (g_Settings.sungreen / 255.f) * g_Settings.sunalpha;
- *(float*)bluesun = (g_Settings.sunblue / 255.f) * g_Settings.sunalpha;
- }
- if (Menu::Option("Reset Sun"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x40", 4, reinterpret_cast<char*>(g_base_address + 0xE4EBDA));//E437F2//moon
- }
- Menu::Float("redsun2 value", g_Settings.sunred2, 0.f, 255.0f, 1.f);
- Menu::Float("greensun2 value", g_Settings.sungreen2, 0.f, 255.0f, 1.f);
- Menu::Float("bluesun2 value", g_Settings.sunblue2, 0.f, 255.0f, 1.f);
- Menu::Float("sunalpha2 value", g_Settings.sunalpha2, 0.f, 255.0f, 1.f);
- if (Menu::Option("sun Atmosphère"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- memset(reinterpret_cast<void*>(g_base_address + 0xE4EBD2), 0x90, 4);//0xE4388E//0xE437EA//0xE43696
- uintptr_t redsun2 = engine::scan_address(g_base_address + 0x2851E94, {});//28367D4//0x28357F4//0x28225F4
- uintptr_t greensun2 = engine::scan_address(g_base_address + 0x2851E98, {});//28367D8//0x28357F8//0x28225F8
- uintptr_t bluesun2 = engine::scan_address(g_base_address + 0x2851E9C, {});//28367DC//0x28357FC//0x28225FC
- *(float*)redsun2 = (g_Settings.sunred2 / 255.f) * g_Settings.sunalpha2;
- *(float*)greensun2 = (g_Settings.sungreen2 / 255.f) * g_Settings.sunalpha2;
- *(float*)bluesun2 = (g_Settings.sunblue2 / 255.f) * g_Settings.sunalpha2;
- }
- if (Menu::Option("Reset Sun Atmosph"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\x30", 4, reinterpret_cast<char*>(g_base_address + 0xE4EBD2));//E437EA//moon
- }
- Menu::Float("redsun3 value", g_Settings.sun_red, 0.f, 255.0f, 1.f);
- Menu::Float("greensun3 value", g_Settings.sun_green, 0.f, 255.0f, 1.f);
- Menu::Float("bluesun3 value", g_Settings.sun_blue, 0.f, 255.0f, 1.f);
- Menu::Float("sunalpha3 value", g_Settings.sun_alpha, 0.f, 255.0f, 1.f);
- if (Menu::Option("Sun Pattern"))
- {
- auto SunPTR = Memory::pattern("80 3F 00 00 80 3F CD CC 4C 3E 9A 99 99 3E 00 00 80 3F 00 00 80 3F 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SunPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SunPointer = in2;
- //0x2822d6e
- Addresss::SunPointerred = (DWORD64)Addresss::SunPointer - (DWORD64)0x76E;
- Addresss::SunPointergreen = (DWORD64)Addresss::SunPointer - (DWORD64)0x76A;
- Addresss::SunPointerblue = (DWORD64)Addresss::SunPointer - (DWORD64)0x766;
- Addresss::SunPointerpatch = (DWORD64)Addresss::SunPointer - (DWORD64)0x1A03A34;//19F36B8
- /*
- 0x2822d6e - 0xE4369E = 0x19DF6D0
- 0x2822d6e - 0x2822600 = 0x76E
- 0x2822d6e - 0x2822604 = 0x76A
- 0x2822d6e - 0x2822608 = 0x766
- */
- memset(reinterpret_cast<void*>(base_address + Addresss::SunPointerpatch), 0x90, 4);
- uintptr_t redsun2 = engine::scan_address(base_address + Addresss::SunPointerred, {});
- uintptr_t greensun2 = engine::scan_address(base_address + Addresss::SunPointergreen, {});
- uintptr_t bluesun2 = engine::scan_address(base_address + Addresss::SunPointerblue, {});
- *(float*)redsun2 = (g_Settings.sun_red / 255.f) * g_Settings.sun_alpha;
- *(float*)greensun2 = (g_Settings.sun_green / 255.f) * g_Settings.sun_alpha;
- *(float*)bluesun2 = (g_Settings.sun_blue / 255.f) * g_Settings.sun_alpha;
- }
- if (Menu::Option("Reset Sun"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x40", 4, reinterpret_cast<char*>(g_base_address + Addresss::SunPointerpatch));//0xE4369E
- }
- Menu::Float("redsun A value", g_Settings.sun_red_a, 0.f, 255.0f, 1.f);
- Menu::Float("greensun A value", g_Settings.sun_green_a, 0.f, 255.0f, 1.f);
- Menu::Float("bluesun A value", g_Settings.sun_blue_a, 0.f, 255.0f, 1.f);
- Menu::Float("sun A alpha4 value", g_Settings.sun_alpha, 0.f, 255.0f, 1.f);
- if (Menu::Option("sun Atmosphère Pattern"))
- {
- auto SunPTR = Memory::pattern("80 3F 00 00 80 3F CD CC 4C 3E 9A 99 99 3E 00 00 80 3F 00 00 80 3F 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SunPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SunPointerat = in2;
- //0x2822d6e
- Addresss::SunPointerredat = (DWORD64)Addresss::SunPointerat - (DWORD64)0x77A;
- Addresss::SunPointergreenat = (DWORD64)Addresss::SunPointerat - (DWORD64)0x776;
- Addresss::SunPointerblueat = (DWORD64)Addresss::SunPointerat - (DWORD64)0x772;
- Addresss::SunPointerpatchat = (DWORD64)Addresss::SunPointerat - (DWORD64)0x1A03A3C;//19F36C0//0x19F2784//0x19DF6D8
- /*
- 0x2822d6e - 0xE43696 = 0x19DF6D8
- 0x2822d6e - 0x28225F4 = 0x77A
- 0x2822d6e - 0x28225F8 = 0x776
- 0x2822d6e - 0x28225FC = 0x772
- */
- memset(reinterpret_cast<void*>(base_address + Addresss::SunPointerpatchat), 0x90, 4);
- uintptr_t redsun2 = engine::scan_address(base_address + Addresss::SunPointerredat, {});
- uintptr_t greensun2 = engine::scan_address(base_address + Addresss::SunPointergreenat, {});
- uintptr_t bluesun2 = engine::scan_address(base_address + Addresss::SunPointerblueat, {});
- *(float*)redsun2 = (g_Settings.sun_red_a / 255.f) * g_Settings.sun_alpha_a;
- *(float*)greensun2 = (g_Settings.sun_green_a / 255.f) * g_Settings.sun_alpha_a;
- *(float*)bluesun2 = (g_Settings.sun_blue_a / 255.f) * g_Settings.sun_alpha_a;
- }
- if (Menu::Option("Reset Sun Atmosph"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\x30", 4, reinterpret_cast<char*>(g_base_address + Addresss::SunPointerpatchat));
- }
- headers::thunderbackgrounds();
- backgrounds::casesixteen();
- }
- break;
- #pragma endregion
- #pragma region moonintensity
- case moonintensity:
- {
- Menu::Title("Moon Change Color");
- headers::thunderheaders();
- if (Menu::Option((char*)langage::h3.c_str())) { TIME::SET_CLOCK_TIME(3, 0, 0); }
- Menu::Float("redmoon value", g_Settings.moonred, 0.f, 255.0f, 1.f);
- Menu::Float("greenmoon value", g_Settings.moongreen, 0.f, 255.0f, 1.f);
- Menu::Float("bluemoon value", g_Settings.moonblue, 0.f, 255.0f, 1.f);
- Menu::Float("moonalpha value", g_Settings.moonalpha, 0.f, 255.0f, 1.f);
- if (Menu::Option("Moon"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- memset(reinterpret_cast<void*>(g_base_address + 0xE4EBED), 0x90, 4);//E438A9//0xE436B1//0xE43805
- memset(reinterpret_cast<void*>(g_base_address + 0xE4EBF4), 0x90, 4);//E438B0//0xE436B1//0xE4380C
- uintptr_t redmoon = engine::scan_address(g_base_address + 0x2851EC8, {});//2836808//0x2835828
- uintptr_t greenmoon = engine::scan_address(g_base_address + 0x2851ECC, {});//283680C//0x283582C
- uintptr_t bluemoon = engine::scan_address(g_base_address + 0x2851ED0, {});//2836810//0x2835830
- *(float*)redmoon = (g_Settings.moonred / 255.f) * g_Settings.moonalpha;
- *(float*)greenmoon = (g_Settings.moongreen / 255.f) * g_Settings.moonalpha;
- *(float*)bluemoon = (g_Settings.moonblue / 255.f) * g_Settings.moonalpha;
- }
- //GTA5.exe + E43805 - 0F29 41 60 - movaps[rcx + 60], xmm0
- //GTA5.exe+E4380C - 0F29 49 F0 - movaps [rcx-10],xmm1
- if (Menu::Option("Reset Moon"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x60", 4, reinterpret_cast<char*>(g_base_address + 0xE4EBED));//0xE43805//moon
- std::copy_n("\x0F\x29\x49\xF0", 4, reinterpret_cast<char*>(g_base_address + 0xE4EBF4));//E4380C//moon
- }
- Menu::Float("redmoon2 value", g_Settings.moon_red, 0.f, 255.0f, 1.f);
- Menu::Float("greenmoon2 value", g_Settings.moon_green, 0.f, 255.0f, 1.f);
- Menu::Float("bluemoon2 value", g_Settings.moon_blue, 0.f, 255.0f, 1.f);
- Menu::Float("moonalpha2 value", g_Settings.moon_alpha, 0.f, 255.0f, 1.f);
- if (Menu::Option("moon2 Pattern"))
- {
- auto moonPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)moonPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::MoonPointer = in2;
- Addresss::MoonPointerred = (DWORD64)Addresss::MoonPointer - (DWORD64)0x777;//0x2822D9F - 0x2822628 = 0x777
- Addresss::MoonPointergreen = (DWORD64)Addresss::MoonPointer - (DWORD64)0x773;//0x2822D9F - 0x282262C = 0x773
- Addresss::MoonPointerblue = (DWORD64)Addresss::MoonPointer - (DWORD64)0x76F;//0x2822D9F - 0x2822630 = 0x76F
- Addresss::MoonPointerpatch = (DWORD64)Addresss::MoonPointer - (DWORD64)0x1A03A52;//19F36D6//0x2822D9F - 0xE436B1 = 0x19DF6EE
- Addresss::MoonPointerpatch_ = (DWORD64)Addresss::MoonPointer - (DWORD64)0x1A03A4B;//19F36CF//0x2822D9F - 0xE436B1 = 0x19DF6EE
- //2835F9F - E4380C = 19F 2793
- memset(reinterpret_cast<void*>(base_address + Addresss::MoonPointerpatch), 0x90, 4);
- uintptr_t redmoon = engine::scan_address(base_address + Addresss::MoonPointerred, {});
- uintptr_t greenmoon = engine::scan_address(base_address + Addresss::MoonPointergreen, {});
- uintptr_t bluemoon = engine::scan_address(base_address + Addresss::MoonPointerblue, {});
- *(float*)redmoon = (g_Settings.moon_red / 255.f) * g_Settings.moon_alpha;
- *(float*)greenmoon = (g_Settings.moon_green / 255.f) * g_Settings.moon_alpha;
- *(float*)bluemoon = (g_Settings.moon_blue / 255.f) * g_Settings.moon_alpha;
- }
- if (Menu::Option("Reset Moon Pattern"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x60", 4, reinterpret_cast<char*>(g_base_address + Addresss::MoonPointerpatch));//moon
- std::copy_n("\x0F\x29\x49\xF0", 4, reinterpret_cast<char*>(g_base_address + Addresss::MoonPointerpatch_));//moon
- }
- headers::thunderbackgrounds();
- /*backgrounds::caseseven();*/
- /*backgrounds::casesixteen();*/
- backgrounds::casethirteen();
- }
- break;
- #pragma endregion
- #pragma region skycolor
- case skycolor:
- {
- Menu::Title("Sky Change Color");
- headers::thunderheaders();
- Menu::Float("redsky value", g_Settings.sky_red_p, 0.f, 255.0f, 1.f);
- Menu::Float("greensky value", g_Settings.sky_green_p, 0.f, 255.0f, 1.f);
- Menu::Float("bluesky value", g_Settings.sky_blue_p, 0.f, 255.0f, 1.f);
- Menu::Float("skyalpha value", g_Settings.sky_alpha_p, 0.f, 255.0f, 1.f);
- if (Menu::Option("Sky Pattern"))
- {
- auto SkyPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SkyPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SkyPointer = in2;
- Addresss::SkyPointerred = (DWORD64)Addresss::SkyPointer - (DWORD64)0x5C7;//0x2822D9F - 0x28227D8 = 0x5C7
- Addresss::SkyPointergreen = (DWORD64)Addresss::SkyPointer - (DWORD64)0x5C3;//0x2822D9F - 0x28227DC = 0x5C3
- Addresss::SkyPointerblue = (DWORD64)Addresss::SkyPointer - (DWORD64)0x5BF;//0x2822D9F - 0x28227E0 = 0x5BF
- Addresss::SkyPointerpatch = (DWORD64)Addresss::SkyPointer - (DWORD64)0x1A03A7D;//19F3701//0x2822D9F - 0xE43686 = 0x19DF719 //0x19F27BD
- Addresss::SkyPointerpatch_ = (DWORD64)Addresss::SkyPointer - (DWORD64)0x1A03A75;//19F36F9//0x2822D9F - 0xE43686 = 0x19DF719 //0x19F27BD
- //GTA5.exe+E43686 - 0F29 49 10
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch), 0x90, 4);
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch_), 0x90, 4);
- uintptr_t redsky2 = engine::scan_address(base_address + Addresss::SkyPointerred, {});
- uintptr_t greensky2 = engine::scan_address(base_address + Addresss::SkyPointergreen, {});
- uintptr_t bluesky2 = engine::scan_address(base_address + Addresss::SkyPointerblue, {});
- *(float*)redsky2 = (g_Settings.sky_red_p / 255.f) * g_Settings.sky_alpha_p;
- *(float*)greensky2 = (g_Settings.sky_green_p / 255.f) * g_Settings.sky_alpha_p;
- *(float*)bluesky2 = (g_Settings.sky_blue_p / 255.f) * g_Settings.sky_alpha_p;
- /*
- GTA5.exe+E43686 - 0F29 49 10
- // 7FF60BF327D8
- // GTA5.exe + 28227D8//red
- // 7FF60BF327DC
- // GTA5.exe + 28227DC//green
- // 7FF60BF327E0
- // GTA5.exe + 28227E0//blue
- */
- }
- if (Menu::Option("Reset Sky"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\x10", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch));//0xE43686
- std::copy_n("\x0F\x29\x41\x20", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch_));//0xE43686
- }
- Menu::Float("redsky1 value", g_Settings.sky_red_p1, 0.f, 255.0f, 1.f);
- Menu::Float("greensky1 value", g_Settings.sky_green_p1, 0.f, 255.0f, 1.f);
- Menu::Float("bluesky1 value", g_Settings.sky_blue_p1, 0.f, 255.0f, 1.f);
- Menu::Float("skyalpha1 value", g_Settings.sky_alpha_p1, 0.f, 255.0f, 1.f);
- if (Menu::Option("Sky1 Pattern"))
- {
- auto SkyPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SkyPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SkyPointer1 = in2;
- Addresss::SkyPointerred1 = (DWORD64)Addresss::SkyPointer1 - (DWORD64)0x73F;//0x2822D9F - 0x2822660 = 0x73F
- Addresss::SkyPointergreen1 = (DWORD64)Addresss::SkyPointer1 - (DWORD64)0x73B;//0x2822D9F - 0x2822664 = 0x73B
- Addresss::SkyPointerblue1 = (DWORD64)Addresss::SkyPointer1 - (DWORD64)0x737;//0x2822D9F - 0x2822668 = 0x737
- Addresss::SkyPointerpatch1 = (DWORD64)Addresss::SkyPointer1 - (DWORD64)0x1A03A75;//19F36F9//0x19F27BD //0x2822D9F - 0xE4368E = 0x19DF711
- //GTA5.exe+E4368E - 0F29 41 20
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch1), 0x90, 4);
- uintptr_t redsky2 = engine::scan_address(base_address + Addresss::SkyPointerred1, {});
- uintptr_t greensky2 = engine::scan_address(base_address + Addresss::SkyPointergreen1, {});
- uintptr_t bluesky2 = engine::scan_address(base_address + Addresss::SkyPointerblue1, {});
- *(float*)redsky2 = (g_Settings.sky_red_p1 / 255.f) * g_Settings.sky_alpha_p1;
- *(float*)greensky2 = (g_Settings.sky_green_p1 / 255.f) * g_Settings.sky_alpha_p1;
- *(float*)bluesky2 = (g_Settings.sky_blue_p1 / 255.f) * g_Settings.sky_alpha_p1;
- }
- if (Menu::Option("Reset Sky1"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x20", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch1));
- }
- Menu::Float("redsky2 value", g_Settings.sky_red_p2, 0.f, 255.0f, 1.f);
- Menu::Float("greensky2 value", g_Settings.sky_green_p2, 0.f, 255.0f, 1.f);
- Menu::Float("bluesky2 value", g_Settings.sky_blue_p2, 0.f, 255.0f, 1.f);
- Menu::Float("skyalpha2 value", g_Settings.sky_alpha_p2, 0.f, 255.0f, 1.f);
- if (Menu::Option("Sky2 Pattern"))
- {
- auto SkyPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SkyPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SkyPointer2 = in2;
- Addresss::SkyPointerred2 = (DWORD64)Addresss::SkyPointer2 - (DWORD64)0x733;//0x2822D9F - 0x282266C = 0x733
- Addresss::SkyPointergreen2 = (DWORD64)Addresss::SkyPointer2 - (DWORD64)0x72F;//0x2822D9F - 0x2822670 = 0x72F
- Addresss::SkyPointerblue2 = (DWORD64)Addresss::SkyPointer2 - (DWORD64)0x72B;//0x2822D9F - 0x2822674 = 0x72B
- Addresss::SkyPointerpatch2_ = (DWORD64)Addresss::SkyPointer2 - (DWORD64)0x1A03A75;//19F36F9//0x19F27BD//0x2822D9F - 0xE4368E = 0x19DF711
- Addresss::SkyPointerpatch2 = (DWORD64)Addresss::SkyPointer2 - (DWORD64)0x1A03A6D;//19F36F1//0x19F27B5//0x2822D9F - 0xE4368E = 0x19DF711
- //GTA5.exe + E4368E - 0F29 41 20 - movaps[rcx + 20], xmm0
- /*GTA5.exe + E437E2 - 0F29 41 20 - movaps[rcx + 20], xmm0
- GTA5.exe + E437EA - 0F29 49 30 - movaps[rcx + 30], xmm1*/
- /*2835F9F - E437E2 = 19F 27BD
- 2835F9F - E437EA = 19F 27B5*/
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch2_), 0x90, 4);
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch2), 0x90, 4);
- uintptr_t redsky2 = engine::scan_address(base_address + Addresss::SkyPointerred2, {});
- uintptr_t greensky2 = engine::scan_address(base_address + Addresss::SkyPointergreen2, {});
- uintptr_t bluesky2 = engine::scan_address(base_address + Addresss::SkyPointerblue2, {});
- *(float*)redsky2 = (g_Settings.sky_red_p2 / 255.f) * g_Settings.sky_alpha_p2;
- *(float*)greensky2 = (g_Settings.sky_green_p2 / 255.f) * g_Settings.sky_alpha_p2;
- *(float*)bluesky2 = (g_Settings.sky_blue_p2 / 255.f) * g_Settings.sky_alpha_p2;
- }
- if (Menu::Option("Reset Sky2"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x20", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch2_));
- std::copy_n("\x0F\x29\x49\x30", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch2));
- }
- Menu::Float("redsky3 value", g_Settings.sky_red_p3, 0.f, 255.0f, 1.f);
- Menu::Float("greensky3 value", g_Settings.sky_green_p3, 0.f, 255.0f, 1.f);
- Menu::Float("bluesky3 value", g_Settings.sky_blue_p3, 0.f, 255.0f, 1.f);
- Menu::Float("skyalpha3 value", g_Settings.sky_alpha_p3, 0.f, 255.0f, 1.f);
- if (Menu::Option("Sky3 Pattern"))
- {
- auto SkyPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SkyPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SkyPointer3 = in2;
- Addresss::SkyPointerred3 = (DWORD64)Addresss::SkyPointer3 - (DWORD64)0x723;//0x2822D9F - 0x282267C = 0x723
- Addresss::SkyPointergreen3 = (DWORD64)Addresss::SkyPointer3 - (DWORD64)0x71F;//0x2822D9F - 0x2822680 = 0x71F
- Addresss::SkyPointerblue3 = (DWORD64)Addresss::SkyPointer3 - (DWORD64)0x71B;//0x2822D9F - 0x2822684 = 0x71B
- Addresss::SkyPointerpatch3 = (DWORD64)Addresss::SkyPointer3 - (DWORD64)0x1A03A6D;//19F36F1//0x19F27B5//0x2822D9F - 0xE43696 = 0x19DF709
- Addresss::SkyPointerpatch3_ = (DWORD64)Addresss::SkyPointer3 - (DWORD64)0x1A03A65;//19F36E9//0x19F27AD//0x2822D9F - 0xE4369E = 0x19DF701
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch3), 0x90, 4);
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch3_), 0x90, 4);
- uintptr_t redsky2 = engine::scan_address(base_address + Addresss::SkyPointerred3, {});
- uintptr_t greensky2 = engine::scan_address(base_address + Addresss::SkyPointergreen3, {});
- uintptr_t bluesky2 = engine::scan_address(base_address + Addresss::SkyPointerblue3, {});
- *(float*)redsky2 = (g_Settings.sky_red_p3 / 255.f) * g_Settings.sky_alpha_p3;
- *(float*)greensky2 = (g_Settings.sky_green_p3 / 255.f) * g_Settings.sky_alpha_p3;
- *(float*)bluesky2 = (g_Settings.sky_blue_p3 / 255.f) * g_Settings.sky_alpha_p3;
- }
- if (Menu::Option("Reset Sky3"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\x30", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch3));
- std::copy_n("\x0F\x29\x41\x40", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch3_));
- }
- Menu::Float("Clouds value", g_Settings.sky_intensity_p4, 0.f, 5555.0f, 1.f);
- if (Menu::Option("Clouds1 Pattern"))
- {
- auto SkyPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SkyPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SkyPointer4 = in2;
- Addresss::getSkyPointer4 = (DWORD64)Addresss::SkyPointer4 - (DWORD64)0x707;//0x2822D9F - 0x2822698 = 0x707
- Addresss::SkyPointerpatch4 = (DWORD64)Addresss::SkyPointer4 - (DWORD64)0x1A03A5D;//19F36E1//0x19F27A5//0x2822D9F - 0xE436A6 = 0x19DF6F9
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch4), 0x90, 4);
- uintptr_t redsky2 = engine::scan_address(base_address + Addresss::getSkyPointer4, {});
- *(float*)redsky2 = g_Settings.sky_intensity_p4;
- }
- if (Menu::Option("Reset Clouds1"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\x50", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch4));
- }
- Menu::Float("Clouds2 value", g_Settings.sky_intensity_p5, 0.f, 5555.0f, 1.f);
- if (Menu::Option("Clouds2 Pattern"))
- {
- auto SkyPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)SkyPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::SkyPointer5 = in2;
- Addresss::getSkyPointer5 = (DWORD64)Addresss::SkyPointer5 - (DWORD64)0x6FB;//0x2822D9F - 0x28226A4 = 0x6FB
- Addresss::SkyPointerpatch5 = (DWORD64)Addresss::SkyPointer5 - (DWORD64)0x1A03A52;//19F36D6//0x19F279A//0x2822D9F - 0xE436B1 = 0x19DF6EE
- memset(reinterpret_cast<void*>(base_address + Addresss::SkyPointerpatch5), 0x90, 4);
- uintptr_t redsky2 = engine::scan_address(base_address + Addresss::getSkyPointer5, {});
- *(float*)redsky2 = g_Settings.sky_intensity_p5;
- }
- if (Menu::Option("Reset Clouds2"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x41\x60", 4, reinterpret_cast<char*>(g_base_address + Addresss::SkyPointerpatch5));
- }
- /*blackandwhiteflashGTA5.exe + 28227D1 GTA5.exe + 15F9B3C - F3 41 0F11 09 GTA5.exe + 15F9B57 - F3 41 0F11 01
- cloudsflash2GTA5.exe + E436A6 - 0F29 49 50 - movaps[rcx + 50], xmm1
- GTA5.exe + 2822698 - 7E 5E - jle GTA5.exe + 28226F8
- cloudsflashGTA5.exe + E436B1 - 0F29 41 60 - movaps[rcx + 60], xmm0
- GTA5.exe + 28226A4 - 9E - sahf*/
- headers::thunderbackgrounds();
- backgrounds::casesixteen();
- }
- break;
- #pragma endregion
- #pragma region starintensity
- case starintensity:
- {
- Menu::Title("Star Change Color");
- headers::thunderheaders();
- /*Menu::Float("m_azimuth_transition_red value", m_vars.m_azimuth_transition_red, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_green value", m_vars.m_azimuth_transition_green, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_blue value", m_vars.m_azimuth_transition_blue, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_intensity value", m_vars.m_azimuth_transition_intensity, 0.f, 255.0f, 1.f);*/
- //GTA5.exe + 2822628//MOON RED
- //GTA5.exe + 2822628//MOON RED
- // GTA5.exe + 282262C//MOON GREEN
- // GTA5.exe + 2822630//MOON BLUE
- // memset(reinterpret_cast<void*>(g_Settings.m_ModuleBaseAddress + 0xE436B1), 0x90, 4);
- Menu::MenuOption((char*)langage::Times.c_str(), LobbyTimes);
- Menu::Float("starintensity value", g_Settings.starintensity, 0.f, 5000.0f, 100.f);
- if (Menu::Option("Star"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- memset(reinterpret_cast<void*>(g_base_address + 0xE4EBF4), 0x90, 4);//0xE4380C
- *(float*)engine::scan_address(g_base_address + 0x2851EDC, {}) = g_Settings.starintensity;//0x282263C
- }
- if (Menu::Option("Reset Star"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\xF0", 4, reinterpret_cast<char*>(g_base_address + 0xE4EBF4));//E4380C//stars
- //std::copy_n("\x0F\x29\xA2\xE0", 4, reinterpret_cast<char*>(g_base_address + 0xE3FFB1));//sky
- }
- Menu::Float("starintensity Pattern value", g_Settings.star_intensity_p, 0.f, 5000.0f, 100.f);
- if (Menu::Option("Star Pattern"))
- {
- auto StarPTR = Memory::pattern("00 62 6F 61 74 73 65 61 72 63 68 6C 69 67 68 74 2E 6D 61 69 6E 4C 69 67 68 74 49 6E 66 6F 2E 6C 69 67 68 74 46 61 64 65 44 69 73 74 00 79 46 61 72 00 78 70 6F 6E 65 6E 74 00 6E 74 00");
- DWORD64* d_location = nullptr;
- d_location = (DWORD64*)StarPTR.count(1).get(0).get<DWORD64*>(0);
- std::string datar = std::string(std::to_string(reinterpret_cast<DWORD64>(d_location)));
- DWORD64 base_address = DWORD64(GetModuleHandleA(nullptr));
- Log::Msg((char*)datar.c_str());
- Log::Msg((char*)std::string(std::to_string(base_address)).c_str());
- std::stringstream myStrm(datar);
- DWORD64 x;
- myStrm >> x;
- std::string address2;
- stringstream addrs2;
- addrs2 << hex << "0x" << x;
- address2 = addrs2.str();
- Log::Msg((char*)address2.c_str());
- std::string address;
- stringstream addrs;
- addrs << hex << "0x" << base_address;
- address = addrs.str();
- Log::Msg((char*)address.c_str());
- std::stringstream myStrm1;
- myStrm1 << base_address;
- DWORD64 x1;
- myStrm1 >> x1;
- std::stringstream myStrm2(datar);
- DWORD64 x2;
- myStrm2 >> x2;
- DWORD64 in2 = ((DWORD64)x2 - (DWORD64)x1);
- Log::Msg((char*)std::string(std::to_string(in2)).c_str());
- std::string address3;
- stringstream addrs3;
- addrs3 << hex << "0x" << in2;
- address3 = addrs3.str();
- Log::Msg((char*)address3.c_str());
- Addresss::StarPointer = in2;
- Addresss::StarIntensity = (DWORD64)Addresss::StarPointer - (DWORD64)0x763;//0x2822D9F - 0x763 = 0x282263C
- Addresss::StarPointerpatch = (DWORD64)Addresss::StarPointer - (DWORD64)0x1A03A4B;//0x19F36CF//0x19F2793//0x2822D9F - 0xE436B8 = 0x19DF6E7
- memset(reinterpret_cast<void*>(base_address + Addresss::StarPointerpatch), 0x90, 4);
- uintptr_t intensity_Star = engine::scan_address(base_address + Addresss::StarIntensity, {});
- *(float*)intensity_Star = g_Settings.star_intensity_p;
- }
- if (Menu::Option("Reset Star"))
- {
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- std::copy_n("\x0F\x29\x49\xF0", 4, reinterpret_cast<char*>(g_base_address + Addresss::StarPointerpatch));//0xE436B8 //star
- //std::copy_n("\x0F\x29\xA2\xE0", 4, reinterpret_cast<char*>(g_base_address + 0xE3FFB1));//0xE3FFB1 //sky
- }
- headers::thunderbackgrounds();
- /*backgrounds::casesixteen();*/
- backgrounds::caseseven();
- }
- break;
- #pragma endregion
- #pragma region zenithtransition
- case zenithtransition:
- {
- Menu::Title("Change Color");
- headers::thunderheaders();
- Menu::Float("m_azimuth_transition_red value", m_vars.m_zenith_transition_red, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_green value", m_vars.m_zenith_transition_green, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_blue value", m_vars.m_zenith_transition_blue, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_intensity value", m_vars.m_zenith_transition_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("m_azimuth_transition"))
- {
- std::fill_n(g_GameVariables->m_zenith_transition_patch, 7, '\x90');
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- uintptr_t azi_trans_red = engine::scan_address(g_base_address + 0x26EB240, {});
- uintptr_t azi_trans_green = engine::scan_address(g_base_address + 0x26EB244, {});
- uintptr_t azi_trans_blue = engine::scan_address(g_base_address + 0x26EB248, {});
- *(float*)azi_trans_red = (m_vars.m_zenith_transition_red / 255.f) * m_vars.m_zenith_transition_intensity;
- *(float*)azi_trans_green = (m_vars.m_zenith_transition_green / 255.f) * m_vars.m_zenith_transition_intensity;
- *(float*)azi_trans_blue = (m_vars.m_zenith_transition_blue / 255.f) * m_vars.m_zenith_transition_intensity;
- }
- if (Menu::Option("Reset"))
- {
- std::copy_n("\x0F\x29\xA2\x80", 7, g_GameVariables->m_zenith_transition_patch);
- }
- if (Menu::Option("Reset 2"))
- {
- std::copy_n("\x0F\x29\xA2\xE0", 7, g_GameVariables->m_zenith_transition_patch);
- }
- headers::thunderbackgrounds();
- backgrounds::casesix();
- }
- break;
- #pragma endregion
- #pragma region azimuthtransition
- case azimuthtransition:
- {
- Menu::Title("Change Color");
- headers::thunderheaders();
- Menu::Float("m_azimuth_transition_red value", m_vars.m_azimuth_transition_red, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_green value", m_vars.m_azimuth_transition_green, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_blue value", m_vars.m_azimuth_transition_blue, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_transition_intensity value", m_vars.m_azimuth_transition_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("m_azimuth_transition"))
- {
- std::fill_n(g_GameVariables->m_azimuth_transition_patch, 7, '\x90');
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- uintptr_t azi_trans_red = engine::scan_address(g_base_address + 0x26EB1E0, {});
- uintptr_t azi_trans_green = engine::scan_address(g_base_address + 0x26EB1E4, {});
- uintptr_t azi_trans_blue = engine::scan_address(g_base_address + 0x26EB1E8, {});
- *(float*)azi_trans_red = (m_vars.m_azimuth_transition_red / 255.f) * m_vars.m_azimuth_transition_intensity;
- *(float*)azi_trans_green = (m_vars.m_azimuth_transition_green / 255.f) * m_vars.m_azimuth_transition_intensity;
- *(float*)azi_trans_blue = (m_vars.m_azimuth_transition_blue / 255.f) * m_vars.m_azimuth_transition_intensity;
- }
- if (Menu::Option("Reset"))
- {
- std::copy_n("\x0F\x29\xA2\x80", 7, g_GameVariables->m_azimuth_transition_patch);
- }
- headers::thunderbackgrounds();
- backgrounds::casesix();
- }
- break;
- #pragma endregion
- #pragma region zenith
- case zenith:
- {
- Menu::Title("Change Color");
- headers::thunderheaders();
- Menu::Float("zenith_red value", m_vars.m_zenith_red, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_green value", m_vars.m_zenith_green, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_blue value", m_vars.m_zenith_blue, 0.f, 255.0f, 1.f);
- Menu::Float("zenith_intensity value", m_vars.m_zenith_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("Clouds Color"))
- {
- std::fill_n(g_GameVariables->m_zenith_patch, 7, '\x90');
- uintptr_t base_address = uintptr_t(GetModuleHandleA(nullptr));
- uintptr_t zenith_red = engine::scan_address(base_address + 0x26BB960, {});
- uintptr_t zenith_green = engine::scan_address(base_address + 0x26BB964, {});
- uintptr_t zenith_blue = engine::scan_address(base_address + 0x26BB968, {});
- *(float*)zenith_red = (m_vars.m_zenith_red / 255.f) * m_vars.m_zenith_intensity;
- *(float*)zenith_green = (m_vars.m_zenith_green / 255.f) * m_vars.m_zenith_intensity;
- *(float*)zenith_blue = (m_vars.m_zenith_blue / 255.f) * m_vars.m_zenith_intensity;
- }
- headers::thunderbackgrounds();
- backgrounds::caseseven();
- }
- break;
- #pragma endregion
- #pragma region azimutheast
- case azimutheast:
- {
- Menu::Title("Change Color");
- headers::thunderheaders();
- Menu::Float("m_azimuth_east_red value", m_vars.m_azimuth_east_red, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_east_green value", m_vars.m_azimuth_east_green, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_east_blue value", m_vars.m_azimuth_east_blue, 0.f, 255.0f, 1.f);
- Menu::Float("m_azimuth_east_intensity value", m_vars.m_azimuth_east_intensity, 0.f, 255.0f, 1.f);
- if (Menu::Option("m_azimuth_east "))
- {
- std::fill_n(g_GameVariables->m_east_azimuth_patch, 4, '\x90');
- uintptr_t g_base_address = uintptr_t(GetModuleHandleA(nullptr));
- uintptr_t east_red = engine::scan_address(g_base_address + 0x26EB180, {});
- uintptr_t east_green = engine::scan_address(g_base_address + 0x26EB184, {});
- uintptr_t east_blue = engine::scan_address(g_base_address + 0x26EB188, {});
- *(float*)east_red = (m_vars.m_azimuth_east_red / 255.f) * m_vars.m_azimuth_east_intensity;
- *(float*)east_green = (m_vars.m_azimuth_east_green / 255.f) * m_vars.m_azimuth_east_intensity;
- *(float*)east_blue = (m_vars.m_azimuth_east_blue / 255.f) * m_vars.m_azimuth_east_intensity;
- }
- if (Menu::Option("m_azimuth_east Pattern"))
- {
- std::fill_n(g_GameVariables->m_east_azimuth_patch, 4, '\x90');
- *(float*)g_GameVariables->m_azimuth_est_red = (m_vars.m_azimuth_east_red / 255.f) * m_vars.m_azimuth_east_intensity;
- *(float*)g_GameVariables->m_azimuth_est_green = (m_vars.m_azimuth_east_green / 255.f) * m_vars.m_azimuth_east_intensity;
- *(float*)g_GameVariables->m_azimuth_est_blue = (m_vars.m_azimuth_east_blue / 255.f) * m_vars.m_azimuth_east_intensity;
- }
- if (Menu::Option("Reset "))
- {
- std::copy_n("\x0F\x29\x62\x20", 4, g_GameVariables->m_east_azimuth_patch);
- }
- headers::thunderbackgrounds();
- backgrounds::caseseven();
- }
- break;
- #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement