Unified UI, utility, and bridge library for Wraith Framework RedM.
w_lib powers every Wraith resource with one shared Red Dead paper-and-ink NUI frame, server/client callbacks, walk-up prompts, particle glow markers, object placer, database helpers, framework/inventory bridges, and live localization (en / ar).
- Unified Interface: Context menus (
lib.registerContext/lib.showContext), input dialogs (lib.inputDialog), alert dialogs (lib.alertDialog), notifications (lib.notify), progress bars, radial menus, skill checks, text UI, and clipboard. - Callbacks & Hooks: Async server/client callbacks (
w.callback.register/w.callback.await). - World Helpers: Native prompt groups (
w.prompt, standardized onJ), particle glow markers (w.glow), blips (w.blip), navigation (w.navigation), and 3D object placer (w.placer). - Database Exports: Consistent
oxmysqlwrappers (DbQuery,DbSingle,DbScalar,DbInsert,DbUpdate,DbTransaction). - Framework & Inventory Bridges:
Fw*,Inv*,Citizen*, andDoor*exports plusw.frameworkcompatibility. - Quiet Console & Locales: One clean startup banner per resource and built-in bilingual localization (
setr w_lib:locale "en"or"ar").
Add @w_lib/init.lua as the first shared script in your resource's fxmanifest.lua:
lua54 'yes'
dependency 'w_lib'
shared_scripts {
'@w_lib/init.lua',
}- FXServer
14901+(rdr3, OneSync enabled) oxmysql
- Developer Docs: https://wraith-core.github.io/docs/#/core/w_lib
- txAdmin Recipe: https://github.com/Wraith-Core/txAdminRecipe
- Credits & Upstream Licenses: See CREDITS.md and
LICENSES/
LGPL-3.0-or-later — see CREDITS.md for upstream attributions (ox_lib, jo_libs).