Free Loading Screen with random video background
Source code: Github
Features
- Name and Subheader
- Random YouTube background video (out of array)
- Tip messages when loading
Setup
Upload the KindLoading
folder to the resources folder, and add ensure KindLoading
in your config
Config
Open the index.html
file and find the arrays.
Youtube Videos
// CHANGE THIS ARRAY WITH OWN YOUTUBE VIDEO ID
var loadings = [
"PWeDrQLVBPw",
"ewJM7RsFu2A"
]
Messages
// MESSAGES ARRAY
const messages = [
'TIP: This is a tip thingy',
'TIP: Edit this in the index.html file',
]
Example screen
4 Likes
Clean and straight to the point!
Love to see it!
2 Likes
The loading screen never ends for me, I can hear myself walking around and punching but the loading screen stays on. Any way I can fix that?
Wierd. Can you post an issue on Github and provide screenshots or videos
KindCoder-no/FiveM-YoutubeLoadingScreen (github.com)
Add this to a client.lua file
local firstspawn = false
AddEventHandler("playerSpawned", function()
if not firstspawn then
ShutdownLoadingScreenNui()
firstspawn = true
end
end)
That should fix that issue
OR
You could remove loadscreen_manual_shutdown ‘yes’ from the fxmanifest.lua
I fixed it, the video was just too long I guess lol, but alot of the youtube videos are unavailable. Do you kno why that is? Even my own video I uploaded says “Video Unavailable”
I have had the same error. Wierd error, but i do know that if the video contains copyrighted music or video it won’t work.
Does the script have a pause function?
No. But I’m planning to implement it in the future