diff --git a/server/functions.lua b/server/functions.lua index b3da399..16a052b 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -71,6 +71,11 @@ function QBCore.Functions.GetPlayers() return sources end +-- Will return an array of QB Player class instances +-- unlike the GetPlayers() wrapper which only returns IDs +function QBCore.Functions.GetQBPlayers() + return QBCore.Players +end -- Paychecks (standalone - don't touch) function PaycheckLoop() @@ -293,4 +298,4 @@ function QBCore.Functions.IsLicenseInUse(license) end end return false -end \ No newline at end of file +end