Merge pull request #220 from douth-c/main

refractor(loadingscreen): updated client files for effect
This commit is contained in:
Mycroft
2022-04-25 19:20:18 +01:00
committed by GitHub
3 changed files with 27 additions and 8 deletions
+13
View File
@@ -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)
+3
View File
@@ -0,0 +1,3 @@
Config = {}
Config.Fade = true
+11 -8
View File
@@ -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'
}