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

another proofread please


HeresOtis
 Share

Recommended Posts

My cars aren't spawning and I have the NumLock on(using numpad numbers). The script compiled but doesn't spawn the vehicles.

 

{$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' 0000: NOPModel.Load(#COPCARLA)Model.Load(#COPCARRU)Model.Load(#POLMAV)Model.Load(#LAPD1)Model.Load(#LAPDM1)Model.Load(#LAEMT1)Model.Load(#LAFD1)Model.Load(#BMYAP)Model.Load(#VCNMAV)Model.Load(#AMBULAN)Model.Load(#FIRETRUK)[email protected] = 0:SPAWN_1wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @SPAWN_1 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 -20.0 0.0  jump @SPAWN_2:SPAWN_2wait 0if 0AB0:   key_pressed 97else_jump @SPAWN_3jump @SPAWN_8:SPAWN_3wait 0 if 0AB0:   key_pressed 98else_jump @SPAWN_4jump @SPAWN_9:SPAWN_4wait 0 if 0AB0:   key_pressed 99else_jump @SPAWN_5jump @SPAWN_10:SPAWN_5wait 0 if 0AB0:   key_pressed 100else_jump @SPAWN_6jump @SPAWN_11:SPAWN_6wait 0if0AB0:   key_pressed 101else_jump @SPAWN_7jump @SPAWN_12:SPAWN_7wait 0if 0AB0:   key_pressed 102else_jump @SPAWN_16jump @SPAWN_13:SPAWN_16wait 0if 0AB0:   key_pressed 96else_jump @SPAWN_2jump @SPAWN_17:SPAWN_8wait 0 if   Model.Available(#COPCARLA)jf @[email protected] = Car.Create(#COPCARLA, [email protected], [email protected], [email protected])0129: [email protected] = create_actor_pedtype 6 model #LAPD1 in_car [email protected] driverseat0397: enable_car [email protected] siren 1067F: set_car [email protected] lights 2Car.DoorStatus([email protected]) = 1jump @SPAWN_2:SPAWN_9wait 0 if   Model.Available(#COPCARRU)jf @[email protected] = Car.Create(#COPCARRU, [email protected], [email protected], [email protected])0129: [email protected] = create_actor_pedtype 6 model #LAPD1 in_car [email protected] driverseat0397: enable_car [email protected] siren 1067F: set_car [email protected] lights 2Car.DoorStatus([email protected]) = 1jump @SPAWN_2:SPAWN_10wait 0 if   Model.Available(#FIRETRUK)jf @[email protected] = Car.Create(#FIRETRUK, [email protected], [email protected], [email protected])0129: [email protected] = create_actor_pedtype 19 model #LAFD1 in_car [email protected] driverseat0397: enable_car [email protected] siren 1067F: set_car [email protected] lights 2Car.DoorStatus([email protected]) = 1jump @SPAWN_2:SPAWN_11wait 0 if   Model.Available(#AMBULAN)jf @[email protected] = Car.Create(#AMBULAN, [email protected], [email protected], [email protected])0129: [email protected] = create_actor_pedtype 18 model #LAEMT1 in_car [email protected] driverseat0397: enable_car [email protected] siren 1067F: set_car [email protected] lights 2Car.DoorStatus([email protected]) = 1jump @SPAWN_2:SPAWN_12wait 0 if   Model.Available(#POLMAV)jf @[email protected] = Car.Create(#POLMAV, [email protected], [email protected], [email protected])0129: [email protected] = create_actor_pedtype 6 model #LAPDM1 in_car [email protected] driverseatCar.DoorStatus([email protected]) = 10780: heli [email protected] hover_above actor $PLAYER_ACTOR car -1 altitude 15.0 170.0jump @SPAWN_2:SPAWN_13wait 0 if   Model.Available(#VCNMAV)jf @[email protected] = Car.Create(#VCNMAV, [email protected], [email protected], [email protected])0129: [email protected] = create_actor_pedtype 4 model #BMYAP in_car [email protected] driverseatCar.DoorStatus([email protected]) = 10780: heli [email protected] hover_above actor $PLAYER_ACTOR car -1 altitude 15.0 170.0jump @SPAWN_2:SPAWN_14wait 0 00BF: [email protected] = current_time_hours, [email protected] = current_time_minutes if [email protected] >= 19 6 > [email protected] @SPAWN_15   [email protected] == 0 jf @SPAWN_1506C1: create_searchlight [email protected] on_car [email protected] with_offset 0.0 -1.3 -0.7 radius 0.2 target 0.0 0.0 0.0 radius 15.0 06BF: set_searchlight [email protected] follow_car [email protected] speed [email protected] = 1:SPAWN_15if [email protected] >= 6 19 > [email protected] [email protected] == 1 jf @SPAWN_1406B2: destroy_searchlight [email protected]@ = 0jump @SPAWN_14:SPAWN_17wait 0if  Car.Defined([email protected])jf @SPAWN_20158: camera_on_car [email protected] 18 2jump @SPAWN_2

 

 

 

 

Link to comment
Share on other sites

So... When you made this script did you write it all at once and then wonder why it isn't working, or did you write a smaller test script and then add to it once you got it working?

 

What happens when CJ moves away from the point where the save was loaded and the coords are stored? Are you loading indoors?

 

What happens if the car model isn't loaded?

 

What happens if the ped model isn't loaded?

 

Have you considered using the opcodes referenced below?

 

0825: set_helicopter [email protected] instant_rotor_start 01C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian 01C3: remove_references_to_car $IMPORT_CAR // Like turning a car into any random car 

 

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.