# Installation

1. Run the `m_vehicleshop.sql`

```sql
CREATE TABLE IF NOT EXISTS `m_vehicleshop` (
  `carID` int(11) NOT NULL AUTO_INCREMENT,
  `carName` varchar(255) NOT NULL,
  `carLabel` varchar(255) DEFAULT NULL,
  `carPrice` decimal(10,2) NOT NULL,
  `carStock` int(11) NOT NULL,
  `carCategory` varchar(50) NOT NULL,
  `carImage` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`carID`)
) ENGINE=InnoDB AUTO_INCREMENT=710 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `m_vehicleshop_codes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `codeName` varchar(100) DEFAULT NULL,
  `vehicleName` varchar(100) DEFAULT NULL,
  `redeemed` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `m_vehicleshop_sales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `car` varchar(255) NOT NULL,
  `category` varchar(255) NOT NULL,
  `price` decimal(20,6) NOT NULL DEFAULT 0.000000,
  `citizenid` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
```

2. qb-core/shared/jobs.lua

```lua
['cardealer'] = {
    label = 'Vehicle Dealer',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Recruit',
            payment = 50
        },
        ['1'] = {
            name = 'Showroom Sales',
            payment = 75
        },
        ['2'] = {
            name = 'Business Sales',
            payment = 100
        },
        ['3'] = {
            name = 'Finance',
            payment = 125
        },
        ['4'] = {
            name = 'Manager',
            isboss = true,
            payment = 150
        },
    },
},
```


---

# Agent Instructions: 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:

```
GET https://mscripts.gitbook.io/docs/qbcore/jobs/qb-vehicleshop/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
