Skip to content

a3rgames/CarHudLights

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CarHudLights

GitHub GitHub release (latest by date including pre-releases)

Includes

  • A Speedometer
  • Engine Damage Indicator
  • Head Lights Indicator
  • Turn Lights Indicator
  • Cruse Control Indicator
  • Seatbelt Indicator

Potential Roadmap

  • Might add a speed limiter to add built in functionality to the cruse control indicator.
  • Continued bug fixes.

in-game preview

Optional Add-Ons

  • pv-cruisecontrol or another cruise control or speed limiter script.
    • Used to add cruise control.

Installation

Download the latest release from the releases tab. Navigate to your FXServer/server-data/resources folder. Place folder CarHudLights folder here. Navigate to your FXServer/server-data folder. Edit your server.cfg file to add the following line:

start CarHudLights

That's it. Launch your server.

Suggested Config Edits to Other Plugins

These are edits to other plugins' config files to complete the look of your server's hud.

Edit fuel_client.lua in the last Citizen.CreateThread(function() found on line 374 to

if displayHud then
	--DrawAdvancedText(0.130 - x, 0.77 - y, 0.005, 0.0028, 0.6, mph, 255, 255, 255, 255, 6, 1)
	--DrawAdvancedText(0.174 - x, 0.77 - y, 0.005, 0.0028, 0.6, kmh, 255, 255, 255, 255, 6, 1)
	DrawAdvancedText(0.233 - x, 0.7915 - y, 0.005, 0.0028, 0.5, fuel .. "  Fuel", 255, 255, 255, 255, 6, 1)
	--DrawAdvancedText(0.148 - x, 0.7765 - y, 0.005, 0.0028, 0.5, "Fuel", 255, 255, 255, 255, 6, 1)
else

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Copyright (C) 2021 MacRichards

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see https://www.gnu.org/licenses/.

Credits

Inspiration for this project came from the Discontinued Advanced Car Hud System and the Seatbelt with blinking warning indicator. Additional thanks to the Jeva YouTube Channel for their tutorials on Lua programming for FiveM.

About

Car hud light panel for FiveM servers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 63.1%
  • JavaScript 20.0%
  • CSS 8.9%
  • HTML 8.0%