Merge pull request #44 from PainedPsyche/master

fix for status values reset on login bug (issue #39)
This commit is contained in:
LazarusOfTheFallen
2021-02-01 14:51:54 -06:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -49,6 +49,7 @@ end)
RegisterNetEvent('esx_status:load')
AddEventHandler('esx_status:load', function(status)
TriggerEvent('esx_status:loaded')
for i=1, #Status, 1 do
for j=1, #status, 1 do
if Status[i].name == status[j].name then
@@ -158,7 +159,9 @@ end)
-- Loading screen off event
AddEventHandler('esx:loadingScreenOff', function()
TriggerEvent('esx_status:loaded')
if not isPaused then
TriggerEvent('esx_status:setDisplay', 0.3)
end
end)
-- Update server
+1 -1
View File
@@ -3,7 +3,7 @@
left : 23;
bottom : 21%;
width : 14.5%;
opacity: 0.3;
opacity: 0.0;
}
.status {