Client side

General

ToggleHud

---@param bool? Toggle the hud on or off (if not provided, it will toggle the hud)
exports["tgg-hud"]:ToggleHud(bool)

IsSeatbeltOn

---@return bool
exports["tgg-hud"]:IsSeatbeltOn()

ToggleSeatbeltIndicator

--- NOTE: This export only modifies the seatbelt state visually.
--- Used to toggle show/hide the seatbelt indicator and buckle/unbuckle the seatbelt.
--- And modify the buckled seatbelt color.
---@param toggle boolean - Whether to toggle show/hide the seatbelt indicator.
---@param buckle boolean - Whether to buckle/unbuckle the seatbelt.
---@param color string - The color of the buckled seatbelt.
exports["tgg-hud"]:ToggleSeatbeltIndicator(toggle, buckle, color)
Example usage
--- NOTE: This is only a visual change in the UI. It won't add a harness by default.
--- For example, you can create a custom harness using the export method.
--- That way, the buckled seatbelt icon will be red, indicating that 
--- your harness is on.
exports["tgg-hud"]:ToggleSeatbeltIndicator(true, true, "#fd303a" --red)

Progress Bar

StartProgress

CancelProgress

IsProgressActive

Last updated