Help me ROcket league

Can someone make so when i hold down square then hold down r1 left stick to left and hold x until i stop holding square would be very helpful it is for rocket league its called Stalling
High-performance gaming devices.
https://www.consoletuner.com/forum/
https://www.consoletuner.com/forum/viewtopic.php?f=9&t=12490
int toggle;
main {
// when i hold down square then hold down r1
if(get_val(PS4_SQUARE) && event_press(PS4_R1)) {
toggle = TRUE;
} else if(event_release(PS4_SQUARE)) {
// until i stop holding square
toggle = FALSE;
}
if(toggle) {
// left stick to left and hold x
set_val(PS4_LY, 0);
set_val(PS4_LX, -100);
set_val(PS4_CROSS, 100);
}
}