This is a standardized dependency library designed to bridge the gap between resources, frameworks (ESX, QBCore) and inventory systems (Ox, QS, Core). It also simplifies and adds additional helper functions to make creating of new scripts as easy and quick as possible.
- Framework Agnostic: Auto-detects ESX and QBCore on startup.
- Inventory Integration: Built-in support for Ox Inventory, QS Inventory, and default framework inventories.
- Performance: Utilizes a singleton pattern to reduce memory usage and code duplication across scripts.
- Unified Notifications: Automatically routes notifications through Ox Lib (if available) or native framework notifications.
- Download the div_lib resource.
- Extract the folder into your server's resources directory.
- Add the following line to your server.cfg. It is crucial that this starts BEFORE any script that depends on it.
ensure ox_lib # If you use it
ensure qb-core # OR ensure qb-core
ensure div_lib # <--- MUST LOAD HERE
ensure [my_scripts]
- ox_inventory
- tgiann-inventory
- ak47_inventory
- codem-inventory
- core_inventory
- ps-inventory
- qs-inventory
- origen_inventory
- chezza
All framework integrated inventories also are supported.
- ox_target
- qtarget
- qb-target
- 3D text
- GTA V native hint
- ox_lib
- codem-notification
- okokNotify
- mythic_notify
- 17mov_Hud
All framework integrated notification systems also are supported.
- oxmysql
- mysql-async
- ghmattimysql
This library is provided as a dependency for my paid/free resources. You are free to view and edit the code for your server's needs, but you may not claim it as your own or resell it.
If you're a developer and wish to improve upon div_lib or add an integration to your own custom framework, inventory, or another kind of resource. Feel free to commit pull requests. We will review them and merge if we deem the changes as valuable.