mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
@@ -1,20 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user