mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Update main.lua
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user