Can someone make a GTA5 online casino script?

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

Can someone make a GTA5 online casino script?

Postby jdigi » Thu Aug 01, 2019 8:20 pm

There is a glitch to bet on horses but requires to hold button every time. I saw the code below but doesn't work right (doesn't go to right enough to make glitch work. There are 2 ways to do it now on youtube. Can someone tell me what I need to edit on this script to make it go farther right? Big thanks to SAINT

Code: Select all
/*
        ****XBOX ONE SCRIPT****
 1st: Go to the Casino racing tables, sit down and press A to place a bet.
 2nd: Move your cursor under the RULES button.
 3rd: Press Y to start the loop and GET PAID.
 
    You can earn about 1.4 million an hour.
*/

int race_combo = 10000;
int onoff;
 
main {
    if (event_press(XB1_Y)){
        onoff = !onoff;
        race_combo = 10000;
    }
  if(onoff){
    if(race_combo){
        combo_run(race);
    }
}
}
 
combo race {
    set_val(XB1_RIGHT, 100);
    wait(120);
    set_val(XB1_RIGHT, 0);
    wait(730);
    set_val(XB1_A, 100);
    wait(120);
    set_val(XB1_A, 0);
    wait(720);
    set_val(XB1_LEFT, 100);
    wait(130);
    set_val(XB1_LEFT, 0);
    wait(510);
    set_val(XB1_UP, 100);
    wait(110);
    set_val(XB1_UP, 0);
    wait(320);
    set_val(XB1_UP, 100);
    wait(120);
    set_val(XB1_UP, 0);
    wait(250);
    set_val(XB1_UP, 100);
    wait(140);
    set_val(XB1_UP, 0);
    wait(160);
    set_val(XB1_UP, 100);
    wait(140);
    set_val(XB1_UP, 0);
    wait(220);
    set_val(XB1_UP, 100);
    wait(140);
    set_val(XB1_UP, 0);
    wait(360);
    set_val(XB1_A, 100);
    wait(120);
    set_val(XB1_A, 0);
    wait(360);
    set_val(XB1_RIGHT, 100);
    wait(120);
    set_val(XB1_RIGHT, 0);
    wait(730);
    set_val(XB1_DOWN, 100);
    wait(120);
    set_val(XB1_DOWN, 0);
    wait(1110);
    set_val(XB1_LX, 32);
    wait(860);
    set_val(XB1_LX, 0);
    wait(270);
    set_val(XB1_LX, 30);
    wait(290);
    set_val(XB1_LX, 0);
    wait(360);
    set_val(XB1_UP, 100);
    wait(20);
    set_val(XB1_UP, 100);
    set_val(XB1_A, 100);
    wait(120);
    set_val(XB1_UP, 100);
    set_val(XB1_A, 0);
    wait(10);
    set_val(XB1_UP, 0);
    wait(40);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(4000);
    set_val(XB1_A, 100);
    wait(2000);
    set_val(XB1_DOWN, 100);
    wait(120);
    set_val(XB1_DOWN, 0);
    wait(790);
    set_val(XB1_A, 100);
    wait(150);
    set_val(XB1_A, 0);
    }
User avatar
jdigi
Private
Private
 
Posts: 1
Joined: Wed Feb 11, 2015 6:49 pm

Re: Can someone make a GTA5 online casino script?

Postby Mad » Thu Aug 01, 2019 9:44 pm

Try increase these wait values

Code: Select all
    set_val(XB1_LX, 32);
    wait(860); // Try increase
    set_val(XB1_LX, 0);
    wait(270);
    set_val(XB1_LX, 30);
    wait(290)// Try increase
    set_val(XB1_LX, 0);
    wait(360);
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Can someone make a GTA5 online casino script?

Postby GODDARD » Thu Aug 01, 2019 11:23 pm

Hey Jdigi,

The one you referenced didn't seem to work for me either. I uploaded my own variation of the script by Saint to get it to work. Try it out as I've been running it for hours on end now.

https://www.consoletuner.com/gpclib/?s=1577
User avatar
GODDARD
Private
Private
 
Posts: 1
Joined: Thu Aug 01, 2019 10:40 pm

Re: Can someone make a GTA5 online casino script?

Postby Mad » Thu Aug 01, 2019 11:48 pm

:smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Can someone make a GTA5 online casino script?

Postby Aliciana » Mon Oct 03, 2022 9:47 am

I pay a lot of money for scripts and here you do it for free, you guys are cool
User avatar
Aliciana
Private
Private
 
Posts: 1
Joined: Wed Sep 28, 2022 7:28 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 84 guests