Skip to content

Commit

Permalink
fix(update player health)
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Jul 23, 2021
1 parent 7f7a389 commit 0669872
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions renzu_hud/client.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 0669872

Please sign in to comment.