Code:
if (CONTROLS::IS_CONTROL_PRESSED(0, Custom1) && CONTROLS::IS_CONTROL_PRESSED(0, Custom2))
bool menubuttons = false;
bool menubuttons1 = false;
bool menubuttons2 = true;
bool menubuttons3 = false;
bool menubuttons4 = false;
int Custom1 = Button_RB;
int Custom2 = Dpad_Left;
if (menubuttons)
{
Custom1 = Button_RB;
Custom2 = Button_X;
}
if (menubuttons1)
{
Custom1 = Button_RB;
Custom2 = Button_A;
}
if (menubuttons2)
{
Custom1 = Button_RB;
Custom2 = Dpad_Right;
}
if (menubuttons3)
{
Custom1 = Dpad_Right;
Custom2 = Button_X;
}
if (menubuttons4)
{
Custom1 = Dpad_Left;
Custom2 = Button_X;
}
case 1:
menubuttons = !menubuttons;
menubuttons3 = false;
menubuttons2 = false;
menubuttons1 = false;
menubuttons4 = false;
drawNotification("Chaged to: RB + X");
break;
case 2:
menubuttons1 = !menubuttons1;
menubuttonst3 = false;
menubuttons2 = false;
menubuttons = false;
menubuttons4 = false;
drawNotification("Chaged to: RB + A");
break;
case 3:
menubuttons2 = !menubuttons2;
menubuttons = false;
menubuttons3 = false;
menubuttons1 = false;
menubuttons4 = false;
drawNotification("Chaged to: RB + Right");
break;
case 4:
menubuttons3 = !menubuttons3;
menubuttons = false;
menubuttons2 = false;
menubuttons1 = false;
menubuttons4 = false;
drawNotification("Chaged to: Right + X");
break;
case 5:
menubuttons4 = !menubuttons4;
menubuttons3 = false;
menubuttons2 = false;
menubuttons1 = false;
menubuttons = false;
drawNotification("Chaged to: Left + x");
break;