Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,147 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions


CLEO 3 Cruise control mod

Recommended Posts


Hello everyone, here is my primitive attempt for a cruise control mod in GTASA.

It has some issues and I don't think I'll be able to fix them, maybe anyone else?

Anyway here it is:

Install it as usual in CLEO and while driving a vehicle (prefererable a car) press C to enable cruising at the current speed and X or SPACE to stop cruising and revert to normal.


Drawbacks are: The car acts like is driven by magic, that is will not decrease speed while colliding with stuff and of course will take damage. It behaves strange while flipped as in the car will drag on its back as soon as you exit it (while flipped). The speed is actually lower than the current speed - I have no idea how to calculate the correct value for it (edit: now I do biggrin.gif).



Anyway, enjoy.




{$CLEO}0000:var    $cruiseOn:int = 0endwhile true   wait 10      if       not Actor.Driving($PLAYER_ACTOR)   then       $cruiseOn = 0;   end         if and       $cruiseOn > 0        Actor.Driving($PLAYER_ACTOR)   then       045A: draw_text_1number 131.75 24.4 GXT 'NUMBER' number [email protected]  // ~1~       03C0: [email protected] = actor $PLAYER_ACTOR car       if  and           09D0:   car [email protected] on_wheels           81F3:   not car [email protected] in_air           81F4:   not car [email protected] flipped       then           Car.SetSpeedInstantly([email protected],[email protected])       end                                                               end   if       0AB0:   key_pressed 0x43   then              if and            $cruiseOn == 0            Actor.Driving($PLAYER_ACTOR)       then           03C0: [email protected] = actor $PLAYER_ACTOR car            046C: [email protected] = car [email protected] driver            if                003B:   [email protected] == $PLAYER_ACTOR // (int)            then               $cruiseOn = 1               02E3: [email protected] = car [email protected] speed               03E3: set_texture_to_be_drawn_antialiased 1                033F: set_text_draw_letter_size 0.6 2.0                045A: draw_text_1number 131.75 224.4 GXT 'NUMBER' number [email protected]  // ~1~           end       end    else       if or           0AB0:   key_pressed 0x58           0AB0:   key_pressed 0x20       then           $cruiseOn = 0       end       endend













Since v 0.1 was kinda lame (cars moved like zombies of sort), here is v 0.2. It features a background tool written in c# that scans a file created by the cleo script which contains the cruise control status, the desired speed and the current speed. The exe sends keys for acceleration or brake intermittently in order to maintain the desired speed (I presume you would still have arrow UP and DOWN as acc and brk). I like this more since it's real and the car reacts to the environment normally. There are some tuning options as teh timer interval, the pipe file, etc. Just try and see.


Use the key 'C' to set and unset the cruise mode. Insist a little, it may not work at the slightest touch.

Install is straightforward, just copy the content form

I included the full source code of both the cleo script and the c# app, so anyone with ideas, please go ahead and help yourselves, just let me know 'coz I really wanna see some improved variant.


Anyway, stay tuned as I am researching into v 0.3 which will use a dll for speed set. The only drawback that might pop up is the fact that it would not be possible to send the keys to the process, but I'll workaround it I guess (anyone knows more about dll's in gtasa through cleo, is welcome to comment or PM or whatever).




V0.2.1 is out now.

Updated the .NET application by adding some more tuning options. Enjoy!


Edited by fatmanone

Share this post

Link to post
Share on other sites

Errmmmm.... this is the vehicles section

Share this post

Link to post
Share on other sites

Even though this CLEO script is related to vehicles and I find it to be cool, it would be more appropiate to have it moved to the mission mods showroom because this is a script mod, not a vehicle mod.

Share this post

Link to post
Share on other sites

I have no idea how to move the post to other sections. If any of the admins are reading this maybe they can help. Thanks.

Share this post

Link to post
Share on other sites

Don't worry, the admins will move it for you and probably very soon

Share this post

Link to post
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


Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.