mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Merge pull request #44 from PainedPsyche/master
fix for status values reset on login bug (issue #39)
This commit is contained in:
+4
-1
@@ -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
@@ -3,7 +3,7 @@
|
||||
left : 23;
|
||||
bottom : 21%;
|
||||
width : 14.5%;
|
||||
opacity: 0.3;
|
||||
opacity: 0.0;
|
||||
}
|
||||
|
||||
.status {
|
||||
|
||||
Reference in New Issue
Block a user