From 2aed49b5eb9d71db5719d4d924a941b1641c9d9e Mon Sep 17 00:00:00 2001 From: MiddleSkillz Date: Thu, 6 May 2021 01:43:11 -0600 Subject: [PATCH] refactor: Remove Stupid LoadingScreenOff thing --- client/main.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/main.lua b/client/main.lua index 40816300..356e03e0 100644 --- a/client/main.lua +++ b/client/main.lua @@ -72,6 +72,9 @@ AddEventHandler('esx:playerLoaded', function(playerData, isNew) -- If they aren't new put that code here. end end) + if Config.EnableHud then + ESX.UI.HUD.SetDisplay(1.0) + end end) RegisterNetEvent('esx:setMaxWeight') @@ -370,10 +373,6 @@ if Config.EnableHud then end end end) - - AddEventHandler('esx:loadingScreenOff', function() - ESX.UI.HUD.SetDisplay(1.0) - end) end function StartServerSyncLoops()