Page cover image

❤️uHUD

Installation

  1. You should remove all other huds (including default like esx_hud or qb-hud)

  2. We recommend you to remove esx_cruisecontrol for preventing belt system conflicts

Config

Config Field
Values
Description

Measurement

kmh mph (default kmh)

Units of speed for speedometer.

MS

number (default 100)

How often do speedometer updates in MS. Less value - smoother animation, but worse perfomance.

Framework

autodetect esx qb standalone (default autodetect)

Defining which framework is used.

HungerThirtsUpdate

number (default 1000)

How often do speedometer updates in MS. Don't change if you're using ESX.

Standalone

Place where you can define logic of needs and money if you're using standalone version.

Voice

pma-voice saltychat (default pma-voice)

Selection your voicechat system.

Zones

List of street names.

OnlinePlayers

Getting online players logic.

UI

{
  server = {
     logo = "url",
  },
  colors = {
    primary = '#448FFF',
    success = '#BFFF6F',
    error = '#FF164E',
    warning = '#FFBD6F',
    information = '#0075FF',
    health = '#ff164a',
    food = '#82ff48',
    armor = '#ffd83c',
    oxygen = '#42ffe9',
    water = '#2FB0F8',
    microphoneDisabled = '#888888',
    microphoneEnabled = '#BFFF6F',
  },
  notifications = {
    information = 'Information',
    warning = 'Warning',
    error = 'Error',
    success = 'Successfully',
  }
}

Config of all visual elements. Here you could change colors, logo and notification titles.

Seatbelt

{
  Enable = true,
  Keybind = "B",    
  EjectCheckSpeed = 80, 
  RagdollTime = 1,  
}

Seatbelt system configuration. Enable - turn system on/off. Keybind - button to use belt. EjectCheckSpeed - minimum speed to go through window. RagdollTime - shouldn't be changed.

Engine

{
  Enable = true, 
  Keybind = "G",
}

Engine confuguration. Enable - if false, it will start automatically.

Headlight

string (default H)

Just changes headlight keybind in interface.

Lock

{
  Enable = true,
  Keybind = "U",
  Custom = false, 
  CustomFunction = function
}

Car lock system configuration. Enable - turn system on/off. Keybind - button to use lock.

Custom - if true, you will need to make own logic. CustomFunction - your custom logic.

Client Side Exports

Notify

exports['uvy_hud']:Notify(type, text, time)
Field
Data Type

type

"information", "error", "success", "warning"

text

string

time

number (milliseconds)

SetBeltState

exports['uvy_hud']:SetBeltState(toggle)
Field
Data Type

toggle

boolean

GetBeltState

exports['uvy_hud']:GetBeltState()

Returns: boolean

ToggleHud

exports['uvy_hud']:ToggleHud(toggle)
Field
Data Type

toggle

boolean

GetLockState

exports['uvy_hud']:GetLockState()

Returns: boolean

Server Side Triggers

Notify

TriggerClientEvent("uvy_hud:notify", source, type, text, time)
Field
Data Type

source

number (user id)

type

"information", "error", "success", "warning"

text

string

time

number (milliseconds)

Last updated