Electus Core Integrations
Configure shared integrations and find the adapters used by Electus scripts.
Set integration overrides in the consuming script's config/config.lua. The core loader uses that script's Config table and fills in missing defaults. Changing electus_core/config/config.lua does not replace the configuration of each consuming script.
Use auto where supported to detect started resources. Start your selected integration resources before electus_core, then start the Electus scripts that use it.
Shared integration settings
Set these keys in the consuming script's config/config.lua. Use the exact adapter names shown below when overriding auto.
| Integration | Supported values | Setting |
|---|---|---|
| Framework | auto, esx, qbcore, qbox, custom | Config.Framework |
| Inventory | auto, esx, ox_inventory, qb-inventory, core_inventory, qs-inventory, tgiann-inventory | Config.Inventory |
| Target mode | true, false, auto | Config.Target |
| Menu system | auto, ox_lib_menu, ox_lib_context, esx_menu_default, esx_context, qb-menu | Config.MenuSystem |
| Notifications | auto, framework, ox_lib, gta | Config.NotificationSystem |
| Help text | auto, ox_lib, okokTextUI, jg-textui, cd_drawtextui, gta | Config.HelpTextStyle |
| Dispatch | auto, lb-tablet, ps-dispatch, cd_dispatch, origen_police, qs-dispatch | Config.DispatchSystem |
| Company money | auto, esx_addonaccount, qb-banking, Renewed-Banking, renewed-banking, qb-management, template | Config.CompanyMoneySystem |
| Dirty money item | auto or your item name | Config.BlackMoneyItem |
| Upload method | auto, Fivemanage, Qbox, LBPresigned | Config.UploadMethod |
The available settings depend on the consuming script. For example, Heists and Graffiti use the upload helpers, while Gangs does not. See Upload service to set up a provider.
ox_lib is an optional integration provider, not a dependency of Electus Core. Install it when you select an ox_lib integration or another resource requires it.
Shared adapter changes
The shared adapters live inside electus_core/loaf_wrapper:
| Area | Files |
|---|---|
| Frameworks | electus_core/loaf_wrapper/client/frameworks/* and electus_core/loaf_wrapper/server/frameworks/* |
| Inventories | electus_core/loaf_wrapper/server/inventories/* |
| Dispatch | electus_core/loaf_wrapper/server/dispatch.lua |
| Menus and help text | electus_core/loaf_wrapper/client/functions/interface/menu.lua and electus_core/loaf_wrapper/client/functions/interface/help-text.lua |
| Interactions | electus_core/loaf_wrapper/client/functions/interact.lua and electus_core/loaf_wrapper/client/functions/entity-interact.lua |
| Uploads | electus_core/loaf_wrapper/server/functions/upload.lua |
| Auto-detection | electus_core/loaf_wrapper/shared/functions/auto-detect.lua |
| Database checker | electus_core/server/database_checker.lua |
Changes to shared adapters affect every resource that loads them. The wrapper is included in electus_core; it does not need a separate loaf_wrapper resource.