Jump to content

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


Recommended Posts

Is it possible to make a .asi version with .ini file to change the keys?

lua is better than asi, and it's always opensource, so you'll know what exactly modder is doing with your copy of GTA, you can learn from it, use it, break it, fix it, Trash it, change it. And you still can change all the keys, just open the script with a notepad (or notepad++ for the win) it and get impressed how easy it is.

skyrayfox

Can you add a hazard lights option too? That is all that's missing for me at least from this mod. Thank you for your work.

 

Hazard lights are already working in the latest version, (Ctrl+S) is the hotkey.

Edited by skyrayfox

 

lua is better than asi, and it's always opensource, so you'll know what exactly modder is doing with your copy of GTA, you can learn from it, use it, break it, fix it, Trash it, change it. And you still can change all the keys, just open the script with a notepad (or notepad++ for the win) it and get impressed how easy it is.

:sui: my fault, sorry. I did not realize that i can open the lua files with notepad to change something myself.

 

Ok, but there are now two another questions.

How can i bind hotkeys for the doors, the bonnet and the trunk ?

And..

is it possible to save something like brake lights always on when vehicle stops ?

 

 

ThunderBanana

Is there any way to activate the lights (lightbar, grille strobes, etc) on EMS vehicles (police cars, ambulances, fire trucks) without having the siren come on using this? Would it be the same as Ctrl+S for the hazard lights, or is it a separate function?

Edited by ThunderBanana
skyrayfox

Is there any way to activate the lights (lightbar, grille strobes, etc) on EMS vehicles (police cars, ambulances, fire trucks) without having the siren come on using this? Would it be the same as Ctrl+S for the hazard lights, or is it a separate function?

 

No, I tried implementing that but I don't think this is possible at the moment.

skyrayfox
Updating to version 1.3.


CHANGES:

  • 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
Edited by skyrayfox

Any idea why none of my other lua mods work if i install this mod?

 

Also, for some reason all options below cruise control are missing from the menu for me. This is in 1.3

I have the same problem with the menu.

 

Mod just got updated to 1.3.1 and bug is fixed

 

upd

autodrive to waypoint is kinda broken, AI tries to ride into the walls most of the time =\

Edited by Xilandro
skyrayfox

Any idea why none of my other lua mods work if i install this mod?

 

Also, for some reason all options below cruise control are missing from the menu for me. This is in 1.3

 

Can you let me know what other mods are not compatible ? That would help a lot.

 

 

 

autodrive to waypoint is kinda broken, AI tries to ride into the walls most of the time =\

 

 

It usually works fine in the city. Still, on some roads AI goes crazy and drives off the road, not sure why that happens yet.

Hi,

 

Thank you for this great mod!

 

1.3.1 seems broken though, I run the last LUA plugin version in dev mod and with no other scripts, and I have this error: "RealisticVehicleControls.lua:272: attempt to index field 'rvcGUI' <a nil value>"

 

So the script doesn't work and disable other LUA scripts if I have some.

 

I hope you can fix it soon, bon courage!

MatCampbell

 

Any idea why none of my other lua mods work if i install this mod?

 

Also, for some reason all options below cruise control are missing from the menu for me. This is in 1.3

 

Can you let me know what other mods are not compatible ? That would help a lot.

 

 

 

autodrive to waypoint is kinda broken, AI tries to ride into the walls most of the time =\

 

 

It usually works fine in the city. Still, on some roads AI goes crazy and drives off the road, not sure why that happens yet.

 

 

These are my other lua mods that don't work if i install this one:

 

Slow motion bullet time toggle 1.2

Szabo's persistance mod 0.0.1.06b

Hi,

 

Thank you for this great mod!

 

1.3.1 seems broken though, I run the last LUA plugin version in dev mod and with no other scripts, and I have this error: "RealisticVehicleControls.lua:272: attempt to index field 'rvcGUI' <a nil value>"

 

So the script doesn't work and disable other LUA scripts if I have some.

 

I hope you can fix it soon, bon courage!

Same here, it worked the first launch, (only doors not working) then at second launch i got this error too, i had to uninstall :(

skyrayfox

 

Hi,

 

Thank you for this great mod!

 

1.3.1 seems broken though, I run the last LUA plugin version in dev mod and with no other scripts, and I have this error: "RealisticVehicleControls.lua:272: attempt to index field 'rvcGUI' <a nil value>"

 

So the script doesn't work and disable other LUA scripts if I have some.

 

I hope you can fix it soon, bon courage!

Same here, it worked the first launch, (only doors not working) then at second launch i got this error too, i had to uninstall :(

 

 

That's very strange as I cannot replicate the problem on my end, I followed my own instructions on a clean installation and re-downloaded Script Hook + LUA Hook + my mod and everything runs fine.

 

Maybe you are running some old scripts from other mods that are conflicting with this one ? Try uninstalling all .asi scripts and deleting "scripts" folder in you GTA5 directory. Then download latest Script Hook + Script Hook Lua Plugin and this mod only.

 

Once you do that make sure you have these two files in your GTAV directory: "\scripts\addins\RealisticVehicleControls.lua" and "scripts\libs\rvcGUI.lua"

 

You can also check your asiloader.log file to see if the game is loading any other mods with this one and that you get no errors.

 

Let me know if that helps.

Edited by skyrayfox
skyrayfox

 

These are my other lua mods that don't work if i install this one:

 

 

Slow motion bullet time toggle 1.2

Szabo's persistance mod 0.0.1.06b

 

 

I tested both of them and the latest versions of both of these mods are compatible with mine. Please make sure you download the latest version of Script Hook + Lua Plugin for Script Hook and follow the instructions above.

Edited by skyrayfox

I am using Lua "SDK", maybe this is the problem? But it was working fine and i didn't changed anything between the second launch

Also copied the libs in the right folder. Only doors wasn't working.

 

I gonna clean the installations and try again only with your mod

 

 

Hi,

 

Thank you for this great mod!

 

1.3.1 seems broken though, I run the last LUA plugin version in dev mod and with no other scripts, and I have this error: "RealisticVehicleControls.lua:272: attempt to index field 'rvcGUI' <a nil value>"

 

So the script doesn't work and disable other LUA scripts if I have some.

 

I hope you can fix it soon, bon courage!

Same here, it worked the first launch, (only doors not working) then at second launch i got this error too, i had to uninstall :(

 

 

That's very strange as I cannot replicate the problem on my end, I followed my own instructions on a clean installation and re-downloaded Script Hook + LUA Hook + my mod and everything runs fine.

 

Maybe you are running some old scripts from other mods that are conflicting with this one ? Try uninstalling all .asi scripts and deleting "scripts" folder in you GTA5 directory. Then download latest Script Hook + Script Hook Lua Plugin and this mod only.

 

Once you do that make sure you have these two files in your GTAV directory: "\scripts\addins\RealisticVehicleControls.lua" and "scripts\libs\rvcGUI.lua"

 

You can also check your asiloader.log file to see if the game is loading any other mods with this one and that you get no errors.

 

Let me know if that helps.

 

 

Ohh, I haven't saw the rvcGUI file in the lib folder of your mod! Sorry my bad!

 

It is working fine now, thanks again for the great mod, I love it!

skyrayfox

I am using Lua "SDK", maybe this is the problem? But it was working fine and i didn't changed anything between the second launch

Also copied the libs in the right folder. Only doors wasn't working.

 

I gonna clean the installations and try again only with your mod

 

No. Both Normal Lua and Lua SDK are compatible, just make sure you install the latest version. Let me know if it works!

Nice mod.

 

One problem I found is that the task drive to waypoint is that the AI would try to drive DIRECTLY to the waypoint in a straight line. Sometimes it would do this and sometimes it would get back on track. Very random - it takes a few tries to get it back on track.

 

Has anyone tested SET_DRIVER_AGGRESSIVENESS or SET_DRIVE_TASK_DRIVING_STYLE to see if it has any affect to their behavior? What about SET_PED_STEERS_AROUND_<PEDS,VEHICLES,OBJECTS>?

it's not working ! i'm using this lua plugin

 

http://gtaforums.com/topic/789139-vrelhook-lua-plugin-for-script-hook-v

 

Have you installed Visual C++ Redistributable along with Script Hook and Script Hook Lua Plugin ? Also check your asiloader.log file and see that .asi plugins are loaded properly.

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.