From 2120ce506d185868555cc25b50a56c5ce3156f19 Mon Sep 17 00:00:00 2001 From: SuperDaniel <56658457+TransitNode@users.noreply.github.com> Date: Sat, 23 Jul 2022 22:10:56 +0100 Subject: [PATCH] Update loops.lua (#749) Correction of typographical error. Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com> --- client/loops.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/loops.lua b/client/loops.lua index 925e588..19b9c6d 100644 --- a/client/loops.lua +++ b/client/loops.lua @@ -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)