mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Merge pull request #232 from TasoOneAsia/patch-1
feat(server/functions): Add GetQBPlayers() fn
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user