a lot of changes

This commit is contained in:
Andyyy7666
2023-07-09 21:19:35 +02:00
parent 24caa1a857
commit bf9604e851
8 changed files with 174 additions and 148 deletions

View File

@@ -1,20 +1,6 @@
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]