legacy-lib
Installation
Dependencies and server.cfg setup.
Installation
Dependencies
legacy-lib requires the following resources to be present and started before it:
ox_liboxmysql— required at runtime by several modules (framework offline job queries,Store, banking'slegacy-bankingbridge), not just declared as a manifest dependency.
Optional, auto-detected dependencies
These are not required to be installed, but if present they are auto-detected and bridged to:
- Framework:
es_extended,qb-core,qbx_core(qbx_core takes priority over qb-core if both are running) - Banking:
legacy-banking,qb-banking,Renewed-Banking - Inventory:
ox_inventory,qb-inventory,qs-inventory - Target:
ox_target,qb-target
If none of the resources for a given category are running, legacy-lib falls back to safe no-op default implementations for that category.
server.cfg
ensure ox_lib
ensure oxmysql
# framework / banking / inventory / target resources (whichever you use), e.g:
ensure qb-core
ensure legacy-banking
ensure ox_inventory
ensure ox_target
ensure legacy-lib
# all other Legacy Scripts resources must start AFTER legacy-lib
ensure legacy-billing
ensure legacy-bossmenu
# ...
legacy-lib must start before every other Legacy Scripts resource. Resources that depend on legacy-lib but themselves provide a bridge (e.g. legacy-banking) will always start after it — this is handled automatically via an onResourceStart re-bind, but only for the bridges shipped in this table (qb-banking, Renewed-Banking, legacy-banking).
Configuration file
Copy/edit config.lua in the legacy-lib resource folder — see the Configuration page for all keys. There is no separate install step beyond editing this file; all dependent resources read their settings from it via exports.