From 45f390c177ea9276b168d1d6f4390bc299cd4529 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 4 Oct 2025 22:10:39 +0100 Subject: [PATCH] Update playerfunctions.lua --- shared/playerfunctions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/playerfunctions.lua b/shared/playerfunctions.lua index 87f9b64..768778c 100644 --- a/shared/playerfunctions.lua +++ b/shared/playerfunctions.lua @@ -32,7 +32,7 @@ local hungerThirstFunc = { setStress = function(src, stress) local Player = Core.Functions.GetPlayer(src) - local newStress = Player.PlayerData.metadata.stress + stress + local newStress = Player.PlayerData.metadata.stress - stress newStress = (newStress >= 100.0 and 100.0)or (newStress <= 0 and 0) or newStress Player.Functions.SetMetaData('stress', newStress) TriggerClientEvent('hud:client:UpdateStress', src, newStress) @@ -59,7 +59,7 @@ local hungerThirstFunc = { setStress = function(src, stress) local Player = Core.Functions.GetPlayer(src) - local newStress = Player.PlayerData.metadata.stress + stress + local newStress = Player.PlayerData.metadata.stress - stress newStress = (newStress >= 100.0 and 100.0)or (newStress <= 0 and 0) or newStress Player.Functions.SetMetaData('stress', newStress) TriggerClientEvent('hud:client:UpdateStress', src, newStress)