> For the complete documentation index, see [llms.txt](https://next-script-tm.gitbook.io/next-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://next-script-tm.gitbook.io/next-scripts/paid-resources/job-creator/exports/server-exports.md).

# Server Exports

### GetPlayerJobs

Return a table with player jobs

```lua
exports.jobcreator:GetPlayerJobs(identifier)
```

* identifier: `string`

Return:

* jobs: `table` containing:
  * `grade`
  * `name`
  * `atwork` (1 is in service, else 0)

***

### HasJob

Check if a player has a job

```lua
exports.jobcreator:HasJob(identifier, jobname)
```

* identifier: `string`
* jobname: `string`

Return:

* `true` success
* `false` insuccess

***

### SetJobGrade

Set the grade for the job

```lua
exports.jobcreator:SetJobGrade(identifier, jobname, grade)
```

* identifier: `string`
* jobname: `string`
* grade: `number`

Return:

* `true` success
* `false` insuccess

***

### GetJobGrade

Returns the job grade, else -1

```lua
exports.jobcreator:GetJobGrade(identifier, jobname)
```

* identifier: `string`
* jobname: `string`

Return:

* grade: `number`

***

### GetNJob

Returns the n-th job from player jobs

```lua
exports.jobcreator:GetNJob(identifier, nth)
```

* 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

```lua
exports.jobcreator:GetFirstJob(identifier)
```

* 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

```lua
exports.jobcreator:SetJob(identifier, jobname, grade)
```

* identifier: `string`
* jobname: `string`
* grade: `number`

***

### RemoveJob

Remove a specified job from players's job

```lua
exports.jobcreator:RemoveJob(identifier, jobname)
```

* identifier: `string`
* jobname: `string`

***

### GetJobLabel

Return the Label of a specific job

```lua
exports.jobcreator:GetJobLabel(jobname)
```

* jobname: `string`

Return:

* jobLabel: `string`

***

### GetGradeLabel

Return the Label of a specific grade of a job

```lua
exports.jobcreator:GetGradeLabel(jobname, grade)
```

* jobname: `string`

Return:

* gradeLabel: `string`

***
