Diegoti Posted April 30, 2018 Share Posted April 30, 2018 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 More sharing options...
Richie Makyura Posted April 30, 2018 Share Posted April 30, 2018 Fastman 92 Car Spawner can Spawn added Vehciles I Recommend This One Link to comment Share on other sites More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 Where can i find it? Link to comment Share on other sites More sharing options...
Richie Makyura Posted April 30, 2018 Share Posted April 30, 2018 Where can i find it? Here: http://www.gtagarage.com/mods/show.php?id=13763 Link to comment Share on other sites More sharing options...
Another GTA Fan Posted April 30, 2018 Share Posted April 30, 2018 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 More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 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 More sharing options...
Juarez Posted April 30, 2018 Share Posted April 30, 2018 (edited) 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) Edited April 30, 2018 by juarez Link to comment Share on other sites More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 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) 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 More sharing options...
Juarez Posted April 30, 2018 Share Posted April 30, 2018 (edited) 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 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 April 30, 2018 by juarez Link to comment Share on other sites More sharing options...
Another GTA Fan Posted April 30, 2018 Share Posted April 30, 2018 (edited) 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 April 30, 2018 by Recommended Link to comment Share on other sites More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 1- Thanks 2- So with # i can add weapons too? Link to comment Share on other sites More sharing options...
Another GTA Fan Posted April 30, 2018 Share Posted April 30, 2018 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 More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 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. ​ How im going? Link to comment Share on other sites More sharing options...
Another GTA Fan Posted April 30, 2018 Share Posted April 30, 2018 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 More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 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 More sharing options...
Jack Posted April 30, 2018 Share Posted April 30, 2018 (edited) 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 April 30, 2018 by Jack Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Another GTA Fan Posted April 30, 2018 Share Posted April 30, 2018 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 More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 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 ​ Link to comment Share on other sites More sharing options...
Diegoti Posted April 30, 2018 Author Share Posted April 30, 2018 (edited) 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 April 30, 2018 by Diegoti Link to comment Share on other sites More sharing options...
Another GTA Fan Posted April 30, 2018 Share Posted April 30, 2018 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 More sharing options...
Diegoti Posted May 1, 2018 Author Share Posted May 1, 2018 Done, multiple spawns - 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 More sharing options...
GuruGuru Posted May 1, 2018 Share Posted May 1, 2018 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 More sharing options...
Diegoti Posted May 2, 2018 Author Share Posted May 2, 2018 (edited) Another question, how can i spawn locked cars? i changed it "locked" value from 0 to 1 but i doesnt work. Edited May 2, 2018 by Diegoti Link to comment Share on other sites More sharing options...
Grinch_ Posted May 2, 2018 Share Posted May 2, 2018 Bro,as you asked so many question regarding cleo,why not learn froma tutorial huh,go here http://gtaforums.com/topic/403594-sa-cleo-script-tutorial/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now