getJobs

Bridge.getJobs()

Arguments

  • none

Returns

  • response (table): A table containing all job information.

Example Usage

local jobs = Bridge.getJobs()

for i, job in ipairs(jobs) do
    print("Job " .. i .. ": " .. job.name)
    for grade, gradeInfo in pairs(job.grades) do
        print("  Grade: " .. grade .. " Name: " .. gradeInfo.name .. " Label: " .. gradeInfo.label)
    end
end

Return Structure

If jobs are found:

{
    {
        name = "job name",
        label = "job label",
        grades = {
            {
                grade = 1,
                name = "grade name",
                label = "grade label"
            }
        }
    }
}

If jobs are not found:

{}

Last updated