From a101f4d3ddac77941a246319c9115e386e5f0a21 Mon Sep 17 00:00:00 2001 From: PainedPsyche Date: Wed, 4 Nov 2020 20:03:50 +0100 Subject: [PATCH] fix for a bug where satus values were not properly loading database data client side resulting in the values resetting to default on login --- client/main.lua | 5 ++++- html/css/app.css | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index f903674e..178073de 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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 diff --git a/html/css/app.css b/html/css/app.css index d92580fa..8b2aacf5 100644 --- a/html/css/app.css +++ b/html/css/app.css @@ -3,7 +3,7 @@ left : 23; bottom : 21%; width : 14.5%; - opacity: 0.3; + opacity: 0.0; } .status {