Text UI

Library
Updated 2 months ago · v1.3.7

lib.showTextUI

Show persistent text on screen (e.g. interaction prompts).

lua
lib.showTextUI('Press [E] to open', { position = 'bottom-center', icon = 'fa-door-open' })
ParameterTypeRequiredDescription
textstringyesText to display
optionstablenoposition and icon overrides

lib.updateTextUI

Update the text of the currently displayed text UI.

lua
lib.updateTextUI('Press [E] to close')

lib.hideTextUI

Hide the text UI.

lua
lib.hideTextUI()

lib.isTextUIOpen

Check if the text UI is currently visible.

lua
local open = lib.isTextUIOpen()
Was this page helpful?
This page was last updated on 12 March 2026
DIRKSCRIPTS
All you need for your FiveM server.10% off your first order

Unsubscribe any time.

Copyright © 2026 DirkScripts. Not affiliated with or endorsed by Rockstar North or Take-Two Interactive.