Elegant Legacy Cruise Control Script v6

Gameplay Lua


Description


Elegant Legacy Cruise Control Script

This script offers a refined and realistic method for controlling your vehicle's speed, allowing you to cruise at any desired velocity (*1). Unlike abrupt speed changes, this system provides smooth transitions. Importantly, external factors like gravity or collisions can still influence your vehicle's speed, exceeding the set cruise limit.

*1: Your vehicle needs to be capable of reaching and maintaining your desired speed in the environment you are operating in.

By default, the toggle button is mapped to "INPUT_VEH_DUCK" (control index 73), typically the duck/crouch button. This translates to X for PlayStation or A for Xbox with the swap handbrake option enabled, R1 for PlayStation or RB for Xbox with default settings, and X for keyboard users.

This script requires ScriptHookV and JM36 Lua Plugin.

"VehicleCruiseControl.lua" should be placed in the "ScriptsDir-Lua/Modules" directory within your JM36 Lua Plugin folder.

"VehicleCruiseControl.ini" belongs in the "ScriptsDir-Lua" directory of your JM36 Lua Plugin (edit this file to change the keybind if desired).

Changelog:

  • - v6 - Resolved cruise control toggle issues for keyboard users.
  • - v5 - Implemented forward vehicle speed detection, enabling response to vehicles ahead.
  • - v2 - Enhanced controller support with the swap handbrake option enabled; firing weapons from vehicles no longer toggles cruise control in this mode.

First Upload: November 11, 2024 Last Updated: November 11, 2024


0 Comments