Required Exports#
Get On-Duty Count#
Returns the total number of players on duty for your job. The scoreboard uses this number for the Active Jobs panel.
exports('getOnDutyCount', function()
local count = 0
for _, duty in pairs(OnDuty) do
if duty then count = count + 1 end
end
return count
end)Returns



