You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: [core]/esx_multicharacter/server/modules/functions.lua
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,16 +47,20 @@ function Server:OnConnecting(source, deferrals)
47
47
48
48
ifnotidentifierthenreturndeferrals.done(("[ESX Multicharacter] Unable to retrieve player identifier.\nIdentifier type: %s"):format(Server.identifierType)) end
49
49
50
-
ifESX.GetConfig().EnableDebugornotESX.Players[identifier] thendeferrals.done() end
50
+
ifESX.GetConfig().EnableDebugornotESX.Players[identifier] then
51
+
ESX.Players[identifier] =true
52
+
returndeferrals.done()
53
+
end
51
54
52
55
ifESX.Players[identifier] ==truethen
53
56
returndeferrals.done(
54
57
("[ESX Multicharacter] There was an error loading your character!\nError code: identifier-active\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 account.\n\nYour identifier: %s"):format(identifier)
0 commit comments