Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb authored Jan 14, 2025
2 parents be9b9af + 85be28b commit fbf00cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ AddEventHandler('playerDropped', function(reason)

if not QBX.Players[src] then return end

GlobalState.PlayerCount -= 1
GlobalState.PlayerCount = GetNumPlayerIndices()

local player = QBX.Players[src]
SetPlayerData(player.PlayerData.source, 'lastLoggedOut', nil, os.time())
Expand Down Expand Up @@ -268,4 +268,4 @@ end)
---@diagnostic disable-next-line: param-type-mismatch
AddStateBagChangeHandler('stress', nil, function(bagName, _, value)
playerStateBagCheck(bagName, 'stress', value)
end)
end)

0 comments on commit fbf00cb

Please sign in to comment.