GTA V Automatic playlist script

GPC1 script programming for Titan One. Code examples, questions, requests.

GTA V Automatic playlist script

Postby steve1040 » Sun Aug 23, 2020 6:09 pm

Hello All,
I just got a Titan one. I'd like to script a script that continuously plays a massive AFK playlist.

The playlist has about 20 - 30 clones of the same survivor job.

The job takes 20 minutes to complete.

I'm needing a script that waits for 25 minutes then
presses
D-pad up
A button
D-pad up
A button
A button

The above moves to the next job in the playlist.

I'll have a rubber band on the right trigger that fires the atomizer.

Question: Is it correct that the limit for wait-time is 4000ms?

Anyone have a script I can mimic or modify?

Thanks
Steve
User avatar
steve1040
Private
Private
 
Posts: 1
Joined: Sat Aug 22, 2020 12:52 pm

Re: GTA V Automatic playlist script

Postby J2Kbr » Mon Aug 31, 2020 8:17 pm

Welcome to our forums, this script will do what you described.
Code: Select all
int msecs, secs, mins;
 
main {
    msecs = msecs + get_rtime();
    if(msecs >= 1000) {
        msecs = msecs - 1000;
        secs = secs + 1;
        if(secs >= 60) {
            secs = secs - 60;
            mins = mins + 1;
            if(mins >= 25) {
                combo_run(Sequence);
            }
        }
    }
}
 
combo Sequence {
    // D-pad up
    set_val(XB1_UP, 100);
    wait(100); wait(100);
    // A button
    set_val(XB1_A, 100);
    wait(100); wait(100);
    // D-pad up
    set_val(XB1_UP, 100);
    wait(100); wait(100);
    // A button
    set_val(XB1_A, 100);
    wait(100); wait(100);
    // A button
    set_val(XB1_A, 100);
    wait(100); wait(100);
    msecs = 0;
    secs = 0;
    mins = 0;
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 90 guests