Skip to content

GetDataForJob

Return the number of player that have that job and the workers list of that job

Argument Data Type Needed Default Description
Job string - The job name
Returns
Data Type Description
number The number of player with that job
table A table with all the id of the players with that job

Dont need to be called every frame


Example
local count, workers = GetDataForJob("police")

-- count = 3
-- workers = {3, 5, 19} 

Last update: April 12, 2022
Created: June 27, 2021