ESX/QB permission group allowed to run the style dump command.
MBT.GetStyleCommand
string
"getDefHudStyle"
Name of the admin command that outputs the current element positions as a DefaultStyle table (copied to clipboard). Paste the result into MBT.Preferences.DefaultStyle to change the default layout for all players.
Maximum health values for male and female freemode peds. Used to normalise the health bar to 0–100%. If your server uses custom health values, update these to match.
"Image" for static images and GIFs; "Video" for WebM files.
Size
number
120
Logo size in pixels.
DefaultStyle
Each key maps to an element's default position as { x, y } pixels from the anchor origin. The anchor entry is { left, top, right, bottom } and defines the drag area bounds.
To get the correct values for your layout, use the /getDefHudStyle admin command after positioning elements with /hudmenu.
Other fields
Field
Type
Default
Description
MicrophoneTalkingColor
string
"#4ee70b"
CSS hex colour the microphone icon turns when the player is actively talking.
UseStress
boolean
false
Set to true if your server has a stress system; enables the stress bar and activates MBT.StatusRetriever.getStress.
Current hunger percentage. Default preset uses esx_status.
getThirst
number 0–100
Current thirst percentage. Default preset uses esx_status.
getMicStatus
—
Used only when MBT.VoiceHandler = false. Send updateMicrophoneStatus manually inside this function.
getStress
number 0–100
Used only when MBT.Preferences.UseStress = true. Return the current stress level from your stress system.
Weapons Table
MBT.Weapons = { [453432689] = { Type = 'handguns', Name = 'pistol' }, -- ...}
Maps GTA weapon hashes to their display type and icon name. The NUI uses Name to look up the weapon image from html/assets/weapons/<name>.png. The script ships with all vanilla GTA V weapons pre-configured. To add a custom weapon:
MBT.Weapons[YOUR_WEAPON_HASH] = { Type = 'handguns', Name = 'myweapon' }
Then place html/assets/weapons/myweapon.png in the assets folder.
Type value
Description
'melee'
Hides ammo counters; only the weapon icon is shown.
MBT.HandleNotify = function(data) -- data.text — key in MBT.Labels -- data.icon — Font Awesome class string -- data.type -- "info" / "error" / "success"end
Replace the body with your server's notification system. Called for HUD-internal messages (settings saved, HUD reset, etc.). The default implementation uses ESX.ShowNotification / QBCore.Functions.Notify.
Labels
MBT.Labels = { ["must_open"] = "HUD must be opened to open the settings menu", ["hud_refreshed"] = "HUD has been refreshed", ["settings_saved"] = "The settings have been saved!", ["hud_reset"] = "HUD has been reset!", ["check_console"] = "Settings have been generated and are available on your OS clipboard [CTRL-V]",}
All visible notification strings. Edit to translate or customise the messages shown by the HUD system.