Jump to content

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


Recommended Posts

Not working for me either, Visual Redist is installed since ages. Other LUA and ASI Scripts are working like they should. Cant see what the Console says as its not present,

 

Tried now serveral ways to make it work but no avail, it doesnt.

Not working for me either, Visual Redist is installed since ages. Other LUA and ASI Scripts are working like they should. Cant see what the Console says as its not present,

 

Tried now serveral ways to make it work but no avail, it doesnt.

 

You can try installing LUA Plugin SDK version, it comes with a console that will show you all error messages.

Qianfulong

Hi there,

is it possible to add the "auto patrol" or "auto drive to" option to a vehicle that is driven by a PED/NPC? This would be amazing for making movies since you were able to stage a scene. E.g. a scene where one car is driven by a NPC and another car is driven by the player/director.

Is there a way of changing the default start up menu key? Trying to change it to another F key.

 

F3 or / (numpad divide) - Show/Close mod menu

 

Open the LUA file and change the key.openmenu code to another one. List of key codes is in the file too.

One thing I would really really love (but I don't know if it is possible) is to be able to open any window one by one, with the other ones staying closed!

 

Edit: Well, I just tried to modify your script and it worked, so I will do my own setup from here if you dont want to reupload a new version. Maybe some other people would like to have it though.

Edited by redleouf
  • Like 1
UncleCrank

FEATURES:

  • 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)

Could you combine this with a spawn driver routine so you can sit in the back of your vehicle, eg a stretch limo?

I just cannot get this mod to work; it's the only mod I've got that wont work, and I've tried various versions of the LUA plugin/SDK, all with the same result; it's not even listing as one of the loaded modules. I've even tried this mod by itself without any other mods, and still the same result.

 

*Fixed

Was missing a lib file somehow. Redownloaded from GTAV-Mods and reinstalled it.

Edited by Anach
  • 3 weeks later...
Mkmaster2400

Can you make it so it stops at the waypoint instead of crashing into a wall and then crashing into where I have the waypoint set? And How do I change the speed of the car?

Edited by Mkmaster2400

For anyone trying to get the turn signals to work with the SDK version of the LUA Script Hook just follow the steps below.

 

1) Open RealisticVehicleControls.lua in a text editor (I like notepad ++, but feel free to use whatever you're comfortable with)

2) Find the following lines of code (they will be near the bottom)

 

 

function rvc.toggleEmergencyIndicator()	isEmergencyIndicatorOn = not isEmergencyIndicatorOn	isLeftIndicatorOn = false	isRightIndicatorOn = false	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, true, isEmergencyIndicatorOn)	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, false, isEmergencyIndicatorOn)	rvc.updateMenus("EMERGENCY LIGHTS - ", isEmergencyIndicatorOn)	rvc.keyDelay()endfunction rvc.toggleLeftIndicator()	isLeftIndicatorOn = not isLeftIndicatorOn	if isRightIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, false, false)		isRightIndicatorOn = not isRightIndicatorOn	end	if isEmergencyIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, false, false)		isEmergencyIndicatorOn = not false	end	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, true, isLeftIndicatorOn)	rvc.updateMenus("LEFT INDICATOR - ", isLeftIndicatorOn)	rvc.keyDelay()endfunction rvc.toggleRightIndicator()	isRightIndicatorOn = not isRightIndicatorOn	if isLeftIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, true, false)		isLeftIndicatorOn = not isLeftIndicatorOn	end	if isEmergencyIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, true, false)		isEmergencyIndicatorOn = false	end	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, false, isRightIndicatorOn)	rvc.updateMenus("RIGHT INDICATOR - ", isRightIndicatorOn)	rvc.keyDelay()end 

 

 

3) Replace that code with the following code

 

 

function rvc.toggleEmergencyIndicator()	isEmergencyIndicatorOn = not isEmergencyIndicatorOn	isLeftIndicatorOn = false	isRightIndicatorOn = false	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 1, isEmergencyIndicatorOn)	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 0, isEmergencyIndicatorOn)	rvc.updateMenus("EMERGENCY LIGHTS - ", isEmergencyIndicatorOn)	rvc.keyDelay()endfunction rvc.toggleLeftIndicator()	isLeftIndicatorOn = not isLeftIndicatorOn	if isRightIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 0, false)		isRightIndicatorOn = not isRightIndicatorOn	end	if isEmergencyIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 0, false)		isEmergencyIndicatorOn = not false	end	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 1, isLeftIndicatorOn)	rvc.updateMenus("LEFT INDICATOR - ", isLeftIndicatorOn)	rvc.keyDelay()endfunction rvc.toggleRightIndicator()	isRightIndicatorOn = not isRightIndicatorOn	if isLeftIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 1, false)		isLeftIndicatorOn = not isLeftIndicatorOn	end	if isEmergencyIndicatorOn then		VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 1, false)		isEmergencyIndicatorOn = false	end	VEHICLE.SET_VEHICLE_INDICATOR_LIGHTS(playerVehicle, 0, isRightIndicatorOn)	rvc.updateMenus("RIGHT INDICATOR - ", isRightIndicatorOn)	rvc.keyDelay()end 

 

 

 

NOTE: I do not have a lot of experience with LUA and I do not know how this will work with newer (or other) versions of LUA Script Hook and may potentially break the mod.

 

If you have any problems with THIS FIX let me know (I'll try, but I probably can't help if it's with the mod in general).

Edited by Drewgamer

 

 

 

@skyrayfox

 

can i open cargo plane front and back? i really am trying to find that mod, seeing a lot of videos online but dont know what mod are they using .

 

There is a button labeled "Open Alt Trunk" so I am assuming that this would allow that, but I have not tried it sadly :/

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.