legacy-lib
Configuration
All LibConfig keys in config.lua, with defaults.
Configuration
All configuration lives in config.lua inside the legacy-lib resource, in the global LibConfig table. This file is edited once and its values are distributed to every dependent Legacy Scripts resource via exports.
| Key | Type | Default | Description |
|---|---|---|---|
LibConfig.AccentColor |
string | false |
'#FF2D78' |
Global solid accent color used across Legacy Scripts UIs (Discord embeds, borders, small icons). Set to false to let each resource fall back to its own default. Should match LibConfig.AccentGradient.from. Exposed via GetAccentColor. |
LibConfig.AccentGradient |
table |
{ from = '#FF2D78', via = '#FF7A3D', to = '#FFC93C', angle = 135 } |
Brand gradient (hex stops + angle in degrees) applied to hero UI elements. from should equal AccentColor. Exposed via GetAccentGradient (adds a ready-to-use CSS css field). |
LibConfig.LogoPath |
string |
'assets/logo.png' |
Path to the logo image, relative to the legacy-lib resource (PNG/JPG/SVG). Exposed via GetLogo as an nui:// path. |
LibConfig.Banking |
string |
'legacy-banking' |
Selects which banking bridge binds. 'auto' picks the first detected resource in priority order legacy-banking > qb-banking > Renewed-Banking. Any other value pins that exact resource name, and no other bridge will bind even if running. |
LibConfig.Locale |
string |
'en' |
Default language for all Legacy Scripts resources ('en' or 'sv' built in). Individual resources may override this in their own config. Read via GetLocale. |
LibConfig.Debug |
boolean |
true |
Prints debug info to console (framework/module/bridge detection, Lib.Print output, locale load counts). Set to false to quiet production logs. |
LibConfig.VersionCheckURL |
string |
'https://raw.githubusercontent.com/LegacyScripts5M/versions/main/versions.json' |
URL of a hosted JSON manifest keyed by resource name, used by CheckVersion. |
Notes
- Keep
AccentColorandAccentGradient.fromin sync — otherwise solid-color UI contexts (embeds/borders) will visually mismatch gradient hero elements. - Do not set
LibConfig.Bankingto'auto'if you rely onlegacy-bossmenuor any feature needing IBANs/SocietyTransfer— only thelegacy-bankingbridge fully implements those;legacy-bankingalso self-provides asRenewed-Bankingin its manifest, so'auto'can let the weakerRenewed-Bankingbridge win the race. - Pinning
LibConfig.Bankingto a resource name that isn't actually installed/running leavesBankingstuck on the no-op default — no other bridge is allowed to bind instead. LibConfig.Localeis only a default; a dependent resource's own config can override it.