Jump to content

[V|REL] Realistic Vehicle Controls LUA (in-game menu + hotkeys)


Recommended Posts

skyrayfox
[V|REL] Realistic Vehicle Controls 1.3.1 LUA (in-game menu + hotkeys)

 

96b499-rvc_screen5.jpg

 

This mod adds cruise control, auto-drive to waypoint, auto-patrol, configurable vehicle control hotkeys, in-game menu and many more vehicle options. All written in LUA for easy modification.

 

 

FEATURES:
  • Ingame menu and configurable Hotkeys (check the lua file)
  • Auto-Drive to waypoint (AI will try to follow the traffic code, press "W, S or Space" to disengage)
  • Auto-Patrol the area (AI will randomly drive the vehicle around, following the fraffic code)
  • Toggle Cruise Mode at any speed
  • Leave vehicle GTA4 style; "F" to leave with engine on, Hold "F" to leave with engine off
  • Toggle Engine, Indicator lights, Brake lights, Interior Lights
  • Toggle All Vehicle Lights (with engine still on)
  • Open All Doors, Hood and Trunk Incrementally
  • Open and Close Windows
  • Blip Police Siren (without turning it on)
  • Skip Current Radio Song
  • Clean Vehicle
  • Fix Vehicle Tyres
  • Fix Vehicle
  • Turn on/off ingame mod menu notifications
INSTALLATION:
  1. Install Script Hook V
  2. Install LUA Plugin for Script Hook V and all requisites
  3. Download Mod LUA Files and unpack them inside your GTAV directory, overwrite if asked
DEFAULT MENU CONTROLS:
F3 or / (numpad divide) - Show/Close mod menu
Backspace - Hide mod menu
Numpad 8 - Scroll Up
Numpad 2 - Scroll Down
Numpad 5 OR Space - Select mod menu option
DEFAULT HOTKEYS:
F to leave vehicle with engine on by default (radio and lights stay on as well)
Hold "F" OR "Ctrl+F" to leave vehicle with engine off (GTA4 style)
Shift+W to auto drive to waypoint
Shift+X to toggle auto patrol mode
Ctrl+W to toggle cruise control
Ctrl+X to toggle engine
Ctrl+A to toggle left indicator
Ctrl+D to toggle right indicator
Ctrl+S to toggle emergency lights
Shift+S to toggle brake lights
Ctrl+Z blip police siren (cop cars only)
+ to skip current radio song
hold "open door" buttons to open doors incrementally, press it again to close them
CHANGELOG:

 

 

UPDATE 1.3.1

  • Small hotfix that fixed mod menu not fully appearing for some users
UPDATE 1.3
  • Auto-Drive to waypoint (AI will try to follow all traffic code, press "W,S or Space" to disengage)
  • Auto-Patrol the area (AI will randomly drive the vehicle around, following the fraffic code)
  • You can now open and close all individual car doors
  • New Mod Menu design and navigation improvements
  • Mod menu bug fixes and new notification options
  • Turn Indicators and Emergency Lights improvements
  • Hotkeys: "F3" or "/" (numpad divide) to toggle open/close mod menu, backspace also works for closing the menu
  • Hotkeys: You can now activate mod menu options with "Space" OR "NumPad 5"
  • Hotkeys: Hold "F" to exit with vehicle engine off GTA4 style (alternative to Ctrl+F)
  • Hotkeys: "Ctrl+S" is now Emergency Lights, "Shift+S" Brake Lights
  • Hotkeys: "Shift+X" for Auto Patrol mode
  • Hotkeys: "Shift+W" for Auto Drive to waypoint

 

UPDATE 1.2
  • New hotkey "+" for skipping radio songs
  • New hotkey "Shift+S" for emergency lights
  • Cruise Control is now smoother
  • Cruise Control should now disengage when wehicle is flying or at slow speeds/crashing
  • Lights no longer flicker when exiting vehicles or in cruise mode
  • New - Toggle Brake Lights as always on or always on when stationary
  • Make sure to overwrite all files when updating to new version

 

 

video preview of v1.2 by KolinSasa:
Edited by skyrayfox
diamond-optic

 

make sure you are using the GUI lib from the SDK package!! its different from the normal one.. menu opens fine for me

And in normal english that means?

 

 

 

you need the GUI.lib file (../scripts/libs/) from the LUA plugin SDK, using the non-sdk file causes an error in the script

 

http://178.62.61.147/index.php?title=Download

headscript

 

make sure you are using the GUI lib from the SDK package!! its different from the normal one.. menu opens fine for me

And in normal english that means?

 

that you probably should download the SDK package : http://178.62.61.147/Downloads/LUA_SDK.zip

and use the GUI.lua from there

Edited by headscript
skyrayfox

Yes. It looks like normal LUA version uses a different GUI from the SDK one. I re-uploaded version 1.1 along with the correct GUI file.

 

Download version 1.1 and overwrite the file inside your \scripts\libs\GUI.lua directory with the one from the download.

Edited by skyrayfox

Nice alternative to vehicle controller! I have few suggestions if you don't mind.

In cruise control car is slightly shaking due to speed limit jumping back and forth for 1-2 miles per hour. It would be great if you can fix that shake. Maybe you could use RPM limit instead, like in manual transmission mod.

Automatic break lights? If speed is 0 - break lights kicks in.

And police lights without siren would be a great addition.

 

the problem is probably his

if (setCruiseSpeed ~= 0) then
wait(100)
it freezes the script for a 10th of a second also never use wait inside a tick apart from maybe once every 10 seconds

 

That's interesting. I'm not a coder so I better ask - if I remove wait(100) - will it fix the issue or it's not that simple?)

headscript

 

 

the problem is probably his

if (setCruiseSpeed ~= 0) then
wait(100)
it freezes the script for a 10th of a second also never use wait inside a tick apart from maybe once every 10 seconds

 

That's interesting. I'm not a coder so I better ask - if I remove wait(100) - will it fix the issue or it's not that simple?)

 

you should probably wait for the mod maker to update it :)

he can also talk with me if he got any problems

diamond-optic
Please add a key shortcut for skip song, it will be wonderful!

 

yeah Keys.Oemplus would be perfect seeing as its already the next song key for the self fm station

 

 

 

if get_key_pressed(Keys.Oemplus) then

rvc.skipSong()

end

 

 

 

 

 

..and removing the wait(100) from the cruise control makes it stay at a constant speed instead of jumping around

 

 

*edit*

 

cruise control gets a bit nutty hitting bumps and jumps etc.. just flew across the city in my car after hitting a rock (but i stuck the landing lol)

Edited by diamond-optic
skyrayfox

Waiting for version 1.2 to be approved. Hopefully won't take long.

 

Version 1.2 is available to download.

 

Changes:

  • New hotkey "+" for skipping radio songs
  • New hotkey "Shift+S" for emergency lights
  • Cruise Control is now smoother
  • Cruise Control should now disengage when wehicle is flying or at slow speeds/crashing
  • Lights no longer flicker when exiting vehicles or in cruise mode
  • New - Toggle Brake Lights as always on OR always on when stationary
  • Make sure to overwrite all files when updating to new version
Edited by skyrayfox

 

Waiting for version 1.2 to be approved. Hopefully won't take long.

 

Changes:

  • New hotkey "+" for skipping radio songs
  • New hotkey "Shift+S" for emergency lights
  • Cruise Control is now smoother
  • Cruise Control should now disengage when wehicle is flying or at slow speeds/crashing
  • Lights no longer flicker when exiting vehicles or in cruise mode
  • New - Toggle Brake Lights as always on OR always on when stationary
  • Make sure to overwrite all files when updating to new version

 

 

instead of ctrl+A and ctrl+D for indicators could you use J and L. also K for emergency lights

Edited by kleoboy

 

Waiting for version 1.2 to be approved. Hopefully won't take long.

 

Version 1.2 is available to download.

 

Changes:

  • New hotkey "+" for skipping radio songs
  • New hotkey "Shift+S" for emergency lights
  • Cruise Control is now smoother
  • Cruise Control should now disengage when wehicle is flying or at slow speeds/crashing
  • Lights no longer flicker when exiting vehicles or in cruise mode
  • New - Toggle Brake Lights as always on OR always on when stationary
  • Make sure to overwrite all files when updating to new version

Naww. I found it extremely entertaining to press Ctrl+W (default cruise combo) on a bike, and do superjumps... It was enormously entertaining to leap buildings with it, or jet around on a bike at terminal velocity.

Edited by Aerion

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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