GhiaccioScripts

HUD

Installation

Ensure order and framework notes for the HUD.

#1. Copy the resource

Copy ghiaccio_hud into resources/.

#2. Stop any other HUD

At start the resource warns in the console if qb-hud, qbx_hud or esx_hud are running. If you start a category folder (ensure [qb]), removing the line is not enough: move the folder out of resources/.

#3. server.cfg

Start it after the framework (and after oxmysql when you use DbSync):

cfg
ensure oxmysql            # only with Config.DbSync = true
ensure es_extended        # or qb-core / qbx_core
ensure ghiaccio_hud
add_ace group.admin ghiaccio_hud.admin allow    # optional: who may publish the server layout (in addition to Config.AdminGroups)

Restart and read the console: it prints the chosen framework and adapters.

#Framework notes

#ESX Legacy

  • Remove esx_hud and similar.
  • Hunger and thirst come from esx_status. Without esx_status the hunger / thirst widgets stay hidden (the HUD never shows fake values).
  • Cash and bank come from the money / bank accounts. Stress uses the built-in one (Config.Stress).

#QBCore

  • Remove ensure qb-hud. Cash, hunger, thirst and stress come from player metadata.
  • qb-smallresources can stay: its seatbelt is detected as an external seatbelt.

#Qbox

  • Remove qbx_hud. Same structure as QBCore (data from qbx_core).

#Standalone

  • No framework: no cash and no hunger / thirst (those widgets are hidden). Health, armor, stamina, oxygen, weapon, vehicle, compass, clock and minimap work.
  • Config.Framework = 'standalone' forces it.

#Server admins

Admins are players with the ghiaccio_hud.admin ACE or in one of Config.AdminGroups (default { 'admin', 'superadmin' }):

  • ESX: xPlayer.getGroup().
  • QBCore / Qbox: framework permissions (HasPermission).
  • Standalone: ACE groups group.<name>, e.g. add_principal identifier.license:... group.admin.

The permission is always checked by the server.

#First start

In game press F7 or run /hud. See Configuration for the editor, server layout, minimap and presets.