âšī¸TextUI
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()
Last updated