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

# Installation

Download the resource from the [Cfx.re Portal](https://portal.cfx.re/) after purchasing.

**Extract and Place into Resources**

Extract the downloaded file and place the `quans_mechanic` folder into your server's resources directory.

**Update server.cfg**

Add the following to your `server.cfg`. Start it after your framework and dependencies.

```
ensure es_extended
ensure oxmysql
ensure esx_society
ensure quans_mechanic
```

**Import Database**

Import the included SQL file into your database:

bash

```bash
mysql -u your_user -p your_database < quans_mechanic.sql
```

**Job Setup**

Add the mechanic and bennys jobs to your ESX database if not already present:

sql

```sql
INSERT INTO `jobs` (`name`, `label`) VALUES
('mechanic', 'LS Customs'),
('bennys', 'Bennys Original Motor Works');

INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`) VALUES
('mechanic', 0, 'trainee', 'Trainee', 200),
('mechanic', 1, 'mechanic', 'Mechanic', 400),
('mechanic', 2, 'experienced', 'Experienced Mechanic', 600),
('mechanic', 3, 'manager', 'Manager', 800),
('mechanic', 4, 'boss', 'Boss', 1000),
('bennys', 0, 'trainee', 'Trainee', 200),
('bennys', 1, 'mechanic', 'Mechanic', 400),
('bennys', 2, 'experienced', 'Experienced Mechanic', 600),
('bennys', 3, 'manager', 'Manager', 800),
('bennys', 4, 'boss', 'Boss', 1000);
```

**Society Accounts**

The script will automatically register society accounts on first boot. Make sure `esx_society` or `esx_addonaccount` is working correctly before starting the resource.

**Server Requirements**

Your server must be running artifacts version **17000 or higher**.

**Restart Server**

Restart your server. Quans Mechanic will automatically set up all required society accounts on boot.


---

# 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://quannsstudios.gitbook.io/quannsstudio-docs/mechanic-system/installation.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.
