Text UI

Interaction prompts with a key cap.

The text UI is a small prompt for interactions, like "press E to open the garage". It shows in Config.TextUI.Position, center-left by default.

lua
exports.mayo_notify:ShowTextUI('Open garage', { key = 'E' })
exports.mayo_notify:HideTextUI()

Text in the ox_lib and QBCore style, like [E] - Open garage, is split for you: E goes in the key cap and the rest becomes the label. Scripts written for ox_lib's text UI show the same way once you patch ox_lib. See Replacing your notify.

Instead of a key, the prompt can show an icon:

lua
exports.mayo_notify:ShowTextUI('Fishing spot', { icon = 'fish', iconColor = '#0A84FF', position = 'bottom-center' })

Every option is in Client exports.