> 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 CHAT

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.
