mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
fix: getting identifiers on resource start
This commit is contained in:
@@ -77,13 +77,13 @@ local function checkDiscordIdentifier(identifiers)
|
||||
end
|
||||
|
||||
AddEventHandler("onResourceStart", function(name)
|
||||
if name ~= resourceName or Config.discordBotToken == "false" or Config.discordGuildId == "false" then return end
|
||||
if name ~= resourceName then return end
|
||||
for _, playerId in ipairs(GetPlayers()) do
|
||||
local src = tonumber(playerId)
|
||||
local identifiers = getIdentifierList(src)
|
||||
PlayersInfo[src] = {
|
||||
identifiers = identifiers,
|
||||
discord = checkDiscordIdentifier(identifiers)
|
||||
discord = checkDiscordIdentifier(identifiers) or {}
|
||||
}
|
||||
Wait(65)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user