Пример #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);*/
        }