Merge pull request #232 from TasoOneAsia/patch-1

feat(server/functions): Add GetQBPlayers() fn
This commit is contained in:
Kakarot
2021-09-27 15:05:50 -06:00
committed by GitHub
+6 -1
View File
@@ -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
end