From 066987215c5602c9a6f5c5491d4bdb6bc1c2f9c7 Mon Sep 17 00:00:00 2001 From: renzuzu <82306584+renzuzu@users.noreply.github.com> Date: Fri, 23 Jul 2021 09:59:33 +0800 Subject: [PATCH] fix(update player health) --- renzu_hud/client.lua | 48 ++------------------------------------------ 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/renzu_hud/client.lua b/renzu_hud/client.lua index a3903c8a..a7b05796 100644 --- a/renzu_hud/client.lua +++ b/renzu_hud/client.lua @@ -307,55 +307,11 @@ CreateThread(function() Hud.garbage = 0 end Hud.garbage = Hud.garbage + 1 + --print("TEST") + Hud:updateplayer() Wait(2500) end end) - RegisterNUICallback('NuiLoop', function(data, cb) - --updateplayer() - -- if se and not Hud.invehicle then - -- CreateThread(function() - -- Wait(1000) - -- Hud:setStatusEffect() - -- return - -- end) - -- end - -- if wui and not Hud.invehicle then - -- CreateThread(function() - -- Wait(1500) - -- Hud:WeaponStatus() - -- return - -- end) - -- end - - -- if ec then - -- CreateThread(function() - -- Wait(2000) - -- Hud:Compass() - -- return - -- end) - -- end - - -- -- if bs and not Hud.invehicle then - -- -- CreateThread(function() - -- -- BodyLoop() - -- -- return - -- -- end) - -- -- end - - -- if va or wa then - -- Hud:SyncWheelAndSound(va,wa) - -- end - -- -- if wa then - -- -- SyncWheelSetting() - -- -- end - -- if Hud.garbage > 200 then - -- collectgarbage() - -- Hud.garbage = 0 - -- end - -- Hud.garbage = Hud.garbage + 1 - --print(Hud.garbage,"Garbage") - cb(true) - end) end if config.enablestatus or not config.enablestatus and config.statusui == 'normal' then Hud:updateplayer(true)