r_tophud Configuration
r_tophud config: framework, language, stats, money format, theme, position, size, toggle key and the player edit menu.
All settings live in config.lua. Restart the resource and reconnect after changing it.
Framework
R.Framework = "QBX" -- "ESX" | "QBCore" | "QBX"
R.newESX = true -- set false if you run ESX 1.1 (legacy)
R.CoreName = "es_extended" -- ESX core resource name (change if renamed)
R.QBCoreName = "qb-core" -- QBCore/QBX core resource name (change if renamed)Language
R.Locale = "en" -- "en" | "fi"The texts are in R.Locales at the bottom of config.lua. To add a language, copy the en block,
rename it (for example de) and set R.Locale = "de".
Stats
R.Elements = {
cash = true,
bank = true,
blackMoney = true, -- ESX black_money / QBCore, QBX crypto
job = true,
gang = true, -- QBCore / QBX only
}Turn any stat off with false. Gang and black money also hide on their own when your framework
doesn't have them.
Money Format
R.Currency = {
symbol = "€", -- currency symbol
after = true, -- false -> $1,000 | true -> 1,000$
separator = "", -- thousands separator: "," | " " | "." | "" (none)
}Look
R.Theme = "purple" -- "purple" | "grey" | "red" | "blue" | "green"
R.CustomAccent = "" -- hex like "#9a27ea" to override the theme
R.Position = "top-center" -- "top-center" | "top-left" | "top-right"
R.AnimateChanges = true -- flash money green/red when it changes
R.Scale = 1.0 -- 0.85 small · 1.0 normal · 1.15 large
R.Opacity = 0.85 -- background opacity (0.3 … 1.0)| Option | What it does |
|---|---|
R.Theme | Accent colour preset for the icons. |
R.CustomAccent | Any hex colour. Overrides R.Theme, leave "" to use the preset. |
R.Position | Where the bar sits. |
R.AnimateChanges | Green flash when money goes up, red when it goes down. |
R.Scale / R.Opacity | Default size and background. Players can change their own in the edit menu. |
Edit Menu
R.AllowPlayerEdit = true -- true to allow usage of edit menu
R.EditMenuCommand = "hudmenu" -- command that opens the edit menu
R.EditMenuKey = "" -- optional keybind, e.g. "F7"Players change which stats show, the theme or their own colour, the size and the background. It's
saved on their PC and only changes their own HUD. Reset in the menu goes back to your defaults.
Set R.AllowPlayerEdit = false to give everyone the same HUD.
Toggle
R.ToggleHudCommand = "togglehud"
R.EnableFastKey = true
R.ToggleKey = "F10" -- players can rebind it in FiveM settings
R.KeyText = "Toggle HUD On / Off"Refresh Rate
R.UpdateInterval = 1000 -- ms between HUD data refreshesThe default is fine for most servers.
Interface Colours
The same colour settings as every R-Scripts resource. The defaults are what you see out of the box.
R.UI = {
Accent = "#9a27ea", -- icons, bars, badges and highlights
Primary = "#ffffff", -- main action buttons
PrimaryText = "#000000", -- text on those buttons
NavActive = "", -- selected tab background, "" keeps the default
NavActiveText = "#ffffff", -- selected tab text
}