๐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)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)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)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~
It should be used without any loop!
Later you can need to hide it with HideHelpNotification()
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.
text
string
โ
-
Text of help notification
Progress Bar
Starting new progress bar
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