> For the complete documentation index, see [llms.txt](https://tru-development.gitbook.io/tru-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tru-development.gitbook.io/tru-development-docs/tru-multijob/installation.md). Agents can also search and read this documentation through its [MCP server](https://tru-development.gitbook.io/tru-development-docs/~gitbook/mcp).

# Installation

Documentation / Tru-Multijob

## Installation

Install Tru-Multijob on a development server first. The following instructions apply to the supplied build.

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* Framework: QBCore, Qbox, ESX.
* Dependencies: oxmysql.
* Access to `server.cfg` and `config.lua`.

### Installation steps <a href="#installation-steps" id="installation-steps"></a>

1. Extract the resource as `tru-multijob`.
2. Import `install.sql` into your database.
3. Set the framework in `config.lua`.
4. Start your framework and oxmysql before the resource.

```cfg
ensure oxmysql
ensure tru-multijob
```

### Verify your installation <a href="#verify-your-installation" id="verify-your-installation"></a>

After starting the resource, check the server console for missing dependencies or script errors. Save two valid jobs, switch between them, clock out, reconnect and confirm the saved jobs remain.

> Check that the job and grade exist in your framework before adding them. Test slot limits with a normal player rather than an administrator.

Continue to [Configuration](https://tru-development.gitbook.io/tru-development-docs/tru-multijob/configuration.md).

### Production rollout <a href="#production-rollout" id="production-rollout"></a>

Once the initial test passes, repeat it with a second player where the feature involves shared state. Check the behavior after reconnecting and after a resource restart. Keep a backup of the previous server configuration and avoid deploying during peak player activity.

### Database and permissions <a href="#database-and-permissions" id="database-and-permissions"></a>

Import the supplied install.sql into the database used by your actual server connection, not a separate local database. Verify oxmysql starts successfully before the resource. Test a character with two existing jobs and a valid grade for each; a successful menu opening alone does not establish that persistence or switching works.
