Server Exports
GetPlayerJobs
Return a table with player jobs
exports.jobcreator:GetPlayerJobs(identifier)identifier:
string
Return:
jobs:
tablecontaining:gradenameatwork(1 is in service, else 0)
HasJob
Check if a player has a job
exports.jobcreator:HasJob(identifier, jobname)identifier:
stringjobname:
string
Return:
truesuccessfalseinsuccess
SetJobGrade
Set the grade for the job
identifier:
stringjobname:
stringgrade:
number
Return:
truesuccessfalseinsuccess
GetJobGrade
Returns the job grade, else -1
identifier:
stringjobname:
string
Return:
grade:
number
GetNJob
Returns the n-th job from player jobs
identifier:
stringnth:
number
Return:
job:
tablecontaining:gradenameatwork(1 is in service, else 0)
GetFirstJob
Return the first job of the player
identifier:
string
Return:
job:
tablecontaining:gradenameatwork(1 is in service, else 0)
SetJob
Add a new job to a player if at least one is free
identifier:
stringjobname:
stringgrade:
number
RemoveJob
Remove a specified job from players's job
identifier:
stringjobname:
string
GetJobLabel
Return the Label of a specific job
jobname:
string
Return:
jobLabel:
string
GetGradeLabel
Return the Label of a specific grade of a job
jobname:
string
Return:
gradeLabel:
string
Last updated