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

Label "DisableCarGeneratorFromBeingSaved" not found. [GTA SA Classic]


ArmanCan
 Share

Recommended Posts

Hello guys 😃

 

I was trying to generate some vehicles for I/E and transportation purpose and i've used fastman92's codes from his topic..

 

 

It seems i'm ready but before i compile this script i'm getting this error..

 

Label "DisableCarGeneratorFromBeingSaved" not found.

 

I'm copying the whole script so we can check together..

 

Spoiler
{$CLEO .cs}
// Create a car generator for Import/Export and create some vehicles as a transport for some places..
0000:

// IMPORT EXPORT VEHICLES AT SAN FIERRO

014B: [email protected] = init_car_generator #CAMPER color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2648.4666 -39.7321 4.3359 angle 270.0 // CHAPEL
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #ADMIRAL color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2052.7021 1153.7521 45.4453 angle 360.0 // BEHIND OF CHURCH
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #FELTZER color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2638.2896 932.8483 71.9531 angle 270.0 // BEHIND OF PARADISO
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #REMINGTN color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2519.3079 -33.3673 25.6172 angle 270.0 // IN FRONT OF TATTOO SHOP
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #CHEETAH color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2721.3269 980.2031 54.4609 angle 11.33 // NEAR INFERNUS LOCATION
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #RANCHER color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2480.2009 -197.5695 25.6237 angle 90.0 // CLOSE TO HASHBURRY SAFEHOUSE
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #STALLION color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2304.488 -165.9309 35.3125 angle 180.0 // BURGERSHOT AT HASHBURRY
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #PETRO color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -1693.3623 -89.1797 3.565 angle 42.4 // ENTRANCE OF I/E CRANE
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #SLAMVAN color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2466.1726 152.1835 35.1797 angle 180.0 // THE BIFFIN BRIDGE HOTEL
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #SABRE color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2084.3755 63.4539 34.3867 angle 90.0 // CLOSE TO DOHERTY
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #JOURNEY color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2784.4106 -295.3816 7.0468 angle 180.0 // GOLF CLUB CARPARK
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #BLADE color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2212.6902 -87.2626 35.3203 angle 0.0 // CLOSE TO SF GYM
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #MESA color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2438.8154 523.0241 29.9078 angle 180.0 // SAN ANDREAS FEDERAL MINT
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #ZR350 color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2215.6809 1051.1371 80.0078 angle 180.0 // CLOSE TO CALTON HEIGHTS
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #EUROS color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2764.9893 356.1613 4.4394 angle 270.0 // CITY HALL
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #SENTINEL color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2125.5325 656.8246 52.3672 angle 90.0 // IN FRONT OF WOOZIE'S PLACE
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #FCR900 color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2664.9666 912.9951 79.6746 angle 180.0 // CLOSE TO PARADISO
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

// TRANSPORTATION VEHICLES

014B: [email protected] = init_car_generator #BMX color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 2513.0022 -1687.9816 13.5776 angle 65.75 // GROVE STREET BMX
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #HUNTER color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 2505.9807 -1719.6077 18.5821 angle 90.0 // GROVE STREET HUNTER
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #BMX color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 894.0367 -1651.58 13.5469 angle 270.0 // VERONA BEACH SAFEHOUSE
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #JETMAX color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 357.0311 -1916.2067 0.2 angle 180.0 // SANTA MARIA BEACH SAFEHOUSE
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #SEASPAR color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at -2100.0322 -2467.7849 33.9242 angle 47.47 // ANGEL PINE HELICOPTER
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #FCR900 color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 1340.557 -630.1239 109.1349 angle 108.8 // MULHOLLAND BIKE 
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

014B: [email protected] = init_car_generator #TOWTRUCK color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 10000 at 403.9354 2540.6799 16.5458 angle 157.25 // WERDANT MEADOWS TOWTRUCK 
0A17: set_parked_car_generator [email protected] to_player_owned 1 
014C: set_parked_car_generator [email protected] cars_to_generate_to 101
0AB1: call_scm_func @DisableCarGeneratorFromBeingSaved 1 car_generator [email protected]

0A93: terminate_this_custom_script

 

 

Thanks in advance 🙂

Edited by ArmanCan
Link to comment
Share on other sites

GTAForums had an update some time ago which broke the code boxes from before. I use archive.org to access them: https://web.archive.org/web/20180516092158/http://gtaforums.com/topic/759793-gta-sa-how-to-properly-add-car-generators-with-cleo-script

You must copy the SCM function (from the label to the 0AB2 opcode) and paste it at the end of your script.

Link to comment
Share on other sites

Note that this function has been implemented as an opcode in Cleo Plus.

0E02: set_car_generator [email protected] no_save

 

If simply not saving the cargen isn't good enough, and you want to delete a car generator immediately to free up the cargen slot or stop it from generating new vehicles as you are playing, the following custom function can get the job done.

 

:DeleteCarGenerator

Spoiler
:DeleteCarGenerator
// 
{
   DeleteCarGenerator a custom SCM function
   by OrionSR
   Adapted from fastman92's DisableCarGeneratorFromBeingSaved function
   Example: 0AB1: call_scm_func @DeleteCarGenerator 1 cargen_index [email protected]
}
// Is invalid generator ID?
if or
  -1 >= [email protected]
  [email protected] >= 500
then
  0AB2: ret 0
end

0A8D: [email protected] = read_memory 0x6F32AA size 1 virtual_protect false // CCarGenerator_size
0AA7: call_function 0x479D60 num_params 1 pop 1 [email protected] store_result_to [email protected] // CCarGenerator* ptr
if
  [email protected] >= 0x30 // is CCarGenerator_extended ?
then
  [email protected] += 0x24 // *** untested ***  
  0A8C: write_memory [email protected] size 2 value 0x0 virtual_protect false // exIplFile
else
  [email protected] += 0x1D
  0A8C: write_memory [email protected] size 1 value 0x0 virtual_protect false // iplFile
end
0AB2: ret 0

 

 

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.