refactor(es_extended/server/main): use 'esx:playerCrashed' for consistency

This commit is contained in:
Tabby Dev
2025-05-22 19:22:52 +08:00
parent 2cb6531f82
commit 7d3fd27676
+1 -1
View File
@@ -50,7 +50,7 @@ local function onPlayerJoined(playerId)
return DropPlayer(playerId, "there was an error loading your character!\nError code: identifier-missing-ingame\n\nThe cause of this error is not known, your identifier could not be found. Please come back later or report this problem to the server administration team.")
end
if not playerId and ESX.GetPlayerFromIdentifier(identifier) then
if ESX.GetPlayerFromIdentifier(identifier) then
DropPlayer(
playerId,
("there was an error loading your character!\nError code: identifier-active-ingame\n\nThis error is caused by a player on this server who has the same identifier as you have. Make sure you are not playing on the same Rockstar account.\n\nYour Rockstar identifier: %s"):format(