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

20
server/functions.lua Normal file
View File

@@ -0,0 +1,20 @@
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
for name, func in pairs(NDCore) do
if type(func) == "function" then
exports(name, func)
end
end