Text UI
Function TextUI(data)
Displays the text-based UI.
Parameters:
data.input(string): The activation key (e.g., "E").data.type(string): The type of interaction (e.g., "press" or "hold").data.desc(string): The description displayed in the UI.
Function HideUI()
Hides the text-based UI.
Exports
The module exports two functions that can be used in other scripts:
exports["script_name"]:TextUI(data)exports["script_name"]:HideUI()
Example Usage
exports["KOJA_HUD"]:TextUI({
input = "E",
type = "press",
desc = "Open door"
})
exports["script_name"]:HideUI()
Related pages
- Creating/Editing Locales — A quick guide on editing locales to your likings!
- Progress Bar — Starts a progress bar and returns a completion status.
- Stress — Stress Management Functions
- Guides — back to the section overview