VehContol is a NUI vehicle control script, It is currently a standalone script that does not have any dependencies and is a drop in to any server.
Control
- Hood
- Trunk
- Doors
- Windows
- Interior Light
- Change Seats
- Leave Engine Running on Exit
- Bomb Bay Doors
NUI Controls
-
Open - Script Default: HOME
-
Script Default can be changed via config
-
Client changeable via Settings->Keybinds->FiveM game menu
-
-
Close - ESC
Commands
- /engine - Start/Stop Vehicle Engine
- /hood - Open/Close Hood
- /trunk - Open/Close Trunk
- /seat [1-4]- Move Seat
- /door [1-4] - Open/Close Door
- /window [1-4] - Roll Up/Down Window
- /windowfront - Roll Up/Down Front Windows
- /windowback - Roll Up/Down Back Windows
- /windowall - Roll Up/Down All Windows
- /vehcontrolclose - Close NUI (in F8 if stuck open)
Exporting
Exporting and Events
The following ways can be used to open the menu from another resource depending on how the resource is coded
Open menu from another resource with exports
exports.vehcontrol:openExternal()
Open menu from another resource with events
TriggerEvent("vehcontrol:openExternal")
Config
UseCommands [true/false] - Allow the use of /commands
DisableSeatShuffle [true/false] - Allow auto-seat shuffle from passenger to driver
LeaveRunning [true/false] - Allow the engine to keep running on exit of the vehicle with a long F keypress
DefaultOpen - This is they default key to open the menu, client can change in the game menu (Settings->Key Binds->FiveM) - Usable Key List Here
Download
Release VehControl v1.1.7
Frequently Asked Questions HERE
WARNING
You must change the folder after extraction from “vehcontrol-master” to “vehcontrol” or your NUI menu will not work when you push a button!
TODO
- Nothing Currently
Feature request can be made Here
Changelog
View
v1.1.7
- Added Bomb Bay Doors #22
v1.1.6
- Added KeyMapping so clients can change the keybind in the game menu
- nAdded Default Key to config
v1.1.5
- Added new manifest file #10
v1.1.4
- Added secondary way to call the menu using events
v1.1.3
- Added Exports to call the menu from another resource
v1.1.2
- Merged Pull request #2 by yhtrae, which added a fix for disabling the opening of the menu while in the ESC pause menu
- Added ability to keep the engine running when you get out of the drivers seat
- Add LeaveRunning [true/false] flag to config
v1.1.1
- Fix Auto-Seat Shuffle
- Add DisableSeatShuffle [true/false] flag to config
v1.1.0
- Fixed seat switching (was unable to move to driver from every seat)
- Added config.lua with settings
- Added /engine command
- Added /hood command
- Added /trunk command
- Added /door command
- Added /seat command
- Added /window command
- Added /windowfront command
- Added /windowback command
- Added /windowall command
- Added vehcontrolclose command (use in F8 if NUI stuck open)
- Restructured code to be modular with NUI and Commands
v1.0.0
- Initial Release
Screenshots