mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-12 02:13:55 +00:00
1 parent
bf9604e851
commit
9a9fa03e8a
8 files changed
+146
-172
No files matched your search
+15
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user