> For the complete documentation index, see [llms.txt](https://xcore.gitbook.io/xcore-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xcore.gitbook.io/xcore-docs/multijob.md).

# MULTIJOB

XCore MultiJob is an advanced multi-job management system for ESX-based FiveM servers. It allows players to hold and manage multiple jobs simultaneously, switch between them easily, and control job slots through a modern NUI interface. The script is designed for simplicity, security, and extensibility.\
\ <br>

#### Key Features & Advantages

* **Multiple Jobs per Player:** Each player can have several jobs at once (configurable limit).
* **Modern NUI Menu:** Responsive HTML/JS menu for job management, switching, resigning, and viewing details.
* **Job Slots System:** Set and manage the maximum number of jobs per player (stored in DB, can be changed dynamically).
* **Full ESX Compatibility:** Integrates with ESX Legacy, using ESX API for job management.
* **Automatic SQL Migration:** Required tables are created automatically on first run.
* **Exported Functions:** Easily call script functions from other scripts (AddJob, DelJob, CountJobs, GetCharJobs, etc.).
* **Multi-language Support:** Easy localization via language files.
* **Input Validation & Security:** Input checks, job existence validation, parameter validation.
* **Extensible:** Ready for further expansion (e.g., more slot types, custom logic).

<img src="https://dunb17ur4ymx4.cloudfront.net/wysiwyg/1403271/1fb0eddc605b94ad0faa786f703f121a0cac7b49.png" alt="" height="247" width="263">

#### 🛠️ Requirements

* <br>

  * `esx`
  * `ox_lib`

**Bossmenu Integration:** If you use any bossmenu or management menu, you must implement job assignment manually using the provided events or exports. While the script automatically assigns jobs when a user opens the menu, it is recommended to also trigger job assignment via bossmenu actions for reliability. You can use the event `xcore_multijob:add_job` or the export `AddJob` to add jobs to players when using bossmenu features.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://xcore.gitbook.io/xcore-docs/multijob.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
