diff --git a/server/main.lua b/server/main.lua index fd9fa68..c8766da 100644 --- a/server/main.lua +++ b/server/main.lua @@ -46,8 +46,9 @@ end AddEventHandler("playerJoining", function(oldId) local src = source - PlayersInfo[src] = tempPlayersInfo[oldId] - tempPlayersInfo[oldId] = nil + local oldTempId = tonumber(oldId) + PlayersInfo[src] = tempPlayersInfo[oldTempId] + tempPlayersInfo[oldTempId] = nil if Config.multiCharacter then return end Wait(3000)