Skip to content

Commit

Permalink
fix: Gain stress / Relieve stress net events. (#29)
Browse files Browse the repository at this point in the history
Fixes the stress issue unless planning to move/change the sharedConfig variable.
  • Loading branch information
Pilpest authored Jul 15, 2024
1 parent 697ac17 commit dfdee1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit dfdee1d

Please sign in to comment.