From 4b106d36889e68d8f9090614922859e2a6ad7433 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Sat, 16 Dec 2023 19:46:35 +0100 Subject: [PATCH] fix: PlayersInfo not being set --- server/main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)