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

random "street_racing_car"and"lowrider"


ajidehak
 Share

Recommended Posts

i want to create this mod for nfs mod because when u go in street maybe u not see any fashion car,

good , i create it but when i want reset traffic to default gta it not reset

anybody can help me?

this is my code:

 

{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'CARLOAD':CARLOAD_11wait [email protected] = 00734: reset_random_car_generator_models0209: [email protected] = random_int_in_ranges 0 [email protected] >= 4jf @CARLOAD_123wait [email protected] = 00209: [email protected] = random_int_in_ranges 0 11gosub @CARLOAD_134:CARLOAD_78if not Model.Available([email protected])jf @CARLOAD_79Model.Load([email protected])038B: load_requested_modelswait 0jump @CARLOAD_78:CARLOAD_7909BF: set_random_traffic_spawn_to_model [email protected] // Load the vehicle model before using thisModel.Destroy([email protected])jump @CARLOAD_11:CARLOAD_123wait 0jump @CARLOAD_11:CARLOAD_134wait [email protected] == 0jf @[email protected] = 558return:CARLOAD_166wait [email protected] == 1jf @[email protected] = 559return:CARLOAD_198wait [email protected] == 2jf @[email protected] = 560return:CARLOAD_230wait [email protected] == 3jf @[email protected] = 561return:CARLOAD_262wait [email protected] == 4jf @[email protected] = 562return:CARLOAD_294wait [email protected] == 5jf @[email protected] = 565return:CARLOAD_326wait [email protected] == 6jf @[email protected] = 534return:CARLOAD_358wait [email protected] == 7jf @[email protected] = 535return:CARLOAD_390wait [email protected] == 8jf @[email protected] = 536return:CARLOAD_422wait [email protected] == 9jf @[email protected] = 567return:CARLOAD_454wait [email protected] == 10jf @[email protected] = 575return:CARLOAD_486wait [email protected] == 11jf @[email protected] = 576return:CARLOAD_518wait 0return 

 

Edited by ajidehak
Link to comment
Share on other sites

It's not possible to use [email protected] in a thread of a *.cs file because you can use only local vars from [email protected] - [email protected]

replace every [email protected] with [email protected]

then it works

 

i have tested it with 423 (ID number of mrwhoop) i replaced all your IDs with 423 to see an effect and it worked

then i tested it with 433 (ID number of barracks) and it crashed

then i tested with 434 (ID number of hotknife) and it worked

 

Link to comment
Share on other sites

hi zaz your mods very good and u great scripter

ok,i use [email protected] and [email protected] in other mods without any problem, and in this mod i think crash not related to [email protected] ,it for not load default traffic and game crash, but my question this: why default traffic not load, and what opcode of it?

tanks for comment

 

Predicted:

zaz post a comment and i answer and then rastakilla post a new commet for request my mod then i answer to he and realease my mod. biggrin.giflol.giftounge2.gif

Edited by ajidehak
Link to comment
Share on other sites

 

ok,i use [email protected] and [email protected] in other mods without any problem

that can not be true unless in mission scripts

sanny gives an error message if you wanna compile your posted script with [email protected]

 

it's possible to compile if you change {$CLEO .cs} into {$CLEO .cm}

 

 

why default traffic not load

because the traffic is set to specified models

try this to change back to normal random traffic

 

09BF: set_random_traffic_spawn_to_model -1

 

Edited by ZAZ
Link to comment
Share on other sites

u very fast in answer,tanks for it.

my sanny not eror for it,

i try on your way and back,

again tanks for answer.

Link to comment
Share on other sites

yes, i now realese this mod, because zaz very help to me, and now game without any crash,

i must thank of zaz for help to me,

i add this line:"09BF: set_random_traffic_spawn_to_model -1"

in my code and now it good work,

but i not understand [email protected] , [email protected] and other bigger [email protected] in my sanny not crash

but because u very great scripter, i change all [email protected] to [email protected] .

tanks zaz

 

anybody know , when i want to release this topic in mod showroom , how?

if possible learn me if not i create new topic.

Edited by ajidehak
Link to comment
Share on other sites

Yeah, just create a new topic and name it

 

[REL] Custom car traffic mod

 

Make the topic here or maybe here. Only choose one though. smile.gif

pkmTc.gif

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.