Server Exports
GetPlayerJobs
Return a table with player jobs
identifier:
string
Return:
jobs:
table
containing:grade
name
atwork
(1 is in service, else 0)
HasJob
Check if a player has a job
identifier:
string
jobname:
string
Return:
true
successfalse
insuccess
SetJobGrade
Set the grade for the job
identifier:
string
jobname:
string
grade:
number
Return:
true
successfalse
insuccess
GetJobGrade
Returns the job grade, else -1
identifier:
string
jobname:
string
Return:
grade:
number
GetNJob
Returns the n-th job from player jobs
identifier:
string
nth:
number
Return:
job:
table
containing:grade
name
atwork
(1 is in service, else 0)
GetFirstJob
Return the first job of the player
identifier:
string
Return:
job:
table
containing:grade
name
atwork
(1 is in service, else 0)
SetJob
Add a new job to a player if at least one is free
identifier:
string
jobname:
string
grade:
number
RemoveJob
Remove a specified job from players's job
identifier:
string
jobname:
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