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

Adding Car Spawn Locations


TheHeggy
 Share

Recommended Posts

 

Heggy's Guide To Adding Car Spawn Locations

In Grand Theft Auto: San Andreas

 

Okay, this is actually very easy to do and shouldn't take you more than 30 minutes even if you're new to all of this. I'm going to try to be as specific and "step by step" as I can so that even people who've never done this before will be able to have a little fun.

 

To begin, you'll need the following tools:

San Andreas Mission Builder v0.33

San Andreas Place Manager

 

Once you have downloaded and extracted those programs, open SASCM.ini located in whatever folder you unzipped the mission builder to. At the end of that file (below everything else), add the following text:

 

 

0A4A=2,%1h% %2h% 0A4B=0,

 

 

Save it and close the file.

 

Now you need to decide where you want your vehicle to spawn. Just for fun, I'm going to put a Hotdog van on top of that really high building in Los Santos.

 

Boot up the game and head to wherever you want your vehicle to appear.

 

Once you're at a spot you like, take note of what direction you want your vehicle to be facing (north, south, east, west...), then alt + tab out of the game and run San Andreas Place Manager. This program will tell us the exact coordinates of our location so we can define it in the main.scm.

 

Click "Add Place", and a small window should pop up. Click the button that says "Click here to insert your current ingame location", and three values for the X, Y and Z coordinates will show up. Write these down or put them in a text file, as you'll need to remember them later.

 

user posted image

 

user posted image

 

Close San Andreas Place Manager, and shut down the game itself.

 

Open up your San Andreas Mission Builder program. Click "File >> Open File". Make sure the file type in the Open File window is set to "SCM File (*.SCM)", otherwise your file won't show up.

 

Navigate to your San Andreas main.scm. For me, it's located in "C:\Program Files\Rockstar Games\GTA San Andreas\data\script". Once you have the file select, hit OK. A second window will open, hit OK in that one too. It will take a minute or two for the program to read and open the file, so be patient.

When the file finally opens, hit ctrl + F to open the Find menu. Search for 014B: $2777 = init_parked_car_generator. We're going to add our spawn point above this piece of code. I'm sure there's numerous other places it would work, but this just seems to work the best for me.

 

On a new line above the code you just found, type the following:

 

 

014B: $tower_hotdog = init_parked_car_generator 588 -1 -1 1 alarm 0 door_lock 0 0 10000 at 1555.183 -1352.873 329.4553 angle 90.0

 

The green text should be replaced with something descriptive of your new location, so you can find it easily if you need to change something. I've named mine tower_hotdog. The blue text is your vehicle ID. I'm going make a list of all the IDs and their associated vehicles at the end of this tutorial tonight so it's easier for you to find what you need, but everything is defined in the vehicles.ide file in the data directory. It'll be the first number before every vehicle name. The text in yellow is the coordinates the San Andreas Place Manager gave me. You'll want to enter your X, Y and Z coordinates in place of my own. The text in red is your vehicle's orientation. Since I'm putting my vehicle on top of a tower, the direction it's facing doesn't really matter. If you want yours facing a particular way, here's how it breaks down:

 

North = 0.0

South = 180.0

East = 90.0

West = -90.0

 

Those other numbers aren't really important as far as the scope of this tutorial goes, but I'll probably write another tutorial about those at a later date.

 

 

 

 

 

 

 

On a new line below the code you just typed, put the following:

 

 

014C: set_parked_car_generator $tower_hotdog cars_to_generate_to 101

 

Notice that I have my tower_hotdog label in there -- Whatever you replaced the green text with on the above line needs to go there as well.

 

My code looked like this when I was done:

user posted image

 

You're done with the coding part, so go to the "Run" menu and select "Compile". Just like when you opened the file, it will take a moment or two for it to finish thinking. Once it's done, close the program and open the folder where the San Andreas Mission Builder program is located. Your new MAIN.SCM file and a new SCRIPT.IMG file should be in there.

 

In a new window, navigate to wherever the game's original main.scm is located and rename it to something else, like "oldmain.scm", and then rename script.img to something else. You don't want to lose the originals!

 

After renaming the file, drag the new MAIN.SCM and SCRIPT.IMG into the folder.

 

That's it! Load up San Andreas and go check out your new car smile.gif

 

user posted image

 

(IMPORTANT: Your current saved games will not work with your new main.scm file, so you'll need to start a new game. If you ever want to play your old saved games, you'll need to revert back to the original main.scm and script.img files)

 

If you have any questions, I'll do my best to help. I'm no modding guru, but I'm definitely not new at this smile.gif Edited by Gangsta Killa
Link to comment
Share on other sites

 

Vehicle IDs As Defined In Vehicles.ide

 

= 2-Door & Compact =

 

 

Name ID Name ID
Alpha 602 Hustler 545
Blista Compact 496 Majestic 517
Bravura 401 Manana 410
Buccaneer 518 Picador 600
Cadrona 527 Previon 436
Club 589 Stafford 580
Esperanto 419 Stallion 439
Feltzer 533 Tampa 549
Fortune 526 Virgo 491
Hermes 474

= 4-Door & Luxery =

 

 

Name ID Name ID
Admiral 445 Oceanic 467
Damaged Glendale 604 Premier 426
Elegant 507 Primo 547
Emperor 585 Sentinel 405
Euros 587 Stretch 409
Glendale 466 Sunrise 550
Greenwood 492 Tahoma 566
Intruder 546 Vincent 540
Merit 551 Washington 421
Nebula 516 Willard 529

= Aircraft =

 

 

Name ID Name ID
Andromada 592 Nevada 553
AT-400 577 News Chopper 488
Beagle 511 Police Maverick 497
Cargobob 548 Raindance 563
Cropduster 512 Rustler 476
Dodo 593 Seasparrow 447
Hunter 425 Shamal 519
Hydra 520 Skimmer 460
Leviathan 417 Sparrow 469
Maverick 487 Stuntplane 513

= Bikes =

 

 

Name ID Name ID
BF-400 581 Sanchez 468
Bike 509 Wayfarer 586
BMX 481
Faggio 462
FCR-900 521
Freeway 463
Mountain Bike 510
NRG-500 522
PCJ-600 461
Pizza Boy 448

= Boats =

 

 

Name ID
Coastguard 472
Dinghy 473
Jetmax 493
Launch 595
Marquis 484
Predator 430
Reefer 453
Speeder 452
Squalo 446
Tropic 454

= Civil Servant & Transportation =

 

 

Name ID Name ID
Baggage 485 Trolly** 449
Brown Streak Engine** 538 Utility Van 552
Bus 431
Cabbie 438
Coach 437
Freight 537
Sweeper 574
Taxi 420
Towtruck 525
Trashmaster 408

= Government =

 

 

Name ID Name ID
Ambulance 416 Police Car (Los Santos) 596
Barracks 433 Police Car (San Fierro) 597
Enforcer 427 Police Ranger 599
FBI Rancher 490 Rhino 432
FBI Truck 528 S.W.A.T. 601
Fire Truck 407 Securicar 428
Fire Truck (Ladder) 544
HPV1000 523
Patriot 470
Police Car (Las Venturas) 598

= Heavy Trucks & Utility =

 

 

Name ID Name ID
Benson 499 Hotdog 588
Black Boxville 609 Linerunner 403
Boxville 498 Linerunner (From "Tanker Commando") 514
Cement Truck 524 Mr. Whoopee 423
Combine Harvester 532 Mule 414
DFT-30 578 Packer 443
Dozer 486 Roadtrain 515
Dumper 406 Tractor 531
Dune 573 Yankee 456
Flatbed 455

= Light Trucks & Vans =

 

 

Name ID Name ID
Berkley's RC Van 459 Sadler 543
Bobcat 422 Tug 583
Burrito 482 Walton 478
Damaged Sadler 605 Yosemite 554
Forklift 530
Moonbeam 418
Mower 572
News Van 582
Pony 413
Rumpo 440

= Lowriders =

 

 

Name ID
Blade 536
Broadway 575
Remington 534
Savanna 567
Slamvan 535
Tornado 576
Voodoo 412

= Muscle Cars =

 

 

Name ID
Buffalo 402
Clover 542
Phoenix 603
Sabre 475

= Other =

 

 

Name ID
RC Cam* 594
streakc** 570

= RC Vehicles =

 

 

Name ID
RC Bandit 441
RC Baron 464
RC Goblin 501
RC Raider 465
RC Tiger 564

= Recreational =

 

 

Name ID Name ID
Bandito 568 Monster 3 557
BF Injection 424 Quadbike 471
Bloodring Banger 504 Sandking 495
Caddy 457 Vortex 539
Camper 483
Journey 508
Kart 570
Mesa 500
Monster 444
Monster 2 556

= Street Racers =

 

 

Name ID Name ID
Banshee 429 Infernus 411
Bullet 541 Jester 559
Cheetah 415 Stratum 561
Comet 480 Sultan 560
Elegy 562 Super GT 506
Flash 565 Turismo 451
Hotknife 434 Uranus 558
Hotring Racer 494 Windsor 555
Hotring Racer 2 502 ZR-350 477
Hotring Racer 3 503

= SUVs & Wagons =

 

 

Name ID
Huntley 579
Landstalker 400
Perennial 404
Rancher 489
Rancher (From "Lure") 505
Regina 479
Romero 442
Solair 458

= Trailers =

 

 

Name ID Name ID
Baggage Trailer (covered) 606 Trailer 3 591
Baggage Trailer (Uncovered) 607
Farm Trailer 610
Freight Train Boxcar** 590
Freight Train Flatbed** 569
"Street Clean" Trailer 611
Trailer (From "Tanker Commando") 608
Trailer (Stairs) 435
Trailer 1 450
Trailer 2 591

**This vehicle doesn't show up

 

*This vehicle shows up as a drivable flower pot

user posted image

Edited by TheHeggy
Link to comment
Share on other sites

Do you have any idea why this wont work using an already modified main.scm?..

 

I tried the 2 new ones from Craig and Opius, and when I go to compile them they both say the exact same thing, label not found.

 

It only works using the original main.scm, so do you know whats wrong?

 

Btw sorry if you cant ask questions here, at the top it says you cant but you said we could ask, so I am confused, delete if we cant alien.gif

Link to comment
Share on other sites

Do you have any idea why this wont work using an already modified main.scm?..

 

I tried the 2 new ones from Craig and Opius, and when I go to compile them they both say the exact same thing, label not found.

 

It only works using the original main.scm, so do you know whats wrong?

 

Btw sorry if you cant ask questions here, at the top it says you cant but you said we could ask, so I am confused, delete if we cant alien.gif

The asking questions thing is just so people don't start a million threads in here asking how to do a bunch of stuff wink.gif I ran into the same thing with the missing label error, so I think it's because the San Andreas Mission Builder changes some code when it re-compiles it. I could be wrong though but that's just my best guess.

 

There's another mission builder someone here linked to that's on sourceforge or something so I'm going to give that one a shot today after I get the vehicle IDs posted and see if it works better. If it does, I'll update the tutorial smile.gifbbq.gif

Link to comment
Share on other sites

Nah its ok I got it working, I tried spawning stuff at the airfield but did it wrong, I got a question:

 

What is the name of that jet that is in the airports, its fast and small, like an executie jet.

 

And whats the name of the small jumbo?..I spawned an at-400 and it wa shuge, obviously wrong.

Link to comment
Share on other sites

I think you're talking about the Shamal, not sure about the mini jumbo.... I'm in the process of documenting every vehicle defined in vehicles.ide so that you don't have to go hunting through all of it. I've got about 19 more "weird" vehicles to go through and then I'll post everything. One of the vehicles is a damn flower pot... LOL

 

Oh and I figured out what the problem was with editing pre-modified scm files -- The program generates a new script.img file which you have to copy over with the main.scm. I just tried it and I can compile, de-compile and re-compile just fine now. Updating the tutorial...

Link to comment
Share on other sites

sorry about the question but i must know.

 

is there gonna be any future updates where we dont have to start a new game?

i want to put some good cars at my garage and car lot in SF but dont want to have to start all over.

Link to comment
Share on other sites

sorry about the question but i must know.

 

is there gonna be any future updates where we dont have to start a new game?

i want to put some good cars at my garage and car lot in SF but dont want to have to start all over.

Any edit to the main.scm file requires you to start a new game. The same was true for GTAIII and Vice City as well.

Link to comment
Share on other sites

can i add more than one car spawn location by putting each code combination on top of eachother from where you mentioned?

 

Link to comment
Share on other sites

I worked out how to do this last night with a little help from one of your other threads. I managed to spawn Andromada at Verdant Meadows easily enough anyway.

Link to comment
Share on other sites

If you don't want to use the ID for the cars and want it more simple like #hunter.

 

Just copy and paste your Vehicles.ide to your SA mission builder folder, best to do peds.ide and default.ide aswell.

 

Works fine

Edited by lollieman
Link to comment
Share on other sites

Yep I use names like SHAMAL or SANCHEZ etc.

 

Its great spawning vehicles, I filled up the airfield with some stuff like the hunter, stunt plane, crop-duster one and the shamal, along with a dirtbike and quad tounge.gif

 

Btw you can also do the same with weapons, well it looked similar, I will be having a look at that in a few minutes.

 

This is unreal, one minute it works then when I change some stuff and fo to compile it, it gets a label error, what the f*ck? angry.gif

Edited by kingpug
Link to comment
Share on other sites

the mision builder link is down sad.gif

ah i got it now but it doesnt work i can only spawm 1 bike at a time smile.gif her is my code

 

i changed the coordinates every time and the ID 2 cause i want different bike's but now i onyl have 1 bike infrond of my house (beginners house)

please help whats wrong with my code smile.gif?

 

014B: $10949 = init_parked_car_generator 468 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.464 -1669.083 13.33595 angle 90.0

014C: set_parked_car_generator $10949 cars_to_generate_to 101

014B: $10948 = init_parked_car_generator 468 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.466 -1669.083 13.33595 angle 90.0

014C: set_parked_car_generator $10948 cars_to_generate_to 101

014B: $10947 = init_parked_car_generator 521 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.469 -1669.083 13.33595 angle 90.0

014C: set_parked_car_generator $10947 cars_to_generate_to 101

014B: $10946 = init_parked_car_generator 564 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.469 -1671.083 13.33595 angle 90.0

014C: set_parked_car_generator $10946 cars_to_generate_to 101

014B: $10949 = init_parked_car_generator 506 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.469 -1673.083 13.33595 angle 90.0

014C: set_parked_car_generator $10949 cars_to_generate_to 101

014B: $2777 = init_parked_car_generator 432 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2435.302 -1671.848 12.8007 angle 90.0

014C: set_parked_car_generator $2777 cars_to_generate_to 0

014B: $PARKED_HYDRA = init_parked_car_generator 520 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2527.2 -1677.1 19.2 angle 90.0

014C: set_parked_car_generator $PARKED_HYDRA cars_to_generate_to 0

Edited by ProfaNe
Link to comment
Share on other sites

The first 3 "spawnings" are at identical locations .. get some slightly different co-ordinates for 2 of them and that should do the job smile.gif

Link to comment
Share on other sites

Im getting a "parameter 2 not set" error anyone know what's wrong? Big n00b here sorry =) my code looks like this...

 

014B: $Feltzer = init_parked_car_generator 533 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2486,339 -1655,602 13,3359 angle -90.0

014C: set_parked_car_generator $Feltzer cars_to_generate_to 101

014B: $SJ_Home1 = init_parked_car_generator 536 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2491,237 -1682,849 13,33689 angle -90.0

014C: set_parked_car_generator $SJ_Home1 cars_to_generate_to 101

014B: $2777 = init_parked_car_generator 432 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2435.302 -1671.848 12.8007 angle 90.0

014C: set_parked_car_generator $2777 cars_to_generate_to 0

014B: $PARKED_HYDRA = init_parked_car_generator 520 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2527.2 -1677.1 19.2 angle 90.0

014C: set_parked_car_generator $PARKED_HYDRA cars_to_generate_to 0

 

NM i found the problem, I had "," instead of "." between the coordinates biggrin.gif

Edited by Remix1121
Link to comment
Share on other sites

THNX< i have 5 cars now smile.gif but i have a strange thing there is alittle tank smile.gif i cant ride it it's strange..

but is there a car list of how the cars look like? and the names? cause i dont know the real fast ones the bieutifull ones smile.gif

Link to comment
Share on other sites

 

THNX< i have 5 cars now smile.gif but i have a strange thing there is alittle tank smile.gif i cant ride it it's strange..

but is there a car list of how the cars look like? and the names? cause i dont know the real fast ones the bieutifull ones smile.gif

I think its the RC Tiger your talking about .. a little RC tank. Heres pictures of almost all of the cars and Heggy has put the list of the numbers that correspond to these vehicles.

Edited by Vanquish
Link to comment
Share on other sites

Just had a quick skim over and it seems the only vehicle its missed is andromada .. which is just a huge huge plane.

Edited by Vanquish
Link to comment
Share on other sites

Just had a quick skim over and it seems the only vehicle its missed is andromada .. which is just a huge huge plane.

I listed the Andromada... First one under "Aircraft" wink.gif

Link to comment
Share on other sites

 

Just had a quick skim over and it seems the only vehicle its missed is andromada .. which is just a huge huge plane.

I listed the Andromada... First one under "Aircraft" wink.gif

I meant the car picture list on that website. Dont for one second think im complaining about your listing skills biggrin.gif

Link to comment
Share on other sites

Suction Testicle Man

NO double-posting please. It is against the forum rules.

 

 

If at first you don't succeed, you fail, and the test will be terminated.

Link to comment
Share on other sites

I dont suppose there's anyway to edit your savegame too so you dont have to start over lol sad.gif

Link to comment
Share on other sites

Anyway to make the colors random, like normal GTA car spawns?

All my vehicles are solid white. Probably has something to do with the '0 0' part.

Link to comment
Share on other sites

 

Anyway to make the colors random, like normal GTA car spawns?

All my vehicles are solid white.  Probably has something to do with the '0 0' part.

Hmm... All my cars are showing up random colors. I've been spawing BF Injections and stuff and they're always a different color.

 

I haven't really tried spawning a car that was a specific color, but the two -1 numbers (highlighted in orange) should be the ones you change... If you didn't know already, the numbers for the colors are defined in carcols.dat. I'm going to add all this to the tutorial since it's probably something a lot of people are going to want to do...

 

014B: $tower_hotdog = init_parked_car_generator 588 -1 -1 1 alarm 0 door_lock 0 0 10000 at 1555.183 -1352.873 329.4553 angle 90.0

Edited by TheHeggy
Link to comment
Share on other sites

zinklesmesh

Great tutorial.

 

However, I tried adding a Beagle spawn near the Prickle Pine safehouse to the Opened Up main.scm, I get the label error on compile and when I start a new game it crashes.

 

It did the same when I tried the AT-400 instead of the Beagle.

 

I don't want to do it on the default main.scm because then I won't even be able to get to my spawn sad.gif

 

Help me please.

 

 

014B: $personal_plane = init_parked_car_generator 511 -1 -1 1 alarm 0 door_lock 0 0 10000 at 1213.36 2512.172 15.82031 angle -90.0014C: set_parked_car_generator $personal_plane cars_to_generate_to 101

 

 

EDIT: NEVERMIND! I FIGURED IT OUT

Edited by Kitteh
Link to comment
Share on other sites

LOL glad you got it working.

 

Did you do anything other than what was in the tutorial to get it working? Please let me know so I can add it smile.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.