ArmanCan Posted February 6, 2022 Share Posted February 6, 2022 (edited) 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 February 6, 2022 by ArmanCan Link to comment Share on other sites More sharing options...
HzanRsxa2959 Posted February 6, 2022 Share Posted February 6, 2022 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. ArmanCan 1 Link to comment Share on other sites More sharing options...
ArmanCan Posted February 6, 2022 Author Share Posted February 6, 2022 @HzanRsxa2959 thank you my brother.. it works like a charm Link to comment Share on other sites More sharing options...
OrionSR Posted February 6, 2022 Share Posted February 6, 2022 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 More sharing options...
ArmanCan Posted February 6, 2022 Author Share Posted February 6, 2022 ok.. i got this.. Thank you OrionSRÂ Link to comment Share on other sites More sharing options...