Update for es_extended

Merged Config option into normal code due to it not affecting any compatibility anywhere
This commit is contained in:
ArkSeyonet
2020-05-15 17:14:08 -05:00
parent 1d8a396706
commit ce48aa26c9
3 changed files with 10 additions and 14 deletions
+8 -1
View File
@@ -71,12 +71,15 @@ AddEventHandler('esx:playerLoaded', function(playerData)
TriggerEvent('playerSpawned') -- compatibility with old scripts, will be removed soon
TriggerEvent('esx:restoreLoadout')
Citizen.Wait(3000)
Citizen.Wait(4000)
ShutdownLoadingScreen()
ShutdownLoadingScreenNui()
FreezeEntityPosition(PlayerPedId(), false)
DoScreenFadeIn(10000)
StartServerSyncLoops()
end)
TriggerEvent('esx:loadingScreenOff')
end)
RegisterNetEvent('esx:setMaxWeight')
@@ -379,6 +382,10 @@ if Config.EnableHud then
end
end
end)
AddEventHandler('esx:loadingScreenOff', function()
ESX.UI.HUD.SetDisplay(1.0)
end)
end
function StartServerSyncLoops()