NX CreativeNX CreativeDocs
Scriptsox_lib

Configuration

The base's rebrand convars and player-facing Customize panel. The addon has none.

The base has no config.lua. Everything else is configured exactly like upstream ox_lib — see the official ox_lib documentation for imports, callbacks, and locales. NX adds two rebrand convars and a player-facing Customize panel.

Rebrand convars

Set these in server.cfg. The accent retunes across every surface — notifications, dialogs, menus, progress bars, skill checks, and text UI — with no code changes.

ox:primaryColorstringdefault: 'oxWhite'

Accent color used across every ox_lib surface. Accepts oxWhite, oxBlue, oxRed, oxTeal, and oxYellow.

ox:primaryShadenumberdefault: 0

Shade step for the chosen accent color, tuning how light or dark the accent reads.

Set them in server.cfg:

setr ox:primaryColor "oxBlue"
setr ox:primaryShade 4

Player customization (base)

The base's Customize panel is client-side and needs no server configuration. From one in-game panel each player sets the UI scale, picks a glass style, and toggles syncing. Choices are stored in their own game cache and restored on the next session. The chosen glass preset syncs across NX resources through a shared preferences store, so menus, the inventory, and targeting all match.

The addon

nx-ox_lib has no configuration at all — no config.lua, no convars, no database. Install it after the base and it attaches itself.

NX Docs