mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Merge pull request #749 from ArkSeyonet/master
Finalize Update To Support Custom Loading Screens and ESX Identity Changes
This commit is contained in:
+4
-12
@@ -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()
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user