๐Ÿ“ŽUsage in other resources

Toggle Display

You can toggle display of whole HUD if you need this (ex. in clothing shop).

-- With export
exports["17mov_Hud"]:ToggleDisplay(state)

-- With client event
TriggerEvent("17mov_Hud:ToggleDisplay", state)
Argument
Type
Optional
Default Value
Explanation

state

boolean

โŒ

-

Is HUD should be displayied?

Hide Radar

You can force rader to be hidden, no matter of player settings.

exports["17mov_Hud"]:HideRadar(state)
Argument
Type
Optional
Default Value
Explanation

state

boolean

โŒ

-

Is radar should be hidden?

Notification

It's showing new notification

-- With export
exports["17mov_Hud"]:ShowNotification(text, type, title, time)

-- With client event
TriggerEvent("17mov_Hud:ShowNotification", text, type, title, time)
Argument
Type
Optional
Default Value
Explanation

text

string

โŒ

-

Text of notification

type

"info" | "error" | "success"

โœ…

"info"

Type of notification

title

string

โœ…

Config.Lang["DefaultNotification"]

Title of notification

time

number

โœ…

string.len(text) * 0.09 + 2000

Time of displaying notification (in miliseconds)

Help Notification

It's start showing of Help Notification.

You can use controls like ~INPUT_CONTEXT~ and colors like ~g~

Argument
Type
Optional
Default Value
Explanation

text

string

โŒ

-

Text of help notification

Hide Help Notification

When you first use ShowHelpNotification() then you need to hide it with this function.

Help Notification (while)

There is also avabile version of Help Notification to use into while loops. It's hiding automatically when stop hooking.

Argument
Type
Optional
Default Value
Explanation

text

string

โŒ

-

Text of help notification

Progress Bar

Starting new progress bar

Argument
Type
Optional
Default Value
Explanation

action

object

โœ…

-

Look bellow

onStart

function

โœ…

-

It will be hooked when progress is starting

onTick

function

โœ…

-

Hooked every frame of progress

onFinish

function

โœ…

-

Hooked when progress has been ended. Returns wasCanceled which are talking is progress has been canceled

Argument action object with default values

Stop Progress

With this function you can stop progress bar in any moment. Then onFinish will return false.

Open Settings

You can open HUD Settings using:

Getting HUD colors

You can get current HUD colors as HEX codes to use them for ex. in chat to made everyting fits.

Or you can also obtain colors with every update from settings with:

Getting HUD settings

You can also get current HUD settings.

You can also obtain settings with every update:

Last updated