Features
Key hint, info pill and text bar
Key hint
The key-and-label hint on the screen. 10 styles in F7 → Draw Text.
local ui = exports['uniqers-uipack'] ui:ShowKeyHint({ key = 'E', text = 'Open the **door**' })ui:ShowKeyHint({ key = 'E', text = 'Open', position = 'right', -- left | right | top | bottom | center (this call only) icon = 'fa-solid fa-door-open', colors = { key = '#04BF9E', border = '#ffffff', text = '#d3d3d3' }, sound = true, -- plays once, when it appears})ui:ShowKeyHint({ text = '[E] Open' }) -- no key: it is read from the textui:ShowKeyHint({ text = 'Restricted zone' }) -- no key in the text either: the label alone ui:UpdateKeyHint({ text = 'Close the door' })ui:PressKeyHint() -- the key flashes, then the hint goesui:HideKeyHint()local open, text = ui:IsKeyHintOpen()Rich labels: **bold**, *italic*, __underline__, ` code , [#ff4848]coloured[/] and the game's ~r~ ~g~ ~b~ ~y~ ~o~ ~p~ ~s~` codes.
Info pill
The round pill with an icon, bottom right. 4 styles in F7 → Draw Info.
exports['uniqers-uipack']:ShowInfoPill({ text = 'You are in a safe zone', icon = 'fa-solid fa-shield' })exports['uniqers-uipack']:UpdateInfoPill({ text = 'You left the safe zone' })exports['uniqers-uipack']:HideInfoPill()Text bar
The bar with a key and a label that rises at the bottom of the screen — the classic "Press E" a script shows while you stand somewhere and hides when you walk away.
It has its own page, F7 → Text UI: 7 styles (Console, Pill, Glass, Neon, Halo, Ribbon, Tab), accent / text / background colours, font, size, side (bottom centre, left, right) and height. Defaults are in Config.DefaultTheme.textui (config.lua).
exports['uniqers-uipack']:ShowTextBar({ key = 'E', text = 'Open the shop', icon = 'fa-solid fa-basket-shopping' })exports['uniqers-uipack']:UpdateTextBar({ text = 'Shop closed' })exports['uniqers-uipack']:HideTextBar()local open, text = exports['uniqers-uipack']:IsTextBarOpen()With no key, the bar shows Config.TextBarKey (E).
Text bar zones
A zone shows the text bar while the player stands in it and does something when the key is pressed there. No loop of your own:
exports['uniqers-uipack']:AddTextBarZone('garage', { coords = vector3(215.8, -810.1, 30.7), radius = 3.0, text = 'Open the garage', key = 'E', event = 'garage:open', -- or serverEvent / command / onPress = function() end})exports['uniqers-uipack']:RemoveTextBarZone('garage')Fixed zones go in shared/areas_config.lua → Config.TextBarZones.
World labels
A text with a key pinned to a spot, an entity or another player. It is drawn by the 3D prompt, so it wears the 3D Interact style each player picked.
exports['uniqers-uipack']:AddWorldLabel('shop', { coords = vector3(25.7, -1347.3, 29.5), text = 'Open the shop', key = 'E', distance = 6.0, reach = 2.0, event = 'shop:open', args = {},})exports['uniqers-uipack']:UpdateWorldLabel('shop', { text = 'Shop closed' })exports['uniqers-uipack']:RemoveWorldLabel('shop') -- above another player's head (server id)exports['uniqers-uipack']:AddWorldLabel('trade_12', { player = 12, text = 'Trade', key = 'E', event = 'trade:open' })Fixed labels go in shared/areas_config.lua → Config.WorldLabels. For prompts with several options, use the 3D prompts directly.
From other scripts
qb-core DrawText, ox_lib showTextUI and ESX.TextUI draw as the UIPack key hint through their bridges.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord