mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix(es_extended/server/main): Remove player from playersByIdentifier on drop
This commit is contained in:
@@ -95,6 +95,8 @@ local function onPlayerDropped(playerId, reason, cb)
|
||||
Core.SavePlayer(xPlayer, function()
|
||||
GlobalState["playerCount"] = GlobalState["playerCount"] - 1
|
||||
ESX.Players[playerId] = nil
|
||||
Core.playersByIdentifier[xPlayer.identifier] = nil
|
||||
|
||||
resolve()
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user