mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Merge pull request #220 from douth-c/main
refractor(loadingscreen): updated client files for effect
This commit is contained in:
@@ -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)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Config = {}
|
||||||
|
|
||||||
|
Config.Fade = true
|
||||||
@@ -1,17 +1,20 @@
|
|||||||
|
game 'common'
|
||||||
|
version '1.3.0'
|
||||||
fx_version 'cerulean'
|
fx_version 'cerulean'
|
||||||
games { 'gta5' }
|
|
||||||
|
|
||||||
author 'ESX-Framework'
|
author 'ESX-Framework'
|
||||||
version '1.2.0'
|
|
||||||
|
|
||||||
loadscreen 'index.html'
|
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 {
|
files {
|
||||||
|
'index.html',
|
||||||
'./vid/*.mp4',
|
'./vid/*.mp4',
|
||||||
'./vid/*.webm',
|
'./vid/*.webm',
|
||||||
'./js/index.js',
|
'./js/index.js',
|
||||||
'./css/index.css',
|
'./css/index.css'
|
||||||
'index.html',
|
}
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user