getJobCount

Gets the count of online players with a specific job who are on duty.

Parameters:

  • jobName (string): Job name to count

Returns:

  • number: Count of players

Example:

local policeCount = ps.getJobCount('police')
print("Police officers on duty:", policeCount)

Last updated