Installation
Follow the steps on this page in detail to get the HUD working correctly on your server, let's go through the steps!
Last updated
Was this helpful?
Follow the steps on this page in detail to get the HUD working correctly on your server, let's go through the steps!
Last updated
Was this helpful?
First of all we want you to know that our script only supports the versions of the three most used frameworks, in previous versions it can be usable but we do not provide support since the development is focused on the updated versions of the ESX, QBOX and QBCore frameworks.
The installation of the script is very simple. First of all, you will make sure you have the dependencies installed on your server.
Secondly, you are going to download the Key Master FiveM file and then unzip it. Next, you are going to drag the file to your server. When you have completed the process, you are going to go to the server.cfg file and make the following changes:
Then, you must go to the Settings section to customize the hud to your liking. After that, you should remove the old hud scripts such as esx_notify, esx_hud, speedometer or qb-hud.
Notification System: You will have to replace some functions of your framework main script (es_extended or qb-core)
If you are using the jgs-hud
resource and want to ensure compatibility with both jgs-hud
and the default progressbar
, you need to replace the factory QBCore.Functions.Progressbar
function with the updated version below.
This is the original QBCore.Functions.Progressbar
function provided by default:
Replace the above function with the following code. This updated function supports both progressbar
and jgs-hud
resources:
Dual Compatibility: The updated function first checks if jgs-hud
is started and uses it if available. If not, it defaults to progressbar
.
Validation: The validateResource
helper function ensures the required resources (jgs-hud
or progressbar
) are running before executing their respective logic.
Callbacks: The executeCallback
function simplifies the handling of onFinish
and onCancel
logic.
Customization: The DEFAULT_PROGRESS_TYPE
variable allows you to switch between progress types (e.g., bar
or circle
) when using jgs-hud
.
Open the file where the original QBCore.Functions.Progressbar
is defined.
Replace the original function with the updated function provided above.
Ensure both progressbar
and jgs-hud
are properly installed and configured in your server resources.
By making this change, your server will seamlessly support progress bars from both jgs-hud
and progressbar
resources!