Legacy Lib
Shared library powering all Legacy Scripts resources
The core library that powers all Legacy Scripts resources. Legacy Lib provides framework abstraction, shared utilities, and centralized configuration so every resource works seamlessly across QBCore, QBox, ESX, and custom frameworks.
Features#
- Framework Abstraction -- Automatically detects and bridges QBCore, QBox (qbx_core), ESX, and custom frameworks
- Inventory Bridge -- Unified inventory API supporting ox_inventory, qb-inventory, and qs-inventory
- Target Bridge -- Unified target interaction API supporting ox_target and qb-target
- Banking Bridge -- Unified job banking API supporting qb-banking and Renewed-Banking
- Centralized Accent Color -- Set your UI accent color once and it applies to all Legacy Scripts resources
- Locale System -- Centralized locale loading with automatic fallback to English
- Discord Webhook Utility -- Send formatted Discord embeds for server event logging
- Version Checker -- Automatic update notifications on server startup
- Multi-Framework Auto-Detection -- No configuration needed; Legacy Lib detects your framework automatically
- Fully Documented -- Every bridge file includes comments explaining how to add custom framework support
Why Legacy Lib?#
Legacy Lib replaces the need for community_bridge by providing a focused, optimized bridge layer specifically designed for Legacy Scripts. It only includes the modules that Legacy Scripts actually uses, resulting in a lighter and more maintainable codebase.
How It Works#
When your server starts, Legacy Lib automatically detects which framework, inventory, target, and banking resources are running. It loads the appropriate bridge for each, creating a unified API that all Legacy Scripts resources use. You never need to configure which framework you're running -- it just works.