# Loading Screen

The **Vehicle Spawner Script** for FiveM is the one-stop solution for Loading Screen In-Game!

***

<figure><img src="/files/SpMscVNMZqsjkgvXax7q" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/H9g2AntCAx4oGKv635Ee" alt=""><figcaption><p>Socials &#x26; Community Posts Preview</p></figcaption></figure>

<figure><img src="/files/Vl6FtbKKwhRWOlgpX4it" alt=""><figcaption><p>Our Team, Keybinds &#x26; Music Player Preview</p></figcaption></figure>

<figure><img src="/files/JxV8CbPPgt4aeo5gd7OW" alt=""><figcaption><p>Full Loading Screen Preview</p></figcaption></figure>

***

```lua
Config = {}
-----------------------------------------------------------------------------------------------------
-- Developer Config
-----------------------------------------------------------------------------------------------------
Config.Debug = false -- Enable debug prints
-----------------------------------------------------------------------------------------------------
-- Theme Config
-----------------------------------------------------------------------------------------------------
Config.ServerName = "Server Name Here" -- Server name to display in the menu
Config.ServerDescription = "Server Description here!" -- Server description to display in the menu
-----------------------------------------------------------------------------------------------------
-- Menu Config
-----------------------------------------------------------------------------------------------------
Config.Team = { -- Team members to display in the menu
    {
        name = "Team Member 1",
        role = "Their Team Rank",
        image = "https://example.com/TeamMember.png"
    },
    {
         name = "Team Member 2",
        role = "Their Team Rank",
        image = "https://example.com/TeamMember.png"
    },
    {
        name = "Team Member 3",
        role = "Their Team Rank",
        image = "https://example.com/TeamMember.png"
    }
}
Config.Socials = { -- Fallback social media links (used when Config.SocialsURL is empty or unavailable)
    {
        name = "Store",
        url = "https://example.com/store",
        icon = "https://example.com/store.png"
    },
    {
        name = "Discord",
        url = "https://discord.gg/example",
        icon = "https://example.com/discord.png"
    },
    {
        name = "YouTube",
        url = "https://www.youtube.com/@example",
        icon = "https://example.com/youtube.png"
    }
}

-- If you only have 1 video/photo then leave the other 2 blank.
-----------------------------------------------------------------------
Config.PictureBackground = true -- Enable picture background in the menu (if VideoBackground is false)
Config.PhotoURL = "https://example.com/YourURL.png" -- URL of the photo to use as background
Config.PhotoURL2 = "https://example.com/YourURL.png" -- URL of the second photo to use as background
Config.PhotoURL3 = "https://example.com/YourURL.png" -- URL of the third photo to use as background
-----------------------------------------------------------------------
Config.VideoBackground = false -- Enable video background in the menu
Config.UseOriginalAudio = false -- Use original audio from the video (if VideoBackground is true)
Config.VideoURL = "https://example.com/YourURL.mp4" -- URL of the video to use as background
Config.VideoURL2 = "https://example.com/YourURL.mp4" -- URL of the second video to use as background
Config.VideoURL3 = "https://example.com/YourURL.mp4" -- URL of the third video to use as background
-----------------------------------------------------------------------
-- Audio must come from Copyright Free Audio's found on YouTube, to find the ID its in the link example "https://www.youtube.com/watch?v=ID"
Config.Music = { -- Custom music tracks played when Config.UseOriginalAudio is false
    {
        name = "Invincible",
        author = "Deaf Kev",
        id = "J2X5mJ3HDYE" -- YouTube video ID
    },
    {
        name = "On & On",
        author = "Cartoon ft. Daniel Levi",
        id = "8GW6sLrK40k" -- YouTube video ID
    }
}
-----------------------------------------------------------------------
Config.CommunityPosts = { -- Community posts to display in the menu
    {
        title = "Your First Community Post!",
        content = "Enter Your Post Description here",
        image = "https://example.com/yourimage.png"
    },
    {
        title = "Your Second Community Post!",
        content = "Enter Your Post Description here",
        image = "https://example.com/yourimage.png"
    }
}
```

***

{% hint style="success" %}
Downloads

\[PAID | Open Source] [Official Store Link](https://arcticdevlabs.com/package/script?script=Loading-Screen)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arctic-development.gitbook.io/arctic-development/scripts/loading-screen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
