mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fix: esx:loadingScreenOff for compatibility
This commit is contained in:
+3
-1
@@ -50,7 +50,7 @@ AddEventHandler('esx:playerLoaded', function(playerData, isNew)
|
||||
skipFade = false
|
||||
}, function()
|
||||
TriggerEvent('esx:onPlayerSpawn')
|
||||
TriggerEvent('playerSpawned') -- compatibility with old scripts, will be removed soon
|
||||
TriggerEvent('playerSpawned') -- compatibility with old scripts, will be removed soon.
|
||||
TriggerEvent('esx:restoreLoadout')
|
||||
|
||||
Citizen.Wait(4000)
|
||||
@@ -69,6 +69,8 @@ AddEventHandler('esx:playerLoaded', function(playerData, isNew)
|
||||
if Config.EnableHud then
|
||||
ESX.UI.HUD.SetDisplay(1.0)
|
||||
end
|
||||
|
||||
TriggerEvent('esx:loadingScreenOff') -- compatibility with old scripts, will be removed soon.
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx:setMaxWeight')
|
||||
|
||||
Reference in New Issue
Block a user