Good evening! I’m putting a free HUD script at your disposal. I made it pretty quickly, so if there’s any problem, don’t hesitate to let me know! I know I’m not an optimization pro.
The script is partly configurable, both technically and visually.
This is a standalone script, so here are a few exports to help you manage the display with your own scripts.
exports["jordqn_hud"]:bypassRadar(boolean) -- Allows you to activate or deactivate, via your scripts, the fact of having the radar permanently outside your vehicles (if the option is active, of course).
exports["jordqn_hud"]:setThirst(value) -- Set thirst level.
exports["jordqn_hud"]:setHunger(value) -- Set hunger level.
exports["jordqn_hud"]:setVoiceDistance(0, 1, 2, 3) -- Set voice distance on HUD. (0 = mute, 1 = short, 2 = medium, 3 = long)
exports["jordqn_hud"]:setVoiceTalking(boolean) -- Displays whether the player is speaking or not.
exports["jordqn_hud"]:setVoiceRadio(boolean) -- Displays whether the player is speaking on the radio or not.
exports["jordqn_hud"]:setSeatBelt(boolean) -- Defines whether the belt is fastened or not.
exports["jordqn_hud"]:hudVisibility(boolean) -- Defines whether the HUD is visible or not.
PS: The fuel level is managed by your vehicle’s handling and via the native GetVehicleFuelLevel. If you use another method to manage your fuel, please don’t hesitate to contact me so we can look into it together.
Added for vehicles, natively a speedometer (kmh, mph) and display of fuel, full headlights and engine status.
Added for vehicles, via exports, seat belt display.
Added voice display, via exports, with the possibility of four distances (mute, short, medium, long) and whether the player is speaking on the radio.
Removals
On the first version I had unintentionally left lines allowing me to equip myself with armor and modify the weather for preview videos. This has been removed.
is it possible to move the player location a little bit to the left? because there is kinda big gap between location and map and its really getting on my nerves
exports["jordqn_hud"]:hudVisibility(boolean) -- Defines whether the HUD is visible or not.
Added support for ESX and QBCore frameworks. (must be enabled in config)
Added support for pmaVoice and LegacyFuel scripts. (must be enabled in config)
Notes
Regarding the addition of the QBCore and ESX frameworks, I’ve never worked or played with these two, and this is the first time I’ve implemented them, as I’m used to doing everything standalone. So if you see any errors and/or a better possible implementation, don’t hesitate to let me know so I can improve it.