getJobTypeCount

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

Parameters:

  • jobType (string): Job type to count

Returns:

  • number: Count of players

local leoCount = ps.getJobTypeCount("leo")
print("There are " .. leoCount .. " LEO officers on duty.")

Last updated