Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Gh1baudi

A mode of add more added car IDs to Car Spawner CLEO?

Recommended Posts

Gh1baudi

I only added 612-614 (because are the most easy), but i have more added cars, here's the code:
 

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'CAR' 
0209: [email protected] = random_int_in_ranges 0 6 
0871: init_jump_table [email protected] total_jumps 7 default_jump 0 @CAR_83 jumps 0 @CAR_83 1 @CAR_101 2 @CAR_119 3 @CAR_137 4 @CAR_155 5 @CAR_173 6 @CAR_209 

:CAR_83
0209: [email protected] = random_int_in_ranges 533 536 
jump @CAR_227 

:CAR_101
0209: [email protected] = random_int_in_ranges 565 567 
jump @CAR_227 

:CAR_119
0209: [email protected] = random_int_in_ranges 575 576 
jump @CAR_227 

:CAR_137
0209: [email protected] = random_int_in_ranges 409 412 
jump @CAR_227 

:CAR_155
0209: [email protected] = random_int_in_ranges 502 508 
jump @CAR_227 

:CAR_173
0209: [email protected] = random_int_in_ranges 400 402 
jump @CAR_227 
0209: [email protected] = random_int_in_ranges 494 496 
jump @CAR_227 

:CAR_209
0209: [email protected] = random_int_in_ranges 558 562 
jump @CAR_227 

:CAR_227
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @CAR_227 
if and
   Player.Controllable($PLAYER_CHAR)
   not Actor.Driving($PLAYER_ACTOR)
else_jump @CAR_227 
if 
0AB0:   key_pressed 50 
else_jump @CAR_227 
0512: show_permanent_text_box 'TATTA'  // Use ~k~~GO_FORWARD~ and ~k~~GO_BACK~ to select an area.~N~~k~~PED_SPRINT~ Select~N~~k~~VEHICLE_ENTER_EXIT~ Quit
Actor.LockInCurrentPosition($PLAYER_ACTOR) = True
Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
Player.CanMove($PLAYER_CHAR) = False
jump @CAR_669 

:CAR_330
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @CAR_429 
if 
   not Car.Wrecked([email protected])
else_jump @CAR_429 
03F0: enable_text_draw 1 
033F: set_text_draw_letter_size 1.0 3.8 
045A: draw_text_1number 50.0 150.0 GXT 'NUMBER' number [email protected]  // ~1~
if or
00E1:   player 0 pressed_key 16 
00E1:   player 0 pressed_key 15 
else_jump @CAR_481 

:CAR_429
Player.CanMove($PLAYER_CHAR) = True
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
Actor.LockInCurrentPosition($PLAYER_ACTOR) = False
Car.RemoveReferences([email protected])
03F0: enable_text_draw 0 
03E6: remove_text_box 
wait 250 
jump @CAR_227 

:CAR_481
if 
00E1:   player 0 pressed_key 1 
else_jump @CAR_330 
jump @CAR_505 

:CAR_505
0494: get_joystick 0 direction_offset_to [email protected] [email protected] [email protected] [email protected] 
if 
  [email protected] == 0 
else_jump @CAR_546 
jump @CAR_610 

:CAR_546
if 
  [email protected] > 0 
else_jump @CAR_578 
[email protected] -= 1 
jump @CAR_610 

:CAR_578
if 
  0 > [email protected] 
else_jump @CAR_610 
[email protected] += 1 
jump @CAR_610 

:CAR_610
if 
  400 > [email protected] 
else_jump @CAR_637 
[email protected] = 614 

:CAR_637
if 
  [email protected] > 614 
else_jump @CAR_664 
[email protected] = 400 

:CAR_664
Car.Destroy([email protected])

:CAR_669
Model.Load([email protected])

:CAR_674
wait 0 
if 
   Model.Available([email protected])
else_jump @CAR_674 
04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.5 0.3 
[email protected] = Actor.Angle($PLAYER_ACTOR)
[email protected] += 270.0 
[email protected] = Car.Create([email protected], [email protected], [email protected], [email protected])
Car.Angle([email protected]) = [email protected]
Model.Destroy([email protected])
077E: get_active_interior_to [email protected] 
if 
   not [email protected] == 0 
else_jump @CAR_802 
0840: link_car [email protected] to_interior [email protected] 

:CAR_802
03F0: enable_text_draw 1 
wait 50 
03F0: enable_text_draw 0 
wait 50 
033F: set_text_draw_letter_size 1.0 3.8 
045A: draw_text_1number 50.0 150.0 GXT 'NUMBER' number [email protected]  // ~1~
wait 500 
jump @CAR_330 

This is the Cleo, any help is welcome :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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