Skip to main content
Complete installation and configuration reference for fnx-pvp-hud.
fnx-pvp-hud displays player health, armor, server ID, and optional server logos.

First installation

ensure community_bridge
ensure fnx-pvp-panel
ensure fnx-pvp-hud
This resource does not use a database. You do not need to import an SQL file.

First setup

Edit settings/public/client/cfg.lua, choose the visible elements, set their positions, and replace the example logo. Restart the resource after saving. HUD positions are resolved by the NUI from the config. Supported anchors are top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, and bottom-right; every block also supports an { x, y } offset.

Client configuration

Main settings

KeyTypeDefaultExplanation
ClientCfg.Hud.enabledbooleantrueMaster switch. When false, no HUD section is displayed.
ClientCfg.Hud.updateIntervalnumber250Milliseconds between value updates. Lower values update faster but run more often.

Vitals

KeyTypeDefaultExplanation
ClientCfg.Hud.vitals.enabledbooleantrueShows the complete vitals block.
ClientCfg.Hud.vitals.positionstring"bottom-left"Screen anchor used by the vitals block.
ClientCfg.Hud.vitals.offset.xnumber24Horizontal distance in pixels from the anchor.
ClientCfg.Hud.vitals.offset.ynumber24Vertical distance in pixels from the anchor.
ClientCfg.Hud.vitals.showIdbooleantrueDisplays the player’s server ID.
ClientCfg.Hud.vitals.showHealthbooleantrueDisplays health.
ClientCfg.Hud.vitals.showArmorbooleantrueDisplays armor.
KeyTypeDefaultExplanation
ClientCfg.Hud.logo.enabledbooleanfalseEnables the corner logo.
ClientCfg.Hud.logo.positionstring"top-right"Screen anchor used by this logo.
ClientCfg.Hud.logo.offset.xnumber24Horizontal offset in pixels.
ClientCfg.Hud.logo.offset.ynumber24Vertical offset in pixels.
ClientCfg.Hud.logo.textstring"FENIX"Text used when no image is configured.
ClientCfg.Hud.logo.imagestring or nilnilOptional image source. Leave nil to use text; local assets must be accessible to the NUI.
ClientCfg.Hud.logo.widthnumber104Logo width in pixels.
ClientCfg.Hud.logo.heightnumber42Logo height in pixels.
KeyTypeDefaultExplanation
ClientCfg.Hud.centerLogo.enabledbooleanfalseEnables the separate center logo.
ClientCfg.Hud.centerLogo.positionstring"top-center"Screen anchor used by the center logo.
ClientCfg.Hud.centerLogo.offset.xnumber0Horizontal offset in pixels.
ClientCfg.Hud.centerLogo.offset.ynumber24Vertical offset in pixels.
ClientCfg.Hud.centerLogo.textstring"FENIX"Fallback text when image is nil.
ClientCfg.Hud.centerLogo.imagestring or nilnilOptional center-logo image source.
ClientCfg.Hud.centerLogo.widthnumber140Logo width in pixels.
ClientCfg.Hud.centerLogo.heightnumber54Logo height in pixels.
ClientCfg.Hud.centerLogo.opacitynumber0.18Opacity from 0 (invisible) to 1 (opaque).

Server configuration

This resource has no settings/public/server/cfg.lua.

Shared files

The private shared file initializes internal values. It has no customer-facing keys.

Theme system

Colors are CSS strings. Hex values require #; transparent colors can use rgba(). Radii are pixels and fonts are CSS font-family lists.
KeyDefaultExplanation
ClientCfg.Theme.colors.panelBg#0b0b10Main HUD background.
ClientCfg.Theme.colors.panelBgStrong#070709Darker background variant.
ClientCfg.Theme.colors.accent#f97316Primary highlight.
ClientCfg.Theme.colors.accentStrong#fb923cStrong active highlight.
ClientCfg.Theme.colors.text#f5f5f5Primary text.
ClientCfg.Theme.colors.mutedTextrgba(245,245,245,0.62)Secondary text.
ClientCfg.Theme.colors.surfacergba(10,10,10,0.78)Standard internal surface.
ClientCfg.Theme.colors.surfaceStrongrgba(10,10,10,0.94)More opaque internal surface.
ClientCfg.Theme.colors.borderrgba(255,255,255,0.10)Borders and separators.
ClientCfg.Theme.colors.danger#ef4444Health or danger accent.
ClientCfg.Theme.colors.armor#60a5faArmor accent and meter.
ClientCfg.Theme.radii.card8Card radius in pixels.
ClientCfg.Theme.radii.control8Control radius in pixels.
ClientCfg.Theme.radii.pill999Fully rounded pill radius.
ClientCfg.Theme.fonts.bodySpace Grotesk...Normal-text font stack.
ClientCfg.Theme.fonts.displayBebas Neue...Heading font stack.

Developer info

The current public client file exposes no exports or public events. Configure the HUD through ClientCfg.Hud; direct NUI messages are internal.

Common issues

Nothing is visible

Check the start order, ClientCfg.Hud.enabled, and the individual section’s enabled key.

The logo displays text

image is nil by default. Supply a valid NUI-accessible image; otherwise text is used.

A block is outside the screen

Restore the default position and offsets, then test custom values on multiple aspect ratios.

Updates are delayed

Reduce updateInterval moderately. Extremely low values create unnecessary client work.

Theme changes are ignored

Restart the resource and confirm every CSS color is a quoted Lua string with a valid format.

Common folders

PathWhat it is for
fxmanifest.luaFiveM manifest. It loads the resource files in the correct order.
settings/public/client/cfg.luaClient settings that server owners are expected to edit.
settings/public/server/cfg.luaServer settings that server owners are expected to edit.
settings/private/**/_cfg.luaInternal/default settings. Do not edit unless you are modifying the resource itself.
client/public/*.luaPublic client API files and safe integration files.
client/private/*.luaInternal client runtime code.
server/public/*.luaPublic server API files and exports.
server/private/*.luaInternal server runtime code.
shared/public/*.luaShared public data or integration constants.
shared/private/*.luaShared internal helpers loaded by the resource.
locales/*.jsonLocales for ui and game.
web/dist/Built NUI files used in-game. Do not edit these by hand.
fnx-pvp-hud/
|-- client/
|   |-- private/
|   |   \-- _main.lua
|   \-- public/
|       \-- main.lua
|-- locales/
|   \-- *.json
|-- settings/
|   |-- private/
|   |   \-- client/
|   |       \-- _cfg.lua
|   \-- public/
|       \-- client/
|           \-- cfg.lua
|-- shared/
|   \-- private/
|       \-- _main.lua
|-- web/
|   \-- dist/
\-- fxmanifest.lua