ox_lib is one of the most useful resources for QBCore servers — it gives you clean context menus, progress bars, notifications, callbacks and more. This guide shows you how to install it and start using it in your scripts.
ox_lib is a shared library resource that gives FiveM scripts access to a standardised set of UI components and utilities. Instead of every script building its own menus and notifications, they all use ox_lib — which means a consistent look across your whole server.
Common features include context menus, radial menus, progress bars, input dialogs, notifications, and server-side callbacks.
Go to the ox_lib GitHub releases page and download the latest release zip. The resource is called ox_lib and the zip will contain the compiled files ready to use.
github.com/overextended/ox_lib/releases — always use the latest release, not the source code zip.
Extract the zip and upload the ox_lib folder to your resources directory.
ox_lib must load before any resource that uses it. Add it near the top of your server.cfg, before qb-core if possible.
Once installed, any script can use ox_lib features without importing anything. Here are the most common ones 👇
ox_lib isn't loading before your script. Make sure ensure ox_lib comes before your resource in server.cfg.
Check you're calling lib.showContext after lib.registerContext — both are required.
Stellar AI knows ox_lib out of the box. Describe your script and it uses lib.notify, lib.progressBar and lib.registerContext correctly without you having to remember the syntax.
Try Stellar AI free →