A lightweight, customizable HUD for FiveM servers with multi-framework support.
Works with es_extended (with esx_status), qb-core, ox_core and in standalone.
Multi-framework Support:
Status Indicators:
Vehicle Information:
Performance Optimized:
Status indicators:
g4_hud
folder in your FiveM server's resources directoryensure g4_hud
to your server.cfgconfig.lua
file to meet your needsAll configuration options are available in the config.lua
file:
Config = {
-- General settings
isUnitMetric = true, -- false for imperial units (mph)
-- Update intervals (milliseconds)
updateInterval = 500, -- Default update interval
vehicleUpdateInterval = 100, -- Update interval when in vehicle
-- Display settings
hideInPauseMenu = true, -- Hide HUD when pause menu is active
-- Custom colors
colors = {
health = "#FF0000",
armour = "#0000FF",
hunger = "#FFA500",
thirst = "#00FFFF",
stress = "#800080",
energy = "#FFFF00"
},
}
Automatically works with ox status events. Shows all status values provided by the framework.
Works with esx_status events to display hunger and thirst values.
Utilizes player metadata to display hunger, thirst, and stress values.
When no framework is detected, the HUD will show basic information:
The HUD interface can be customized by modifying the UI files in the ui/src
directory. The UI is built with Svelte 5 and Tailwind CSS for modern, responsive design and efficient reactivity. After making changes, you'll need to rebuild the UI:
cd ui
pnpm install
pnpm run build