Skip to main content

GetEmployees

This function will return an array of employee object.

exports.bcs_companymanager:GetEmployees(job)
VariableTypeDescription
jobstringThe job (must exist within the companymanager config)
    identifier: string
firstname: string
lastname: string
mugshot: string
grade: number
grade_label: string
job_label: string

Example​

local employees = exports.bcs_companymanager:GetEmployees('police')
for k,v in pairs(employees) do
print(v.identifier, v.firstname, v.grade, v.job_label)
end