FiveM Guide

How to Install ox_lib on Your QBCore FiveM Server

August 2026 · 4 min read · Stellar AI

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.

What is ox_lib?

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.

Step 1 — Download ox_lib

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.

Download from:

github.com/overextended/ox_lib/releases — always use the latest release, not the source code zip.

Step 2 — Add to your server

Extract the zip and upload the ox_lib folder to your resources directory.

resources/ └── ox_lib/ ├── fxmanifest.lua ├── init.lua └── (other files)

Step 3 — Add to server.cfg

ox_lib must load before any resource that uses it. Add it near the top of your server.cfg, before qb-core if possible.

ensure ox_lib ensure qb-core

Step 4 — Use it in your scripts

Once installed, any script can use ox_lib features without importing anything. Here are the most common ones 👇

Notifications

lib.notify({ title = 'Police Department', description = 'You are now on duty', type = 'success', -- success, error, inform, warning })

Progress bar

lib.progressBar({ duration = 5000, label = 'Searching...', useWhileDead = false, canCancel = true, disable = { move = true, car = true }, })

Context menu

lib.registerContext({ id = 'my_menu', title = 'My Menu', options = { { title = 'Option 1', onSelect = function() end }, { title = 'Option 2', onSelect = function() end }, } }) lib.showContext('my_menu')

Common issues

lib is nil

ox_lib isn't loading before your script. Make sure ensure ox_lib comes before your resource in server.cfg.

Context menu not showing

Check you're calling lib.showContext after lib.registerContext — both are required.

Generate ox_lib scripts automatically

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 →