Docs/Library

Dirk Lib

Library
Updated 2 months ago Β· v1.3.7

dirk_lib is the shared foundation for all DirkScripts resources. It automatically detects your framework, inventory, targeting, and other resources, then provides a single consistent API that works across all of them.


Why dirk_lib?

  • Zero config β€” Auto-detects ESX, QBCore, QBX, and 60+ other resources on startup.
  • One API β€” Write lib.inventory.addItem(...) and it works with ox_inventory, qb-inventory, dirk_inventory, and more.
  • Lazy-loaded modules β€” Only loads what you use. No bloat.
  • Built-in UI β€” Notifications, context menus, progress bars, dialogs, input prompts, text UI, and more.
  • In-game config β€” JSON Schema-based settings system with database persistence, change history, and NUI admin panels.
  • Developer tools β€” Polygon creator, entity placer, position grabber, model viewer β€” all via /devtools.
  • Cache system β€” Auto-tracks player ped, vehicle, weapon, job, gang, and more with change listeners.
  • ox_lib compatible β€” Drop-in replacement for ox_lib exports. Scripts using ox_lib work without changes.

Supported Resources

dirk_lib bridges across 14 systems with support for 60+ resources including:

SystemExamples
Frameworkes_extended, qbx_core, qb-core, pork_core
Inventorydirk_inventory, ox_inventory, qb-inventory, qs-inventory, codem-inventory, core_inventory, tgiann-inventory, origen_inventory
Targetox_target, qb-target, qtarget
Interactsleepless_interact
Keysqb-vehiclekeys, wasabi_carlock, Renewed-Vehiclekeys, and 10+ more
FuelLegacyFuel, ox_fuel, cdn-fuel, and 8+ more

Full list of supported resources β†’

Was this page helpful?
This page was last updated on 12 March 2026
DIRKSCRIPTS
All you need for your FiveM server.10% off your first order

Unsubscribe any time.

Copyright Β© 2026 DirkScripts. Not affiliated with or endorsed by Rockstar North or Take-Two Interactive.