Speed Limit Cruise Control [.Lua] v3
427
10
427
10
Soft & Buttery Smooth (Speed Limit Based) Cruise Control by JayMontana36
Disclaimer: your game language ***MUST*** be set to English for this to work.
Ever wish that you could better control or limit your vehicle's speed and drive at the speed limit for the road that you're currently on or the area that you're currently in? Ever wish that this could/would be done in a somewhat pretty realistic (and buttery smooth) way/manner rather than instantaneous and abrupt? Ever wish that outside sources or forces (aka gravity and/or some random AI deciding that they would like to ram you in the back) could still cause your vehicle to go beyond the speed/cruise limit? Well hey, here you go lol.
How it works - by default, the toggle button is bound to your "INPUT_VEH_DUCK" button, aka control index 48, the button that you use to duck in/on a vehicle; on controller with the swap handbrake option enabled in your game settings, that button would be X for PlayStation or A for Xbox, on controller with default game settings that button would be R1 for PlayStation or RB for Xbox, on keyboard that button would be X.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "VehicleSpeedLimitCruiseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Put "VehicleSpeedLimitCruiseControl.ini" into your JM36 Lua Plugin "ScriptsDir-Lua" directory (and edit it) if you want to change the keybind to something other than duck.
Changelog:
- v3 - Improved support on controller with the swap handbrake option enabled in game settings - firing weapons from vehicles on controller no longer toggles cruise in this mode.
Disclaimer: your game language ***MUST*** be set to English for this to work.
Ever wish that you could better control or limit your vehicle's speed and drive at the speed limit for the road that you're currently on or the area that you're currently in? Ever wish that this could/would be done in a somewhat pretty realistic (and buttery smooth) way/manner rather than instantaneous and abrupt? Ever wish that outside sources or forces (aka gravity and/or some random AI deciding that they would like to ram you in the back) could still cause your vehicle to go beyond the speed/cruise limit? Well hey, here you go lol.
How it works - by default, the toggle button is bound to your "INPUT_VEH_DUCK" button, aka control index 48, the button that you use to duck in/on a vehicle; on controller with the swap handbrake option enabled in your game settings, that button would be X for PlayStation or A for Xbox, on controller with default game settings that button would be R1 for PlayStation or RB for Xbox, on keyboard that button would be X.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "VehicleSpeedLimitCruiseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Put "VehicleSpeedLimitCruiseControl.ini" into your JM36 Lua Plugin "ScriptsDir-Lua" directory (and edit it) if you want to change the keybind to something other than duck.
Changelog:
- v3 - Improved support on controller with the swap handbrake option enabled in game settings - firing weapons from vehicles on controller no longer toggles cruise in this mode.
Primeiro envio: 20 de Maio de 2022
Último envio: 19 de Junho de 2022
Último download: há 14 horas atrás
8 Comentários
More mods by JayMontana36:
- Lua
- Gtalua
2.093
22
20210909.001
By JayMontana36
![[2022] JM36 Lua Plugin for Script Hook V (Reloaded) [2022] JM36 Lua Plugin for Script Hook V (Reloaded)](https://img.gta5-mods.com/q75-w500-h333-cfill/images/jm36-lua-plugin-for-script-hook-v-reloaded/6e216d-Lua-logo-nolabel.jpg)
- Script Hook
- Desenvolvedores
- Lua
4.93
17.681
103
JM36-v20220420.0-Stable
By JayMontana36
Soft & Buttery Smooth (Speed Limit Based) Cruise Control by JayMontana36
Disclaimer: your game language ***MUST*** be set to English for this to work.
Ever wish that you could better control or limit your vehicle's speed and drive at the speed limit for the road that you're currently on or the area that you're currently in? Ever wish that this could/would be done in a somewhat pretty realistic (and buttery smooth) way/manner rather than instantaneous and abrupt? Ever wish that outside sources or forces (aka gravity and/or some random AI deciding that they would like to ram you in the back) could still cause your vehicle to go beyond the speed/cruise limit? Well hey, here you go lol.
How it works - by default, the toggle button is bound to your "INPUT_VEH_DUCK" button, aka control index 48, the button that you use to duck in/on a vehicle; on controller with the swap handbrake option enabled in your game settings, that button would be X for PlayStation or A for Xbox, on controller with default game settings that button would be R1 for PlayStation or RB for Xbox, on keyboard that button would be X.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "VehicleSpeedLimitCruiseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Put "VehicleSpeedLimitCruiseControl.ini" into your JM36 Lua Plugin "ScriptsDir-Lua" directory (and edit it) if you want to change the keybind to something other than duck.
Changelog:
- v3 - Improved support on controller with the swap handbrake option enabled in game settings - firing weapons from vehicles on controller no longer toggles cruise in this mode.
Disclaimer: your game language ***MUST*** be set to English for this to work.
Ever wish that you could better control or limit your vehicle's speed and drive at the speed limit for the road that you're currently on or the area that you're currently in? Ever wish that this could/would be done in a somewhat pretty realistic (and buttery smooth) way/manner rather than instantaneous and abrupt? Ever wish that outside sources or forces (aka gravity and/or some random AI deciding that they would like to ram you in the back) could still cause your vehicle to go beyond the speed/cruise limit? Well hey, here you go lol.
How it works - by default, the toggle button is bound to your "INPUT_VEH_DUCK" button, aka control index 48, the button that you use to duck in/on a vehicle; on controller with the swap handbrake option enabled in your game settings, that button would be X for PlayStation or A for Xbox, on controller with default game settings that button would be R1 for PlayStation or RB for Xbox, on keyboard that button would be X.
This script requires ScriptHookV and JM36 Lua Plugin.
Put "VehicleSpeedLimitCruiseControl.lua" into your JM36 Lua Plugin "ScriptsDir-Lua/Modules" directory.
Put "VehicleSpeedLimitCruiseControl.ini" into your JM36 Lua Plugin "ScriptsDir-Lua" directory (and edit it) if you want to change the keybind to something other than duck.
Changelog:
- v3 - Improved support on controller with the swap handbrake option enabled in game settings - firing weapons from vehicles on controller no longer toggles cruise in this mode.
Primeiro envio: 20 de Maio de 2022
Último envio: 19 de Junho de 2022
Último download: há 14 horas atrás
This file has been approved automatically. If you think this file should not be here for any reason please report it.
Hey man, I was wondering if you could have the mod work similarly to https://www.gta5-mods.com/scripts/better-cruise-control
I use that mod and I love that for a cruise control instead I can just have it so it limits my speed when I press forward, plus I can increment the speed limit using the NumPad. But what always bothered me is the acceleration isn't smooth, when it reaches the speed limit it just repeatedly spams max throttle instead of smoothing it.
@mrwallace888 I have no idea how that mod works as there is no source code provided for it, however I did have plans for a more "traditional" cruise control as well where you get up to whatever speed you want and it'll try and maintain that speed, and I have several side ideas for features for it as well such as how "aggressive" it attempts to maintain speed, it'd be based somewhat on how this script functions as well. Also, could you rephrase? I'm not positive that I understood everything within the correct/intended contexts, like in regards to which mod does what.
Oh hey btw @cakuzma I finally published this script, the difference between this version and the old/last one that I made for you though is that the old one is pretty abrupt and "hard" locks/limits your speed meanwhile this one/version in comparison works a lot smoother and people/AI can ram you to make/force you to go faster for example.
@mrwallace888 I've just published it, it's as simple to use as this one is currently (no keys to adjust speed beyond just toggling it on and off for now) and it works in a more "traditional" sense where it instead tries to maintain your desired cruising speed (allowing you to let go of your "INPUT_VEH_ACCELERATE" key) rather than try to limit your speed to maintain the speed limit while you hold your "INPUT_VEH_ACCELERATE" key in.
@JayMontana36 Atm i cant test it as Scripthook V isnt updated yet (I forgot to backup my gta folder after the last update so when this new update came out, my game auto updated and i had no way to downgrade it) as soon as it gets updated ill try it out, by the sounds of it tho, i think ill stick to the original one you made me, also cuz i made some changes to it to work with the CarHud you released (ie when you turn on the cruise , it locks you in the car so you must turn it off before getting out) i will give it a try tho when i get the updated scripthook V
@JayMontana36
I also still wish it had the ability to detect the car in front of you and limit you to that cars speed too
(ie , if no car in front, limit to the speed of the road, if car in front of you limit to the car in fronts speed , then when the car turns (ie not in front of u any more) reset back to the road speed)
@cakuzma Ah, I'm on the latest version of the game, completely forgot about SHV updates and such as I have and use another method for loading and using this stuff currently (can't/won't discuss it). I will see though, if with the current state of JM36 LP whether I can manage to implement the detection of vehicles and adjust/limit speeds based upon their speeds. If not, then it'll just be whenever I or someone can update the iCore/ASI/C part of the script I'd finally be able to do that. Also, the formatting of these newer scripts are way/far more modern and should be much easier to understand and work with overall, so in theory it should be easier for you to remake the same modifications. Forking on GitHub could also help manage bringing in newer code/changes and keeping your modifications (if you want, and of course there's also the sharing aspects too or just improvements for things to work better together out of the box).