mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
21 lines
476 B
Lua
21 lines
476 B
Lua
|
|
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
|