Reference
Bridges
Make the other scripts on your server draw their notifications, progress bars, menus, forms, skill checks and targets in the UIPack look — without editing them.
What a bridge is
Scripts call the UI resource they were written for by its name: exports['qb-menu']:openMenu(...), exports.ox_lib:notify(...), TriggerClientEvent('okokNotify:Alert', ...). A bridge is a tiny resource with exactly that name that passes every call on to UIPack. The calling script never knows the difference.
The bridges ship inside uniqers-uipack/bridges/. Inside that folder they do nothing — FiveM never starts a resource that sits inside another resource. You install the ones you need in one of two ways.
Install only the bridges for resources your server actually uses.
Kind A — step by step
Example: qb-target.
- Remove the real
qb-targetfromresources(or take itsensureout). Two resources with the same name cannot run. - Move
uniqers-uipack/bridges/qb-targetintoresources, e.g.resources/[uipack-bridges]/qb-target. - qb-target only: if your old
config.luahad zones, models or peds, paste it over the bridge'sconfig.lua. ensureit afteruniqers-uipack.
ensure uniqers-uipackensure qb-targetKind B — ox_lib
Copy every file from bridges/ox_lib/resource/interface/client/ into ox_lib/resource/interface/client/, replacing the files there. Keep the originals. Copy them again after every ox_lib update. Each file works on its own.
Qbox notifies, shows text and runs progress bars through ox_lib, so these files cover Qbox too.
Kind B — qb-core
- Copy
bridges/qb-core/client/drawtext.luaoverqb-core/client/drawtext.lua. - Open
qb-core/client/functions.lua, findfunction QBCore.Functions.Notify(text, texttype, length, icon)and put these lines right under it:
if GetResourceState('uniqers-uipack') == 'started' then local t = type(text) == 'table' and text or { text = text } return exports['uniqers-uipack']:Notify({ text = t.text, title = t.caption, kind = texttype, duration = length, icon = icon }) endThat covers QBCore.Functions.Notify, the QBCore:Notify event and every TriggerClientEvent('QBCore:Notify', ...).
Every bridge
Notifications
Draw text and text UI
Progress bars
Menus and forms
Skill checks and mini games
Every mini game is played as the UIPack skill check and answers in the shape its script expects (a callback, a true/false, or { faults, quit }). The hacking games of ps-ui and qb-minigames become a harder, multi-key skill check.
Target and radial
Which bridges for which server
server.cfg order
Framework and ox_lib first, then uniqers-uipack, then the bridges:
ensure oxmysqlensure ox_libensure qb-coreensure uniqers-uipack # bridgesensure progressbarensure qb-menuensure qb-inputensure qb-targetensure ps-uiConflicts
- Two resources with the same name cannot start. If the real resource is still in
resources, the server says so — remove one of them. - If a real target resource keeps running next to the UIPack target, both react to the key. UIPack notices and prints a warning. Install the bridge instead, or set
RadialConfig.Compat.OnConflict = 'disable'to let the other one own targeting.
Taking UIPack out
Put the original resources back where the bridges were, and the original files back into ox_lib and qb-core. Nothing else on the server was changed.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord