Dependencies
Required
- ml_bridge: Framework, inventory and target abstraction. Every player, item and notification call routes through it.
- ox_lib: Model loading, points, DUI, text UI and callbacks.
- oxmysql: Persistence for cage traps. Required even when persistence is disabled, since the resource loads the MySQL module at start.
Framework
server.cfg
1ensure qb-core
2ensure oxmysql
3ensure ox_lib
4ensure ml_bridge
5ensure ml_trapserver.cfg
1ensure qbx_core
2ensure oxmysql
3ensure ox_lib
4ensure ml_bridge
5ensure ml_trapserver.cfg
1ensure es_extended
2ensure oxmysql
3ensure ox_lib
4ensure ml_bridge
5ensure ml_trapserver.cfg
1ensure oxmysql
2ensure ox_lib
3ensure ml_bridge
4ensure ml_trapAuto Detection
ml_bridge detects your framework automatically. No manual setup.
Optional
Inventory
- Any inventory supported by
ml_bridge: Holds the trap, bait and repair items, and provides the item images shown in the panel. The trap and bait items are consumed and refunded through the bridge.
Target
- Any target supported by
ml_bridge: Used whenConfig.InteractionMethod = 'target'to attach the interaction option to each trap prop. SetConfig.InteractionMethod = 'textui'to use a key press instead and skip the target dependency.