Update main.lua

This commit is contained in:
GLN
2023-06-21 05:21:03 +02:00
committed by GitHub
parent 042b565ca6
commit 6224c10049
+7 -2
View File
@@ -214,8 +214,13 @@ end
if isNew then
awaitingRegistration[source] = charid
else
TriggerEvent('esx:onPlayerJoined', source, PREFIX..charid)
ESX.Players[GetIdentifier(source)] = true
local identifier = PREFIX..charid .. ':' .. GetIdentifier(source)
if not ESX.GetPlayerFromIdentifier(identifier) then
TriggerEvent('esx:onPlayerJoined', source, PREFIX..charid)
ESX.Players[GetIdentifier(source)] = true
else
DropPlayer(source, 'Your identifier '..identifier..' is already on the server!')
end
end
end
end)