Пример #1
0
        private void BUTTON_Godmode_Click(object sender, EventArgs e)
        {
            if (GTA5Process.CheatList["Godmode"])
            {
                BUTTON_Godmode.BackgroundImage   = Properties.Resources.switch_off;
                GTA5Process.CheatList["Godmode"] = false;

                GTA5Process.Set_Godmode(false);

                return;
            }

            GTA5Process.CheatList["Godmode"] = true;
            BUTTON_Godmode.BackgroundImage   = Properties.Resources.switch_on;

            /*if (GTA5Process.Get_Godmode()) {
             *  BUTTON_Godmode.BackgroundImage = Properties.Resources.switch_off;
             *  GTA5Process.Set_Godmode(false);
             *
             *  return;
             * }
             *
             * BUTTON_Godmode.BackgroundImage = Properties.Resources.switch_on;
             * GTA5Process.Set_Godmode(true);*/
        }
Пример #2
0
        private void BUTTON_TP_to_LastShootPos_Click(object sender, EventArgs e)
        {
            float[] pos = GTA5Process.GetLastShootPos();
            pos[2] += 1f;

            GTA5Process.TP_to_with_car(pos);
        }
Пример #3
0
        private void BUTTON_Playerlist_refresh_Click(object sender, EventArgs e)
        {
            listBox_PlayersList.Items.Clear();
            foreach (string pn in GTA5Process.GetPlayers().Keys)
            {
                listBox_PlayersList.Items.Add(pn);
            }

            GTA5Process.DropPlayerName = null;
        }
Пример #4
0
        private void BUTTON_TP_TO_Click(object sender, EventArgs e)
        {
            if (TP_ListBox.SelectedItem == null)
            {
                MessageBox.Show("Please selected point!");
                return;
            }

            GTA5Process.TP_to_with_car(TXTConvert.GetPosition(TP_ListBox.SelectedItem.ToString()));
        }
Пример #5
0
        private void BUTTON_SetBulletType_Click(object sender, EventArgs e)
        {
            if (BulletType_ListBox.SelectedItem == null)
            {
                return;
            }

            GTA5Process.Bullet_ImpactType = BulletType_ListBox.SelectedItem.ToString();
            GTA5Process.Set_Bullet_Impact();
            GTA5Process.Timer_PlayerFlag.Stop();
        }
Пример #6
0
        private void BUTTON_Ragdoll_Click(object sender, EventArgs e)
        {
            if (GTA5Process.Get_Ragdoll())
            {
                BUTTON_Ragdoll.BackgroundImage = Properties.Resources.switch_off;
                GTA5Process.Set_Ragdoll(false);

                return;
            }

            BUTTON_Ragdoll.BackgroundImage = Properties.Resources.switch_on;
            GTA5Process.Set_Ragdoll(true);
        }
Пример #7
0
        private void BUTTON_Playerlist_TPto_Click(object sender, EventArgs e)
        {
            if (listBox_PlayersList.SelectedItem == null)
            {
                MessageBox.Show("Please selected Player!");
                return;
            }

            float[] pos = GTA5Process.GetPlayerPos(listBox_PlayersList.SelectedItem.ToString());
            pos[2] += 2f;

            GTA5Process.TP_to_with_car(pos);
        }
Пример #8
0
        private void Main_Menu_Load(object sender, EventArgs e)
        {
            if (!GTA5Process.IsGameRunning())
            {
                MessageBox.Show("Cannot found 'GTA5.exe' process, Please exit program");
            }

            GTA5Process.initHack();

            //TODO

            BUTTON_Refresh_Click(sender, e);
            BUTTON_TP_Reload_Click(sender, e);
        }
Пример #9
0
        private void BUTTON_OUT_RADAR_Click(object sender, EventArgs e)
        {
            if (GTA5Process.CheatList["OutRadar"])
            {
                BUTTON_OUT_RADAR.BackgroundImage  = Properties.Resources.switch_off;
                GTA5Process.CheatList["OutRadar"] = false;

                GTA5Process.Out_of_Radar(false);

                return;
            }

            GTA5Process.CheatList["OutRadar"] = true;
            BUTTON_OUT_RADAR.BackgroundImage  = Properties.Resources.switch_on;
        }
Пример #10
0
        private void BUTTON_Vehicle_Godmode_Click(object sender, EventArgs e)
        {
            if (GTA5Process.CheatList["VehGodmode"])
            {
                BUTTON_Vehicle_Godmode.BackgroundImage = Properties.Resources.switch_off;
                GTA5Process.CheatList["VehGodmode"]    = false;

                GTA5Process.Set_Vehicle_Godmode(false);

                return;
            }

            GTA5Process.CheatList["VehGodmode"]    = true;
            BUTTON_Vehicle_Godmode.BackgroundImage = Properties.Resources.switch_on;
        }
Пример #11
0
        private void BUTTON_Refresh_Click(object sender, EventArgs e)
        {
            BUTTON_Godmode.BackgroundImage         = GTA5Process.Get_Godmode() ? Properties.Resources.switch_on : Properties.Resources.switch_off;
            BUTTON_Vehicle_Godmode.BackgroundImage = GTA5Process.Get_Vehicle_Godmode() ? Properties.Resources.switch_on : Properties.Resources.switch_off;
            BUTTON_infinite_ammo.BackgroundImage   = GTA5Process.Get_Infinite_Ammo() ? Properties.Resources.switch_on : Properties.Resources.switch_off;
            BUTTON_Ragdoll.BackgroundImage         = GTA5Process.Get_Ragdoll() ? Properties.Resources.switch_on : Properties.Resources.switch_off;
            BUTTON_weather_snow.BackgroundImage    = GTA5Process.Weather_GetSnow() ? Properties.Resources.switch_on : Properties.Resources.switch_off;

            //////////////////////
            BulletType_ListBox.Items.Clear();
            foreach (string typeName in GameAddress.Button_Impact.Keys)
            {
                BulletType_ListBox.Items.Add(typeName);
            }
        }
Пример #12
0
        private void BUTTON_weather_snow_Click(object sender, EventArgs e)
        {
            if (GTA5Process.CheatList["Weather_Snow"])
            {
                BUTTON_weather_snow.BackgroundImage   = Properties.Resources.switch_off;
                GTA5Process.CheatList["Weather_Snow"] = false;

                GTA5Process.Weather_SetSnow(false);

                return;
            }

            GTA5Process.CheatList["Weather_Snow"] = true;
            BUTTON_weather_snow.BackgroundImage   = Properties.Resources.switch_on;
        }
Пример #13
0
        private void BUTTON_Player_Invisibility_Click(object sender, EventArgs e)
        {
            if (GTA5Process.CheatList["Invisibility"])
            {
                BUTTON_Player_Invisibility.BackgroundImage = Properties.Resources.switch_off;
                GTA5Process.CheatList["Invisibility"]      = false;

                GTA5Process.Set_Player_Invisibility(false);

                return;
            }

            GTA5Process.CheatList["Invisibility"]      = true;
            BUTTON_Player_Invisibility.BackgroundImage = Properties.Resources.switch_on;
        }
Пример #14
0
        private void BUTTON_infinite_ammo_Click(object sender, EventArgs e)
        {
            if (GTA5Process.CheatList["InfiniteAmmo"])
            {
                BUTTON_infinite_ammo.BackgroundImage  = Properties.Resources.switch_off;
                GTA5Process.CheatList["InfiniteAmmo"] = false;

                GTA5Process.Set_Infinite_Ammo(false);

                return;
            }

            GTA5Process.CheatList["InfiniteAmmo"] = true;
            BUTTON_infinite_ammo.BackgroundImage  = Properties.Resources.switch_on;
        }
Пример #15
0
        private void BUTTON_Player_Name_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(TEXTBOX_Player_Name.Text))
            {
                MessageBox.Show("Position name illegal!");
                return;
            }

            if (TEXTBOX_Player_Name.Text.Length > 20)
            {
                MessageBox.Show("Name illegal! must be <= 20");
                return;
            }

            GTA5Process.Set_MyName(TEXTBOX_Player_Name.Text);
        }
Пример #16
0
        private void BUTTON_TP_WP_2_Click(object sender, EventArgs e)
        {
            float[] wp      = GTA5Process.GetWayPoint();
            long    pointer = Memory.GetPointerAddress(GameAddress.BaseAddress + GameAddress.BlipPTR);

            for (int i = 0; i < 1000; i++)
            {
                long address = Memory.ReadPointer(pointer + (i * 8));

                if (address > 0 && Memory.ReadInteger(address + 0x40, 4) == 8 && Memory.ReadInteger(address + 0x48, 4) == 84)
                {
                    wp[2] = -210;

                    GTA5Process.TP_to_with_car(wp);
                }
            }
        }
Пример #17
0
        private void BUTTON_SavePos_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(TEXTBOX_SavePos.Text))
            {
                MessageBox.Show("Position name illegal!");
                return;
            }

            if (TXTConvert.Exists(TEXTBOX_SavePos.Text))
            {
                MessageBox.Show("Position name has exists!");
                return;
            }

            TXTConvert.Add(TEXTBOX_SavePos.Text, GTA5Process.GetPlayerPosition());
            BUTTON_TP_Reload_Click(sender, e);
        }
Пример #18
0
        private void BUTTON_DropMoney_Click(object sender, EventArgs e)
        {
            if (listBox_PlayersList.SelectedItem == null)
            {
                MessageBox.Show("Please selected Player!");
                return;
            }

            long pedcount = Memory.GetPointerAddress(GameAddress.pedListPTR, new int[] { 0x110 });
            int  maxPed   = Memory.ReadInteger(pedcount, 4);
            long v26      = Memory.GetPointerAddress(GameAddress.pedListPTR, new int[] { 0x100 });

            float[] pos   = GTA5Process.GetPlayerPos(listBox_PlayersList.SelectedItem.ToString());
            float[] mypos = GTA5Process.GetPlayerPosition();

            for (int i = 0; i < maxPed; i++)
            {
                long npc = Memory.GetPointerAddress(v26, new int[] { i * 0x10 });
                long v24 = Memory.GetPointerAddress(npc, new int[] { 0x30 });
                long v23 = Memory.GetPointerAddress(npc, new int[] { 0x20 });
                long v5  = Memory.GetPointerAddress(v23, new int[] { 0x270 });

                if (Utils.Distance(
                        mypos,
                        new float[] {
                    Memory.ReadFloat(Memory.GetPointerAddress(npc, new int[] { 0x90 })),
                    Memory.ReadFloat(Memory.GetPointerAddress(npc, new int[] { 0x94 })),
                    Memory.ReadFloat(Memory.GetPointerAddress(npc, new int[] { 0x98 }))
                }
                        ) > 3)
                {
                    float health = Memory.ReadFloat(Memory.GetPointerAddress(npc, new int[] { 0x280 }));
                    if (health > 200f || health == 0f)
                    {
                        continue;
                    }

                    Memory.WriteInteger(Memory.GetPointerAddress(npc, new int[] { 0x15DC }), (int)numericUpDown1_dropmoney.Value, 4);
                    Memory.WriteFloat(Memory.GetPointerAddress(npc, new int[] { 0x90 }), pos[0]);
                    Memory.WriteFloat(Memory.GetPointerAddress(npc, new int[] { 0x94 }), pos[1]);
                    Memory.WriteFloat(Memory.GetPointerAddress(npc, new int[] { 0x98 }), pos[2] + 2);
                    Memory.WriteFloat(Memory.GetPointerAddress(npc, new int[] { 0x280 }), 0);
                }
            }
        }
Пример #19
0
        private void listBox_PlayersList_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                LABLE_Show_IPAddress.Text =
                    "IPAddress - " +
                    GTA5Process.GetPlayerIP(listBox_PlayersList.SelectedItem.ToString()).ToString() +
                    ":" +
                    GTA5Process.GetPlayerPort(listBox_PlayersList.SelectedItem.ToString()).ToString();

                LABLE_Show_Distance.Text =
                    "Distance - " +
                    Math.Round(Utils.Distance(GTA5Process.GetPlayerPosition(), GTA5Process.GetPlayerPos(listBox_PlayersList.SelectedItem.ToString()))) +
                    "M";

                GTA5Process.DropPlayerName = listBox_PlayersList.SelectedItem;
            }
            catch (Exception ex) {
                GTA5Process.DropPlayerName = null;
                LABLE_Show_Distance.Text   = LABLE_Show_IPAddress.Text = "NEED RELOAD";
            }
        }
Пример #20
0
        private void BUTTON_TP_WP_Click(object sender, EventArgs e)
        {
            float[] a = GTA5Process.GetWayPoint();
            a[2] = float.Parse(numericUpDown1_TP_WP.Value.ToString());

            GTA5Process.TP_to_with_car(a);

            /*for (var i = 0; i < 1000; i++)
             * {
             *  long pointer = Memory.GetPointerAddress(GameAddress.BaseAddress + GameAddress.BlipPTR);
             *  long address = Memory.ReadPointer(pointer + (i * 8));
             *  if (address > 0)
             *  {
             *      if (Memory.ReadInteger(address + 0x40, 4) == 8 && Memory.ReadInteger(address + 0x48, 4) == 84)
             *      {
             *          float waypointposX = Memory.ReadFloat(address + 0x10);
             *          float waypointposY = Memory.ReadFloat(address + 0x14);
             *          long worldptr = Memory.GetPointerAddress(GameAddress.BaseAddress + GameAddress.WorldPTR);
             *          long player = Memory.ReadPointer(Memory.ReadPointer(worldptr) + 8);
             *          byte[] vehicle_or_not = Memory.ReadBytes(player + 0x146B, 1);
             *          if (vehicle_or_not[0] == 0)
             *          {
             *              player = Memory.ReadPointer(player + 0xD28);
             *          }
             *          long vehicle = Memory.ReadPointer(player + 0x30);
             *          MessageBox.Show(waypointposX+"");
             *
             *          Memory.WriteFloat(vehicle + 0x50, waypointposX);
             *          Memory.WriteFloat(vehicle + 0x54, waypointposY);
             *          Memory.WriteFloat(vehicle + 0x58, -210);
             *          Memory.WriteFloat(player + 0x90, waypointposX);
             *          Memory.WriteFloat(player + 0x94, waypointposY);
             *          Memory.WriteFloat(player + 0x98, -210);
             *      }
             *  }
             * }*/
        }
Пример #21
0
        private void ESP_SCREEN_Paint(object sender, PaintEventArgs e)
        {
            if (!GTA5Process.CheatList["ESP"])
            {
                return;
            }

            Graphics gg = e.Graphics;

            SortedDictionary <string, long> players = GTA5Process.GetPlayers();

            Bitmap bmp = new Bitmap(1920, 1080);

            Pen      p = new Pen(Color.Green, 5);
            Graphics g = Graphics.FromImage(bmp);

            foreach (string pname in players.Keys)
            {
                float[] otherplayerpos = GTA5Process.GetPlayerPos(pname);
                float   distance       = Utils.Distance(GTA5Process.GetPlayerPosition(), otherplayerpos);

                if (distance > 2f && distance < 1000f)
                {
                    GameESP.GAME_Vector2 screen_pos = GameESP.WORLD_TO_SCREEN(new GameESP.GAME_Vector3(otherplayerpos[0], otherplayerpos[1], otherplayerpos[2] + 1));
                    g.DrawLine(p, 960, 0, screen_pos.X, screen_pos.Y);
                    //g.DrawRectangle(p, screen_pos.X - 5, screen_pos.Y, 10, 20);
                    g.DrawString(Math.Round(distance) + "m   " + pname, new Font("Arial", 20), new SolidBrush(Color.Red), screen_pos.X - 60, screen_pos.Y + 30);
                }
            }

            gg.DrawImage(bmp, 0, 0);

            p.Dispose();
            g.Dispose();
            bmp.Dispose();
        }
Пример #22
0
 private void BUTTON_Show_Health_Click(object sender, EventArgs e)
 {
     LABLE_Show_Health.Text = GTA5Process.Get_Vehicle_Health()[0] + "/" + GTA5Process.Get_Vehicle_Health()[1] + "/" + GTA5Process.Get_Vehicle_Health()[2];
 }
Пример #23
0
 private void BUTTON_bullte_damage_Click(object sender, EventArgs e)
 {
     GTA5Process.Set_Bullet_Damage(float.Parse(numericUpDown_bullte_damage.Value.ToString()));
 }
Пример #24
0
 private void BUTTON_Vehicle_SetHealth_Click(object sender, EventArgs e)
 {
     GTA5Process.Set_Vehicle_Health(float.Parse(numericUpDown_Vehicle_SetHelath.Value.ToString()));
 }
Пример #25
0
 private void BUTTON_Vehicle_Gravity_Click(object sender, EventArgs e)
 {
     GTA5Process.Set_Vehicle_Gravity(float.Parse(numericUpDown_Vehicle_Gravity.Value.ToString()));
 }
Пример #26
0
 private void BUTTON_Show_Gravity_Click(object sender, EventArgs e)
 {
     LABLE_VehicleGravity.Text = GTA5Process.Get_Vehicle_Gravity() + "";
 }
Пример #27
0
 private void BUTTON_OPMK2_Missles_Click(object sender, EventArgs e)
 {
     GTA5Process.Set_OPMK2_Missles(int.Parse(numericUpDown_OPMK2_Missles.Value.ToString()));
 }
Пример #28
0
 private void BUTTON_WANTED_LEVEL_Click(object sender, EventArgs e)
 {
     GTA5Process.Set_Wantedlevel((int)numericUpDown_WANTED_LEVEL.Value);
 }
Пример #29
0
 private void Button2_Click(object sender, EventArgs e)
 {
     GTA5Process.SetSwimSpeed(float.Parse(numericUpDown2.Value.ToString()));
 }
Пример #30
0
 private void BUTTON_Show_Damage_Click(object sender, EventArgs e)
 {
     label3_showdamage.Text = GTA5Process.Get_Bullet_Damage() + "";
 }