Update loops.lua (#749)

Correction of typographical error.

Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
This commit is contained in:
SuperDaniel
2022-07-23 22:10:56 +01:00
committed by GitHub
parent 38ed80fed2
commit 2120ce506d
+2 -2
View File
@@ -15,8 +15,8 @@ CreateThread(function()
if (QBCore.PlayerData.metadata['hunger'] <= 0 or QBCore.PlayerData.metadata['thirst'] <= 0) and not QBCore.PlayerData.metadata['isdead'] then
local ped = PlayerPedId()
local currentHealth = GetEntityHealth(ped)
local decreaseTreshold = math.random(5, 10)
SetEntityHealth(ped, currentHealth - decreaseTreshold)
local decreaseThreshold = math.random(5, 10)
SetEntityHealth(ped, currentHealth - decreaseThreshold)
end
end
Wait(QBCore.Config.StatusInterval)