ox_lib functions
Which ox_lib functions get the new look and what to keep in mind.
The add-on has no exports, events or callbacks of its own. Your scripts call ox_lib as usual, and ox_lib sends the data to the new interface. Return values and callbacks are the same as with the original interface.
Supported functions
| ox_lib | Interface |
|---|---|
lib.notify, lib.defaultNotify | Notifications |
lib.progressBar, lib.progressCircle, lib.cancelProgress | Progress bar and circle |
lib.showTextUI, lib.hideTextUI | Text UI |
lib.alertDialog, lib.closeAlertDialog | Alert dialog |
lib.inputDialog, lib.closeInputDialog | Input dialog |
lib.registerContext, lib.showContext, lib.hideContext | Context menu |
lib.registerMenu, lib.showMenu, lib.hideMenu | List menu |
lib.addRadialItem, lib.registerRadial, lib.showRadialMenu, lib.hideRadial | Radial menu |
lib.skillCheck, lib.cancelSkillCheck | Skill check |
lib.setClipboard | Clipboard |
Icons
Icons use Font Awesome Free 6 with the same names as ox_lib, for example icon = 'car'. Images work as a URL, for example nui://...png.
- Pro icons (
fal,fat,fad) are shown as normal solid icons. - Brand icons need their prefix, for example
icon = 'fab fa-discord'oricon = { 'fab', 'discord' }.
Text UI with a key
If the text starts with a key in square brackets, it is shown as a key cap. A separator after it (-, : or |) is removed. Turn it off with textUi.keyBadge = false.
lib.showTextUI('[E] - Open door')Date range as text
A date-range field with returnString = true returns both dates as text, for example { '10/11/2026', '15/11/2026' }. The format comes from format, the default is DD/MM/YYYY.
Radial menu
Besides the center button, Escape closes the radial menu as well. ox_lib gets the same message as with the center button.
