Merge pull request #749 from ArkSeyonet/master

Finalize Update To Support Custom Loading Screens and ESX Identity Changes
This commit is contained in:
Jérémie N'gadi
2020-05-16 10:21:22 +02:00
committed by GitHub
2 changed files with 4 additions and 13 deletions
+4 -12
View File
@@ -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()
-1
View File
@@ -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 = {}