Skip to content

Commit

Permalink
stress serverside
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 committed Apr 6, 2024
1 parent e69f141 commit fef0fde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ for alcohol, params in pairs(config.alcoholItems) do
exports.qbx_core:Notify(source, 'You feel like you can handle your liquor better now', 'success')
end

playerState:set('stress', lib.math.clamp(playerState.stress - math.random(params.stressRelief.min, params.stressRelief.max), 0, 100), true)
TriggerClientEvent('hud:client:UpdateNeeds', source, playerState.thirst, sustenance)
end)
end
Expand Down

0 comments on commit fef0fde

Please sign in to comment.