Revert "a lot of changes"

This reverts commit bf9604e851.
This commit is contained in:
Andyyy7666
2023-07-10 02:37:54 +02:00
parent bf9604e851
commit 9a9fa03e8a
8 changed files with 146 additions and 172 deletions

View File

@@ -1,6 +1,20 @@
NDCore = {}
ActivePlayers = {}
function NDCore.getPlayer(src)
return ActivePlayers[src]
end
function NDCore.getPlayers(metadata, data)
if not metadata or not data then return ActivePlayers end
local players = {}
for src, info in pairs(ActivePlayers) do
if info.metadata[metadata] == data then
players[src] = info
end
end
return players
end
AddEventHandler("playerDropped", function()
local src = source
local char = ActivePlayers[src]