🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page
  • Properties:
  • Static Functions:

Was this helpful?

  1. Game Classes

Hud

PreviousGameSliceNextMetrics

Last updated 2 years ago

Was this helpful?

Properties:

Name
Type
Description

ShouldRender

boolean

If hud should be rendered.

Static Functions:

.ShowActionButton

Hud.ShowActionButton(text: string, buttontype: UIButton, actiontype: string)

Name
Type
Description

text

string

-

buttontype

-

actiontype

string

-

.ShowActionButtonOneFrame

Hud.ShowActionButtonOneFrame(text: string, buttontype: UIButton, actiontype: string)

Name
Type
Description

text

string

-

buttontype

-

actiontype

string

-

.HideActionButton

Hud.HideActionButton()

.SetMissionHealthVisible

Hud.SetMissionHealthVisible(visible: boolean)

Name
Type
Description

visible

boolean

-

.SetMissionHealthCaption

Hud.SetMissionHealthCaption(text: string)

Name
Type
Description

text

string

-

.SetMissionHealthValue

Hud.SetMissionHealthValue(value: float)

Name
Type
Description

value

float

(0.0 to 100.0)

.SetMissionHealthSuccess

Hud.SetMissionHealthSuccess(success: boolean)

Name
Type
Description

success

boolean

-

Makes the health progress shine at the end of line when set to true.

.SetMissionProgressVisible

Hud.SetMissionProgressVisible(visible: boolean)

Name
Type
Description

visible

boolean

-

.ClearMissionProgress

Hud.ClearMissionProgress()

.SetMissionProgressState

Hud.SetMissionProgressState(state: MissionProgressState, slot: integer)

Name
Type
Description

state

-

slot

integer

(0 to 3)

.SetMissionProgressText

Hud.SetMissionProgressText(text: string, slot: integer)

Name
Type
Description

text

string

-

slot

integer

(0 to 3)

.ShowHintText

Hud.ShowHintText(text: string, time: float)

Name
Type
Description

text

string

-

time

float

-

.HideHintText

Hud.HideHintText()

.ShowInfoPopup

Hud.ShowInfoPopup(text: string, time: float)

Name
Type
Description

text

string

-

time

float

-

Does same thing as ShowHintText, but has priority to show if and if called at the same time with ShowHintText then it will show first InfoPopup and then later the HintText.

.HideInfoPopup

Hud.HideInfoPopup()

đŸ—ƒī¸
đŸ“ē
UIButton
UIButton
MissionProgressState
Preview
Preview
Preview