Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

Questions About Random_Int Parts


sirusxxxx
 Share

Recommended Posts

Hello,

I was just wondering when using this randomizing wheels codes below can I write a code to exclude randomizing a specific wheel number?

 

Or do I have to write this code for each sequence of wheels I want to include to be randomized?

 

 

 

0209: [email protected] = random_int  1073  1098if [email protected] > 1085 1096 > [email protected]   jf @TuneP_3 [email protected] = 1025

 

 

 

 

 

As well when randomizing paint jobs can I randomize which primiary and secondary colors are used? And if so anyone know the code lines to do that>

 

 

0209: [email protected] = random_int  0  206ED: set_car [email protected] paintjob [email protected]

 

 

 

Any insight or help is greatly appeciated thanks.

Link to comment
Share on other sites

 

Hello,

I was just wondering when using this randomizing wheels codes below can I write a code to exclude randomizing a specific wheel number?

 

Or do I have to write this code for each sequence of wheels I want to include to be randomized?

 

 

 

0209: [email protected] = random_int  1073  1098if [email protected] > 1085 1096 > [email protected]   jf @TuneP_3 [email protected] = 1025

 

 

 

 

 

As well when randomizing paint jobs can I randomize which primiary and secondary colors are used? And if so anyone know the code lines to do that>

 

 

0209: [email protected] = random_int  0  206ED: set_car [email protected] paintjob [email protected]

 

 

 

Any insight or help is greatly appeciated thanks.

At first: post a list of existing wheel ID numbers

and a list of working color numbers

 

then explain

if you either want select some IDs to have a groupe for randomizing

or if you wanna breake the randomizing to choose a specific

or other method, some IDs should be choosen more times then others

 

which number should specific?

Link to comment
Share on other sites

In the wheel randomizing code I want to remove wheel ID 1025 from the check engine

- Can I use wheel ID 1082 in the check engine?

- Do I have to remove wheel ID 1082 from randomizing to avoid conflicts or crashes?

- Or will it be easier to just change the wheel textures in gta.img from 1025 to 1082?

 

 

0209: [email protected] = random_int  1073  1098if [email protected] > 1085 1096 > [email protected]   [email protected] > 1082 > [email protected]   jf @TuneP_3 [email protected] = 1082

 

 

 

 

I want the cars to spawn all the colors randomly that will not cause problems to the game, but I dont think my code is right:

 

 

0209: [email protected] = random_int  0 125if [email protected] > 1 10 > [email protected]   jf @TuneP_3 [email protected] = 00229: set_car [email protected] primary_color_to [email protected]

 

Link to comment
Share on other sites

 

In the wheel randomizing code I want to remove wheel ID 1025 from the check engine

the ID numbers for randomizing

1073, wheel_sr6, vehicle, 100, 2097152

1074, wheel_sr3, vehicle, 100, 2097152

1075, wheel_sr2, vehicle, 100, 2097152

1076, wheel_lr4, vehicle, 100, 2097152

1077, wheel_lr1, vehicle, 100, 2097152

1078, wheel_lr3, vehicle, 100, 2097152

1079, wheel_sr1, vehicle, 100, 2097152

1080, wheel_sr5, vehicle, 100, 2097152

1081, wheel_sr4, vehicle, 100, 2097152

1082, wheel_gn1, vehicle, 100, 2097152

1083, wheel_lr2, vehicle, 100, 2097152

1084, wheel_lr5, vehicle, 100, 2097152

1085, wheel_gn2, vehicle, 100, 2097152

//-- no wheel--1086, stereo, vehicle, 100, 0

//-- no wheel--1087, hydralics, vehicle, 100, 0

//-- no wheel--1088, rf_a_u, uranus, 100, 2098180

//-- no wheel--1089, exh_c_u, uranus, 100, 2097152

//-- no wheel--1090, wg_l_a_u, uranus, 100, 2097152

//-- no wheel--1091, rf_c_u, uranus, 100, 2097156

//-- no wheel--1092, exh_a_u, uranus, 100, 2097152

//-- no wheel--1093, wg_l_c_u, uranus, 100, 2097152

//-- no wheel--1094, wg_r_a_u, uranus, 100, 2097152

//-- no wheel--1095, wg_r_c_u, uranus, 100, 2097152

1096, wheel_gn3, vehicle, 100, 2097152

1097, wheel_gn4, vehicle, 100, 2097152

1098, wheel_gn5, vehicle, 100, 2097152

one posible method:

 

0209: [email protected] = random_int  1073  1098if  and0019:   [email protected] >  1085  // integer values001B:    1096 > [email protected]  // integer values004D: jump_if_false @Wheels_160209: [email protected] = random_int  1073  1085

 

 

- Can I use wheel ID 1082 in the check engine?

you mean this method

 

0209: [email protected] = random_int  1073  1098if  and0019:   [email protected] >  1085  // integer values001B:    1096 > [email protected]  // integer values004D: jump_if_false @[email protected] = 1082

 

yes, why not

 

- Do I have to remove wheel ID 1082 from randomizing to avoid conflicts or crashes?

- Or will it be easier to just change the wheel textures in gta.img from 1025 to 1082?

whats the problem with 1082?

 

 

0209: [email protected] = random_int  1073  1098if [email protected] > 1085 1096 > [email protected]   [email protected] > 1082 > [email protected]   jf @TuneP_3 [email protected] = 1082

 

[email protected] > 1082 > [email protected] is not possible

 

 

 

I want the cars to spawn all the colors randomly that will not cause problems to the game, but I dont think my code is right:

And I don't know if every number between 0 and 125 will be a valid color number

Therefor I said: post a list of working color numbers

 

 

0209: [email protected] = random_int  0 125if [email protected] > 1 10 > [email protected]   jf @TuneP_3 [email protected] = 00229: set_car [email protected] primary_color_to [email protected]

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.