Configuration
Configure Legacy Lib settings
All configuration is in the config.lua file in the legacy-lib resource folder.
General Settings#
LibConfig.AccentColor = '#4ADE80'
The global accent color used across all Legacy Scripts UIs. Changing this one value updates the accent color for billing, reports, shops, notify, and progressbar. Set to a hex color string or false to use each resource's default styling.
LibConfig.Locale = 'en'
The default language for all Legacy Scripts resources. Each resource can override this in their own config if needed. Available locales: en (English), sv (Swedish).
LibConfig.Debug = false
When enabled, prints debug information to the server console including framework detection results, module loading, and locale loading. Useful for troubleshooting.
LibConfig.VersionCheckURL = 'https://raw.githubusercontent.com/LegacyScripts5M/versions/main/versions.json'
The URL used to check for updates to Legacy Scripts resources on server startup. Each resource automatically checks this endpoint and prints update notifications to the console.
Full Config Reference#
LibConfig = {}
-- Global accent color for all Legacy Scripts UIs (hex string or false)
LibConfig.AccentColor = '#4ADE80'
-- Default language ('en' or 'sv')
LibConfig.Locale = 'en'
-- Print debug info to console
LibConfig.Debug = false
-- Version check endpoint
LibConfig.VersionCheckURL = 'https://raw.githubusercontent.com/LegacyScripts5M/versions/main/versions.json'
Individual resources still have their own config.lua files for resource-specific settings (like admin groups, bill amounts, report cooldowns, etc.). Only the accent color and locale defaults are centralized in Legacy Lib.