getJob

Bridge.getJob()

Arguments

  • none

Returns

  • name (string): The job name of the player.

  • label (string): The job label of the player.

  • grade (number): The job grade of the player.

  • grade_label (string): The label for the job grade of the player.

Example Usage

local jobData = Bridge.getJob()

print("Job Name: " .. jobData.name)
print("Job Label: " .. jobData.label)
print("Job Grade: " .. jobData.grade)
print("Job Grade Label: " .. jobData.grade_label)

Return Structure

If job data is found:

{
    name = 'police',
    label = 'Police',
    grade = 3,
    grade_label = 'Sergeant'
}

If job data is not found:

{
    name = '',
    label = '',
    grade = 0,
    grade_label = ''
}

Last updated