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. Support

    3. Suggestions

Vehicle spawns help - I want to learn to do this


Diegoti
 Share

Recommended Posts

I want to learn to create my own custom vehicles spawns, like SWAT APC at SF naval base.

 

Please help

Link to comment
Share on other sites

Richie Makyura

Fastman 92 Car Spawner can Spawn added Vehciles :) I Recommend This One

Link to comment
Share on other sites

Another GTA Fan

Alternatively, you can also use cleo to make vehicle spawns. Here's an example script that spawns a Sea Sparrow in the Truck Terminal in Blueberry:

{$CLEO .cs}014B: $SEASPARK = init_car_generator #SEASPAR color -1 -1 force_spawn 0 alarm 0 door_lock 0 min_delay 0 max_delay 5000 at 202.2545 -251.1246 1.5781 angle 180.0014C: set_parked_car_generator $SEASPARK cars_to_generate_to 1010A95: enable_thread_saving0A93: end_custom_thread
Link to comment
Share on other sites

 

Alternatively, you can also use cleo to make vehicle spawns. Here's an example script that spawns a Sea Sparrow in the Truck Terminal in Blueberry:

{$CLEO .cs}014B: $SEASPARK = init_car_generator #SEASPAR color -1 -1 force_spawn 0 alarm 0 door_lock 0 min_delay 0 max_delay 5000 at 202.2545 -251.1246 1.5781 angle 180.0014C: set_parked_car_generator $SEASPARK cars_to_generate_to 1010A95: enable_thread_saving0A93: end_custom_thread

Where must i paste this code? How can i get coodinates?

Link to comment
Share on other sites

Install the latest CLEO, install the Sanny Builder 3, paste the code to editor compile them, for coordinates use:

(you must be in-game to get the player coords)

oDdHWoC.jpg

Edited by juarez
Link to comment
Share on other sites

Install the latest CLEO, install the Sanny Builder 3, paste the code to editor compile them, for coordinates use:

(you must be in-game to get the player coords)

oDdHWoC.jpg

Ok, and how can i add multiples spawns to same scryps? where can i find vehicle names? ( $vehiclename )

Link to comment
Share on other sites

Never use global variables within CLEO scripts, is bad :(

{$CLEO .cs}0A95: enable_thread_saving014B: [email protected] = init_car_generator #GREENWOO color -1 -1 force_spawn 0 alarm 0 door_lock 0 min_delay 0 max_delay 5000 at 202.2545 -251.1246 1.5781 angle 180.0014C: set_parked_car_generator [email protected] cars_to_generate_to 101014B: [email protected] = init_car_generator #GLENDALE color -1 -1 force_spawn 0 alarm 0 door_lock 0 min_delay 0 max_delay 5000 at 202.2545 -251.1246 1.5781 angle 180.0014C: set_parked_car_generator [email protected] cars_to_generate_to 1010A93: end_custom_thread

etc :p

 

where can i find vehicle names? ( $vehiclename )

$ - global variable

# - model name

You can get the model name for example from data/vehicles.ide.

 

Also learn some SCM scriptting.

Edited by juarez
Link to comment
Share on other sites

Another GTA Fan

If you type # in Sannybuilder, it usually comes up with all the usable models (Also includes things like peds and weapons). You can also check out the 'Car Variations' page in Sannybuilders help contents feature. That lists out all the vehicles in the game and their ID.

 

Edit: Actually I made a mistake, it only lists out the vehicles that have the different extra parts (Which you might find useful anyway).

Edited by Recommended
Link to comment
Share on other sites

Another GTA Fan

Yeah. If you type # in SannyBuilder, it should open a small window listing all the usable models. Also if you add other letters to #, like #AN, it will list all the matches with it (Like #ANDROM for the Andromada). And simply use the Car Variations help document if you want to spawn a vehicle with certain extra parts.

Link to comment
Share on other sites

Yeah. If you type # in SannyBuilder, it should open a small window listing all the usable models. Also if you add other letters to #, like #AN, it will list all the matches with it (Like #ANDROM for the Andromada). And simply use the Car Variations help document if you want to spawn a vehicle with certain extra parts.

31698794_1666529863440048_83248301451310​

How im going?

Link to comment
Share on other sites

Another GTA Fan

Looks good to me. The only thing is the 0A93 code for ending the thread should be on a new line.

Link to comment
Share on other sites

How can i save/test it? i try using "play gta sa" but vehicle doesnt spawns, pls help

Link to comment
Share on other sites

Car generator opcodes in the cleo scripts is not a good idea. Unless:
http://gtaforums.com/topic/759793-gta-sa-how-to-properly-add-car-generators-with-cleo-script/
Why most of the people keep forgeting about this when it's clearly important.

Also it's possible to create vehicles without using car generator opcodes.

Edited by Jack
Link to comment
Share on other sites

Another GTA Fan

When you've finished the script and want to test/use it, press F6, or press the compile button (The paper icon next to the gears icon), then choose a name you want, and put .cs at the end, and set the "Save as type" option to "Any Files". That's it, ready to go.

Link to comment
Share on other sites

When you've finished the script and want to test/use it, press F6, or press the compile button (The paper icon next to the gears icon), then choose a name you want, and put .cs at the end, and set the "Save as type" option to "Any Files". That's it, ready to go.

I saved it but it want not be showed in my folder :/

 

31682269_1666550370104664_82181501282303​

Link to comment
Share on other sites

Works but how can add more spawn to same scrypt and can i add different vehicles cuz i dont understand that "$SEASPARK"?

PS: i tried it in other GTA sa folder and it doesnt work, why?

 

I tested Juarez scrypt and does not works for me :(

Edited by Diegoti
Link to comment
Share on other sites

Another GTA Fan

Just remember, the parked cars will remain after saving your game (Which Jack is referring to above). I believe the link he provided will show how to fix that. It's fine if you're just messing around in the game, but just be aware of that if you're going to save in your master savefile for example.

Link to comment
Share on other sites

Done, multiple spawns :inlove::inlove: - T H A N K S - A L L

But now my main scryps still working and its not in my cleo folder, how to fix it?

Link to comment
Share on other sites

You can't,those car generators are stuck on your savegame now.

 

That's why you should have read this before using car generators.

Link to comment
Share on other sites

Another question, how can i spawn locked cars? i changed it "locked" value from 0 to 1 but i doesnt work.

Edited by Diegoti
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.