Dependencies
Required
| Resource | Why |
|---|---|
ox_lib | Callbacks, shared helpers, UI utilities |
oxmysql | All database access |
screenshot-basic | Screenshot capture and Discord upload |
| ESX or QBCore/QBox | Player identity + admin checks |
Declared in fxmanifest.lua as:
lua
dependencies {
'ox_lib',
'oxmysql',
'screenshot-basic',
}The framework is not listed as a hard dependency so you can run ESX or QB, but one of them must be started before leno_reports. Setting Config.Framework explicitly chooses a bridge; it does not start the framework for you.
Framework (Config.Framework)
| Value | Behavior |
|---|---|
'auto' (default) | Prefer qbx_core / qb-core → QB; else es_extended → ESX |
'esx' | Force ESX bridge |
'qbcore' | Force QB / QBox bridge |
If nothing is found, the resource logs an error and bridges do not load correctly.
Inventory (Config.Inventory) — optional
Used for nearby / involved player inventory snapshots. With 'auto', the first started resource wins, in this order:
ox_inventorycore_inventoryone_inventorycodem-inventorytgiann-inventoryqs-inventoryhex_4_inventoryqb-inventory(also recognizeslj-inventory/ps-inventory)- else
'custom'
Use the bridge names listed in Config.Inventory when selecting a value explicitly. lj-inventory and ps-inventory are detected aliases for the qb-inventory bridge, not separate bridge names.
Detection selects an adapter; verify that inventory snapshots contain the expected items with your inventory version. CodeM and Tgiann adapters implement the documented full-inventory exports used by report snapshots. See Customization.
Notify (Config.Notify) — optional
| Value | Backend |
|---|---|
'default' (default) | Built-in bridge notify |
'ox_lib' | ox_lib notify |
'okokNotify' | okokNotify |
'qb' | QB notify |
'esx' | ESX notify |
'custom' | Your bridge implementation |
Aliases such as okok, oxlib, qbx are accepted by the bridge init.
Select the backend explicitly; notifications do not use the inventory-style automatic detection. For editable integrations, see Customization.
Screenshot stack
Always loaded via bridge/screenshot/*. Requires:
screenshot-basicstartedConfig.Screenshots.enabled = true(default)leno:discord_images_webhookset for uploads
screenshot-basic remains a manifest dependency even when captures are disabled in configuration.
