Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
local hp = false
function main()
while true do wait(0)
if getCharHealth(playerPed) >= 10 and 15 <= getCharHealth(playerPed) and not hp then
hp = true
end
if getCharHealth(playerPed) < 10 and hp then
--code
end
end
end
local hp = false
function main()
while true do wait(0)
if getCharHealth(playerPed) >= 10 and 15 <= getCharHealth(playerPed) and not hp then
hp = true
end
if getCharHealth(playerPed) < 10 and hp then
--code
end
end
end
local isLowHp = false
function main()
while true do wait(0)
if getCharHealth(playerPed) < 10 and not isLowHp then
isLowHp = true
-- code
elseif getCharHealth(playerPed) >= 10 and isLowHp
isLowHp = false
end
end
end