Skip to the content
Docs

Framework and bridges

On this page4

5CODE Loadouts ships with open bridges for framework, inventory, and notifications.

Framework

lua
Config.Framework = 'auto' -- 'auto' | 'qb-core' | 'qbx_core' | 'esx'

When set to 'auto', the script detects the framework in this order:

  1. qbx_core
  2. es_extended
  3. qb-core

Pin a specific value if you run multiple frameworks side by side.

Inventory

lua
Config.InventorySystem = 'ox_inventory' -- 'qb-inventory' | 'ox_inventory' | 'codem-inventory'

Interaction

lua
Config.InteractionMode = 'qb-target' -- 'qb-target' | 'ox_target' | 'interact'
Config.InteractionDistance = 2.5 -- used by 'interact' mode

'qb-target' and 'ox_target' add an option to the NPC in that target script. 'interact' needs no extra resource: it shows an [E] prompt instead. In all three modes, InteractionDistance is how close the player must be to the NPC. The comment in config.lua names only 'interact', but the target option uses the same distance.

Notifications

lua
Config.NotifySystem = 'ox_lib' -- 'qb' | 'ox_lib' | 'codem-notification' | 'esx'

All bridge files are open and can be edited to plug in custom frameworks, inventories, or notification systems.