DirkScripts
Docs
π Dirk Lib
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:
| System | Examples |
|---|---|
| Framework | es_extended, qbx_core, qb-core, pork_core |
| Inventory | dirk_inventory, ox_inventory, qb-inventory, qs-inventory, codem-inventory, core_inventory, tgiann-inventory, origen_inventory |
| Target | ox_target, qb-target, qtarget |
| Interact | sleepless_interact |
| Keys | qb-vehiclekeys, wasabi_carlock, Renewed-Vehiclekeys, and 10+ more |
| Fuel | LegacyFuel, ox_fuel, cdn-fuel, and 8+ more |
