From dfdee1dbad3e2142f8e6e4b9b73f9798a97e09db Mon Sep 17 00:00:00 2001 From: Pilpest <69690664+Pilpest@users.noreply.github.com> Date: Mon, 15 Jul 2024 01:22:15 -0400 Subject: [PATCH] fix: Gain stress / Relieve stress net events. (#29) Fixes the stress issue unless planning to move/change the sharedConfig variable. --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index ede234e..b33d0b4 100644 --- a/server/main.lua +++ b/server/main.lua @@ -21,7 +21,7 @@ end) -- Network Events RegisterNetEvent('hud:server:GainStress', function(amount) - if not config.stress.enableStress then return end + if not sharedConfig.stress.enableStress then return end local src = source local player = exports.qbx_core:GetPlayer(src) @@ -45,7 +45,7 @@ RegisterNetEvent('hud:server:GainStress', function(amount) end) RegisterNetEvent('hud:server:RelieveStress', function(amount) - if not config.stress.enableStress then return end + if not sharedConfig.stress.enableStress then return end local src = source local player = exports.qbx_core:GetPlayer(src)