Features
Dialogs, menus and skill check
Every one of them waits and returns the answer, so a script reads top to bottom. Colours, font, size, corner rounding and where menus open are set in F7 → Dialogs & Menus. The admin panel's UIs section builds each of them, tries it on you and copies its code.
Input form
local values = exports['uniqers-uipack']:InputDialog('Bank transfer', { { type = 'number', label = 'Amount', icon = 'dollar-sign', required = true, min = 1 }, { type = 'input', label = 'Note', placeholder = 'Rent', description = 'Shown on the receipt' }, { type = 'select', label = 'Account', options = { { value = 'bank', label = 'Bank' }, { value = 'cash', label = 'Cash' } } }, { type = 'checkbox', label = 'Send a receipt', checked = true },}, { allowCancel = true, size = 'md', icon = 'building-columns' }) if not values then return end -- closed without answeringprint(values[1], values[2], values[3], values[4])Rows also take label, description, placeholder, icon, default, required, disabled. Required and min / max are checked before the form closes.
The qb-input shape works too:
local data = exports['uniqers-uipack']:ShowInput({ header = 'Bill a player', submitText = 'Send', inputs = { { text = 'Server ID', name = 'id', type = 'number', isRequired = true }, { text = 'Amount', name = 'amount', type = 'number', isRequired = true } },})if data then print(data.id, data.amount) endConfirm window
if exports['uniqers-uipack']:ConfirmDialog('Sell vehicle', 'Sell it for **$12,000**?') then -- yesend local answer = exports['uniqers-uipack']:AlertDialog({ header = 'Rules', content = 'Read the **rules** before you play.', centered = true, cancel = false, labels = { confirm = 'I understand' },}) -- 'confirm' | 'cancel'Context menu
Mouse or arrow keys. Submenus, progress bars, read-only rows, metadata on hover.
exports['uniqers-uipack']:RegisterContext({ id = 'garage', title = 'Garage', options = { { title = 'Take out', icon = 'car', description = 'Pick a vehicle', menu = 'garage_list' }, { title = 'Fuel', progress = 64, colorScheme = '#22c55e', readOnly = true }, { title = 'Store', icon = 'warehouse', onSelect = function(args) ... end }, { title = 'Pay fine', serverEvent = 'garage:payFine', args = { id = 4 } }, { title = 'Info', metadata = { Owner = 'John', Plate = 'UQ 123' } }, },})exports['uniqers-uipack']:ShowContext('garage')Also: HideContext(onExit), GetOpenContextMenu(). The qb-menu shape: OpenMenu(items), CloseMenu(), ShowHeader(items).
List menu
Keyboard only; the player keeps walking. Left / right change a value, Enter selects.
exports['uniqers-uipack']:RegisterMenu({ id = 'outfits', title = 'Outfits', position = 'top-left', options = { { label = 'Hat', values = { 'None', 'Cap', 'Beanie' } }, { label = 'Glasses', checked = false }, { label = 'Save', icon = 'floppy-disk', close = false }, }, onSideScroll = function(selected, scrollIndex, args) end, onCheck = function(selected, checked, args) end, onClose = function() end,}, function(selected, scrollIndex, args) -- Enter on a rowend)exports['uniqers-uipack']:ShowMenu('outfits')Also: HideMenu(onExit), GetOpenMenu(), SetMenuOptions(id, options, index).
Skill check
if exports['uniqers-uipack']:SkillCheck({ 'easy', 'medium', { areaSize = 30, speedMultiplier = 2 } }, { 'w', 'a', 's', 'd' }) then -- every round hitendOne round per difficulty, each asking for one of the keys. Also SkillCheckActive() and CancelSkillCheck().
From other scripts
ox_lib's dialogs and menus, qb-menu, qb-input, esx_context, esx_menu_default, qb-skillbar, qb-lock, qb-minigames and ps-ui all open these through their bridges.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord