diff --git a/[esx]/esx_loadingscreen/client/client.lua b/[esx]/esx_loadingscreen/client/client.lua new file mode 100644 index 00000000..62125c3b --- /dev/null +++ b/[esx]/esx_loadingscreen/client/client.lua @@ -0,0 +1,13 @@ +local ClientLoadESX = false + +AddEventHandler("playerSpawned", function () + if not ClientLoadESX then + ShutdownLoadingScreenNui() + ClientLoadESX = true + if Config.Fade then + DoScreenFadeOut(0) + Wait(3000) + DoScreenFadeIn(2500) + end + end +end) \ No newline at end of file diff --git a/[esx]/esx_loadingscreen/config.lua b/[esx]/esx_loadingscreen/config.lua new file mode 100644 index 00000000..67f639b2 --- /dev/null +++ b/[esx]/esx_loadingscreen/config.lua @@ -0,0 +1,3 @@ +Config = {} + +Config.Fade = true \ No newline at end of file diff --git a/[esx]/esx_loadingscreen/fxmanifest.lua b/[esx]/esx_loadingscreen/fxmanifest.lua index 6604cbaa..b36d6bdd 100644 --- a/[esx]/esx_loadingscreen/fxmanifest.lua +++ b/[esx]/esx_loadingscreen/fxmanifest.lua @@ -1,17 +1,20 @@ +game 'common' +version '1.3.0' fx_version 'cerulean' -games { 'gta5' } - author 'ESX-Framework' -version '1.2.0' loadscreen 'index.html' -loadscreen_manual_shutdown 'yes' -client_script 'client.lua' + +shared_script 'config.lua' + +loadscreen_manual_shutdown "yes" + +client_script 'client/client.lua' files { + 'index.html', './vid/*.mp4', './vid/*.webm', './js/index.js', - './css/index.css', - 'index.html', -} + './css/index.css' +} \ No newline at end of file