Пример #1
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);
        }
Пример #2
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);
                }
            }
        }
Пример #3
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";
            }
        }
Пример #4
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();
        }
Пример #5
0
 private void BUTTON_ShowPos_Click(object sender, EventArgs e)
 {
     LABLE_ShowPos.Text = (int)GTA5Process.GetPlayerPosition()[0] + " " + (int)GTA5Process.GetPlayerPosition()[1] + " " + (int)GTA5Process.GetPlayerPosition()[2];
 }