CU HUD (GTA VI)
Exports

Exports

Client

  • SetVisible(state: boolean) — show/hide HUD.
  • UpdateHud(data: table) — partial update.
  • SetPreview() — apply Config.Preview.
  • SetVitalsVariant(variant: 'rings' | 'solid') — switch style.
  • SetEditMode(state: boolean) / ToggleEditMode() — layout editor.
  • Notify(data) — toast notifications.
  • Hint(data) — inline hint.
  • SetCinematic(state: boolean) — cinematic mode.

Example:

exports['cu_hud']:UpdateHud({
  player = { cash = 1234, bank = 5678, health = 95, armor = 20 },
  voice  = { talking = true, rangeLabel = 'Shout', rangeMeter = 15.0 },
  vehicle = { hasVehicle = true, speed = 120, rpm = 0.72, gear = 4, fuel = 66, seatbelt = true }
})

Server

  • UpdateHud(target, data: table) — send to one player or an array of players.
exports['cu_hud']:UpdateHud(source, {
  player = { hunger = 40, thirst = 33 },
  server = { online = 64, max = 256 }
})