diff --git a/client/main.lua b/client/main.lua index 84e024cd..1ab413e2 100644 --- a/client/main.lua +++ b/client/main.lua @@ -79,9 +79,7 @@ AddEventHandler('esx:playerLoaded', function(playerData) StartServerSyncLoops() end) - if Config.UseESXIdentity then - TriggerEvent('esx:loadingScreenOff') - end + TriggerEvent('esx:loadingScreenOff') end) RegisterNetEvent('esx:setMaxWeight') @@ -385,15 +383,9 @@ if Config.EnableHud then end end) - if Config.UseESXIdentity then - AddEventHandler('esx:loadingScreenOff', function() - ESX.UI.HUD.SetDisplay(1.0) - end) - else - AddEventHandler('esx:onPlayerSpawn', function() - ESX.UI.HUD.SetDisplay(1.0) - end) - end + AddEventHandler('esx:loadingScreenOff', function() + ESX.UI.HUD.SetDisplay(1.0) + end) end function StartServerSyncLoops() diff --git a/config.lua b/config.lua index fce1b345..8bf546f3 100644 --- a/config.lua +++ b/config.lua @@ -14,6 +14,5 @@ Config.EnableHud = true -- enable the default hud? Display current jo Config.MaxWeight = 24 -- the max inventory weight without backpack Config.PaycheckInterval = 7 * 60000 -- how often to recieve pay checks in milliseconds Config.EnableDebug = false -Config.UseESXIdentity = false -- Enable support for ESX Identity features, and support for custom loading screens Config.IncompatibleResourcesToStop = {}