From afb2689513a6fd089cb3b625fcd31338f33fcabc Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Tue, 6 Sep 2022 11:12:25 +0200 Subject: [PATCH] feat(functions): GetPlayer function --- ND_Core/server/functions.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ND_Core/server/functions.lua b/ND_Core/server/functions.lua index 6e65f51..b605c76 100644 --- a/ND_Core/server/functions.lua +++ b/ND_Core/server/functions.lua @@ -1,5 +1,10 @@ -- For support join my discord: https://discord.gg/Z9Mxu72zZ6 +-- return the players selected character. +function NDCore.Functions.GetPlayer(player) + return NDCore.Players[player] +end + -- Callback to update each selected character on the server. function NDCore.Functions.GetPlayers(players) if not cb then return NDCore.Players end