Skip to content

Commit

Permalink
Fixed some stupid mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Switty6 authored Dec 26, 2019
1 parent bd01780 commit fa3d4a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cl_hud.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
local hurt = false
local myHealth = GetEntityHealth(GetPlayerPed(-1))
Citizen.CreateThread(function()
while true do
Citizen.Wait(250)
local myHealth = GetEntityHealth(GetPlayerPed(-1))
SendNUIMessage({
health = myHealth;
})
if myHealth <= 159 then
playerHurt()
elseif hurt and myHealth > 130 then
elseif hurt == true and myHealth > 130 then
playerNotHurt()
end
end
end)

Expand Down

0 comments on commit fa3d4a6

Please sign in to comment.