From 0cc99faa5f2588e3877f3507060376c99a29397a Mon Sep 17 00:00:00 2001 From: MiddleSkillz Date: Thu, 6 May 2021 02:28:16 -0600 Subject: [PATCH] fix: esx:loadingScreenOff for compatibility --- client/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 1d36ccdf..b4e64269 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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')