GTA V Racing Script

Allows easy brake boosting and short shifting.
Version1.00
AuthorDarkKiritoV
Publish DateSat, 5 Nov 2022 - 22:37
Last UpdateSat, 5 Nov 2022 - 22:37
Downloads96
RATE


0

0

Code: Select all
/*
Script Made By DarkKiritoV
gta5_race.gpc
 
Intructions:
 
LS to enable the mod.
UP on Dpad to brake boost.
Down on Dpad to short shift.
 
Extra info:
if you do not know how to brake boost or short shift then this script is not for you.
When the mod is activated it hijacks your DPad UP and Down so the console wont see them and annoy you.
You do not and can't hold DPad up/down or LS the script does that for you and prevents you from doing that.
 
IMPORTANT!!:
MAKE SURE TO DISABLE THE MOD BEFORE YOU ARE DONE USING OR YOUR DPAD UP AND DOWN WILL BE STUCK ON NOT WORKING!!
*/

int mode = 0;
int currentlyheld;
main {
    if(get_val(XB1_LS)&& currentlyheld == FALSE) {
        mode++;
        if (mode >= 2) mode = 0;
        if (mode == 1) {
            set_rumble(RUMBLE_B, 100);
            combo_run(Turbo_Wait);
        }
    }
    if (mode == 1)
    {
        //21, 22, 23, and 28 are unused by the xbox but are reconised by the titan one.
        swap(XB1_UP, 21);
        swap(XB1_DOWN, 22);
        //swap(XB1_LEFT, 23);
        //swap(XB1_RIGHT, 28);
    }
    if(get_val(21)&& currentlyheld == FALSE) {
        combo_run(Brake_Boost);
    }
    if(get_val(22)&& currentlyheld == FALSE) {
        combo_run(Short_Shift);
    }
    set_val(TRACE_1, mode);
    set_val(TRACE_2, currentlyheld);
    if (get_val(XB1_LS) || get_val(21) || get_val(22) || get_val(23) || get_val(28)) currentlyheld = TRUE;
    if (!get_val(XB1_LS) && !get_val(21) && !get_val(22) && !get_val(23) && !get_val(28)) currentlyheld = FALSE;
}
 
combo Turbo_Wait {
    wait(300);
    set_rumble(RUMBLE_B, 0);
}
 
combo Brake_Boost {
    set_val(XB1_LT, 100);
    wait(300);
    set_val(XB1_LT, 0);
}
 
combo Short_Shift {
    set_val(XB1_RT, 30);
    wait(100);
    set_val(XB1_LT, 0);
}