fix for a bug where satus values were not properly loading database data client side resulting in the values resetting to default on login

This commit is contained in:
PainedPsyche
2020-11-04 20:03:50 +01:00
parent bce4abf4b5
commit a101f4d3dd
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 {