Tommy's HUD (Legacy V1)
Configuration guide, common issues & solutions, code snippets, and more.
Escrow Encrypted: No
Requirements: QBCore
Features
Notification System
Modern animated notifications with different icons & sound effects.
Can easily be integrated into any resource with the client event.
Priority Status System
Similar to my Priority Status script, this system allows for the current priority status to be shown in-game through the HUD.
Admins & Users with the police job will have access to the following commands with this system enabled.
Postals Display
If enabled in the configuration, shows postals in the street display using the postals.json file.
PMA Voice Currently Talking Radio Display
When enabled, users can see who is currently talking on the radio at the top right.




Configuration
The configuration file config.lua
contains various options to customize the behavior and appearance of the HUD. Here's an in-depth explanation of each option:
Core Settings
Config.coreName
: The name of the QB-Core resource. Change this to match the name of your QB-Core resource. Example:"qb-core"
Config.removeMinimapHealthBarsAndBorder
: When set totrue
, it removes the health bars and border from the minimap. Set it tofalse
if you want to keep the default minimap appearance.Config.uiColor
: The main color of the UI in hex format. Example:"#fff"
Config.accentColor
: The accent color of the UI in hex format. Example:"#828181"
Config.loggedIn
: A function that determines whether the HUD should be displayed for a player. Modify this function to suit your server's logic. By default, the HUD is shown whenPlayerData.LoggedIn
istrue
.
Bottom Left Section
Config.usePostals
: When set totrue
, it shows postals in the street display using thepostals.json
file. Make sure to place thepostals.json
file in the resource folder.Config.usePrioStatus
: When set totrue
, enables the priority status feature. If set tofalse
, the HUD will show date/time instead of priority status.Config.prioCooldownTime
: The length of the priority cooldown in minutes. This option is only relevant if the priority status feature is enabled.Config.noShootingOnPeacetime
: When set totrue
, players are not allowed to attack or shoot during peacetime. This option is only relevant if the priority status feature is enabled.
Bottom Right Section
Config.UseMPH
: When set totrue
, the speedometer will display speed in miles per hour (MPH). Set it tofalse
to display speed in kilometers per hour (KMH).Config.showSpeedometer
: When set totrue
, the speedometer will be displayed. Set it tofalse
to hide the speedometer.Config.getFuelFunction
: A function that determines how fuel level is retrieved for the fuel indicator. Modify this function to match your fuel system. By default, it uses theLegacyFuel
resource.
Top Right Section
Config.showInfo
: When set totrue
, the top right section of the HUD (info section) will be displayed. Set it tofalse
to hide the info section.Config.serverName
: The text shown at the top right (info section). Example:"myroleplayserver.net"
. This can be your server's name or any custom text.Config.infoIcon
: The URL to an image that will be shown as an icon at the top right. Example:"https://i.imgur.com/MF9gM6z.png"
. Provide the URL of the desired image.Config.usePMAVoice
: When set totrue
, if using PMA Voice, it shows the currently talking players on the connected radio channel at the top right. It will show the callsign if available.
More Information
While self-hosting the server and testing the script, the resmon value has stayed under 0.05ms. Priority Status Commands:
Set the priority status: /setp <inactive,active,cooldown,peacetime> <optional notes> Update or set priority notes: /setn <notes>
Notification Events:
Resolution Configuration
Adding support for more resolutions goes as follows and is repeatable for multiple resolution support. (Haven't had time to update the script)
Add the following to index.html
under the </body>
line:
Add the following inside the styles.css
file:
You can modify the bottom
and left
values within .hud-customres1
to get the correct hud positioning for the chosen resolution.
Updates
Fixed Fuel Number Flickering
Added Ability to Change Fuel Function
Added Ability to Change LoggedIn Function
To-Do List
This project is no longer receiving support and is now abandoned.
This project has also been made open source.
Note: The documentation provided here is intended to help you understand and configure Tommy's HUD script effectively.
Last updated