From 21d85a63ecce03cec0866a9868b49b2ff495382a Mon Sep 17 00:00:00 2001 From: Mojito-Fivem Date: Sun, 7 Nov 2021 22:47:39 +0000 Subject: [PATCH] chore(server/functions): Add Comments for GetDuty functions --- server/functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/functions.lua b/server/functions.lua index 34df851..1ff1e71 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -77,6 +77,7 @@ function QBCore.Functions.GetQBPlayers() return QBCore.Players end +--- Gets a list of all on duty players of a specified job and the number function QBCore.Functions.GetPlayersOnDuty(job) local players = {} local count = 0 @@ -92,6 +93,7 @@ function QBCore.Functions.GetPlayersOnDuty(job) return players, count end +-- Returns only the amount of players on duty for the specified job function QBCore.Functions.GetDutyCount(job) local count = 0