> For the complete documentation index, see [llms.txt](https://mz-studio.gitbook.io/muziscripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mz-studio.gitbook.io/muziscripts.com/loadingscreen/config.md).

# Config

Configuration File\
The configuration file is located at: ui\js\config.js

```js
/**
 * Single source of truth for content data: ui/data_live.json (auto-created on first server start)
 */
window.MZ_CONFIG = {
    // Top brand name
    serverName: 'MZ Roleplay',
    // Brand logo image path; if empty, shows the first letter of serverName
    serverLogo: '',

    background: {
        // Enable image background carousel (when false, video background is shown if video.enable is true)
        enable: false,
        // Carousel mode: 'random' for shuffle | 'sequential' to cycle through images in order
        mode: 'random',
        // Time each background is shown (milliseconds)
        interval: 7000,
        // Crossfade duration when switching backgrounds (milliseconds)
        fadeMs: 1000,
        // Background image filenames, relative to ui/media/image/
        images: [
            'background1.jpg',
            'background2.jpg',
            'background3.jpg',
            'background4.jpg',
            'background5.jpg',
            'background6.jpg',
            'background7.jpg',
            'background8.jpg',
            'background10.jpg',
            'background11.jpg',
            'background12.jpg',
        ],
    },

    video: {
        // Enable video background (takes effect when background.enable is false)
        enable: true,

        // videoSrc supports two formats (use either):
        // 1. Local file (relative to ui/): 'media/video/background.mp4'
        // 2. Direct URL: 'https://example.com/path/video.mp4'
        videoSrc: 'media/video/background.MP4',
        // videoSrc: 'https://example.com/path/video.mp4',
        
     
        
    },

    socialLinks: [
        { id: 'discord', label: 'Discord', url: 'https://discord.gg/example', icon: 'discord' },
        { id: 'store', label: 'Store', url: 'https://example.com/store', icon: 'store' },
        { id: 'tiktok', label: 'TikTok', url: 'https://tiktok.com/@example', icon: 'tiktok' },
        { id: 'twitter', label: 'Twitter', url: 'https://twitter.com/example', icon: 'twitter' },
    ],

    navTabs: [
        { id: 'updates', label: 'Updates', icon: 'star' },
        { id: 'team', label: 'Team', icon: 'users' },
        { id: 'rules', label: 'Rules', icon: 'book' },
        { id: 'keybinds', label: 'Keybinds', icon: 'keyboard' },
    ],

    audioTracks: [// Playback start: 'highlight' jumps to timestamp seconds | 'random' uses randomStartRange below
        {
            title: 'Los Angeles',
            artist: 'Los Angeles',
            src: 'https://pan.vma.cc/pan/v/8c59d39acbb15186ac85fb087b28529d?ext=mp3',
            mode: 'random',
            timestamp: 0,
        },
        {
            title: 'Backwards',
            artist: 'Backwards',
            src: 'media/audio/Backwards.mp3',
            mode: 'highlight',
            timestamp: 45,
        },
        
        // {
        //     title: 'music',
        //     artist: '',
        //     src: 'media/audio/music.mp3',
        //     mode: 'highlight',
        //     timestamp: 45,
        // },
    ],

    // When track mode is 'random', start between min–max (0–1 = % of track length)
    randomStartRange: {
        min: 0.1,
        max: 0.4,
    },

    // Default volume 0–1 (user adjustments are saved to localStorage)
    defaultVolume: 0.15,
    // Shuffle playlist order; when false, tracks play in audioTracks list order
    randomMusicOrder: true,
    // Whether to autoplay music when the loading screen appears
    autoPlayMusic: true,
    // Theme accent color, written to CSS variable --accent
    accentColor: '#58D68D',

    teamPage: {
        // Team page title and subtitle
        title: 'TEAM',
        subtitle: 'Meet The Team Behind MZ Roleplay',
    },


    enter: {
        // Key to enter the game (supports KEY_ALIASES names: SPACE, ENTER, E, F1, etc.)
        key: 'SPACE',
        // Key name shown in the prompt; if empty, uses key
        keyLabel: '',
        // Bottom enter prompt; {key} is replaced with keyLabel or key
        prompt: '[ PRESS {key} TO START ADVENTURE ]',

    
        previewResetDelayMs: 1000,
        curtainFadeMs: 500,
    },
};

```
