Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

Basic HUD for QBCore: Setup Notes

By Luke

Basic HUD for QBCore
On this page

KM-HUD is a small QBCore resource by Kamuidll, published in the Angelinn142/km-hud repository. It shows four values in a box at the top right of the screen: cash, bank balance, job and job grade. It has no health, hunger or vehicle display. The HUD toggle command is /zshud.

Requirements

The manifest lists qb-core under dependencies and loads @qb-core/shared/locale.lua in its server scripts. Client and server both take the core object with exports['qb-core']:GetCoreObject(), so the resource does not run on ESX or without a framework. There is no SQL file and no item to register. The repository consists of a single upload from 2 October 2024 and has no licence file.

Install

  1. Copy the inner km-hud folder, the one that contains fxmanifest.lua, into the resources directory of your test server.
  2. Add ensure km-hud to server.cfg below ensure qb-core.
  3. Restart the server and join with a character.

Configuration

There is no config file. The labels are Spanish and hardcoded in html/ui.html (Efectivo, Banco, Trabajo, Grado, with the fallbacks Desempleado and Sin rango), so translate them there if your players use another language. Position and look are set in html/style.css, where #hud sits at top: 10px; right: 10px. The toggle notifications "HUD activado" and "HUD desactivado" are in client.lua. The page loads the Roboto font from Google Fonts.

Money reaches the HUD through the QBCore:Player:SetPlayerData event, and a client loop sends cash and bank again every five seconds while the HUD is visible. Job and grade are sent only on QBCore:Client:OnPlayerLoaded and QBCore:Client:OnJobUpdate. The resource covers money and job only; status bars, a speedometer or a layout players can adjust are features of larger HUD scripts for FiveM.

What to check before going live

  • Cash and bank show the right values after joining, after a payment and after a bank transfer.
  • Job and grade change when you set a new job with your admin tools.
  • /zshud hides and shows the box, and the box does not cover your phone, minimap or notifications at your players' screen sizes.
  • After restart km-hud, check whether the job line falls back to Desempleado until the next job change, because the job is not sent again on a resource restart.

Run these checks on a test server first: reading the source cannot show how the HUD behaves with your configuration.

Sources

Original source

  • Employee Chat & Lists for FiveM

    Employee Chat & Lists for FiveM

    Review g-employee-chatandlist setup, framework bridges, employee counts and access checks before enabling job chat on a FiveM server.

  • Smelting Delivery Job System for FiveM

    Smelting Delivery Job System for FiveM

    Configure sm_smelterdelivery for ESX: ore recipes, customer jobs, ox dependencies and payout checks. Review API compatibility before installation.

  • X Character Informations for FiveM

    X Character Informations for FiveM

    X Character Informations is an ESX resource from X SCRIPTS. Its manifest loads oxmysql and the HTML interface. In config.lua, Config.Keybind defaults to F9, Config.Command to charinfo and Config.EnableCommand is true.