Integrations
Supported frameworks, inventories, interactions, dispatch, voice and phone bridges.
The wrapper bridge is bundled inside electus_trap_phone/bridge; it does not need a separate ensure.
Use config/config.lua for the main integration switches. Wrapper settings that are not already present can be added to the same file.
| Integration | Supported values | Setting |
|---|---|---|
| Framework | auto, esx, qbcore, qbox, custom | Config.Framework |
| Inventory | auto, esx, ox_inventory, qb-inventory, qs-inventory, tgiann-inventory, core_inventory | Config.Inventory |
| Buyer interaction | auto, true, false | Config.Target |
| Notifications | auto, framework, ox_lib, gta | Config.NotificationSystem |
| Menu fallback | auto, ox_lib_menu, ox_lib_context, esx_menu_default, esx_context, qb-menu | Config.MenuSystem |
| Help text | auto, ox_lib, okokTextUI, jg-textui, cd_drawtextui, gta | Config.HelpTextStyle |
| Police dispatch | auto, lb-tablet, ps-dispatch, cd_dispatch, origen_police, qs-dispatch | Config.DispatchSystem |
| Voice calls | pma-voice or a resource with the same call-channel exports | Config.Calls.VoiceResource |
| Phone bridge | lb-phone | Config.Calls.LBPhone |
| Gang zones and progression | electus_gangs | Config.Gangs |
Auto detection
Framework auto detection checks es_extended, qbx_core, then qb-core.
Inventory auto detection checks common inventory resources. Set the exact adapter value manually if your supported inventory is not detected. The script also includes an ESX inventory fallback.
Config.Target = "auto" enables target interaction when qtarget or qb-target is started. Set it to false to use the bundled proximity, help-text and menu interaction instead.
Load order
Start the selected framework, inventory, target, voice, phone, dispatch and gang resources before electus_trap_phone. oxmysql and ox_lib are always required.
Adapter locations
| Area | Files |
|---|---|
| Framework logic | electus_trap_phone/bridge/client/frameworks/* and electus_trap_phone/bridge/server/frameworks/* |
| Inventory logic | electus_trap_phone/bridge/server/inventories/* and electus_trap_phone/server/inventory_compat.lua |
| Target and fallback interaction | electus_trap_phone/bridge/client/functions/entity-interact.lua |
| Police dispatch | electus_trap_phone/bridge/server/dispatch.lua |
| LB Phone bridge | electus_trap_phone/client/phone_bridge.lua and electus_trap_phone/server/phone_bridge.lua |
| Electus Gangs | electus_trap_phone/server/gangs.lua |