> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/qbcore/ak47_qb_cardealer/installation.md).

# Installation

### Add dependencies:

1. PolyZone: <https://github.com/mkafrin/PolyZone>
2. ox\_lib: <https://github.com/overextended/ox_lib>

### **Add the script:**

1. Add the script into resources folder.
2. Import dealers.sql into database.
3. Start the script in server.cfg

### Apply Modifications: (if you want to add new job with /adddealerjob)

Add this code at the bottom of "qb-management/client/cl\_boss.lua"

```lua
Citizen.CreateThread(function()
    QBCore.Functions.TriggerCallback('qb-management:getsharedjobs', function(data)
        QBCore.Shared.Jobs = data
    end)
end)

RegisterNetEvent('QBCore:Client:OnSharedUpdate', function(type, job, data)
    if type == 'Jobs' then
        QBCore.Shared.Jobs[job] = data
    end
end)
```

Add this code at the bottom of "qb-management/server/sv\_boss.lua"

```lua
QBCore.Functions.CreateCallback('qb-management:getsharedjobs', function(source, cb)
	cb(exports['qb-core']:GetCoreObject().Shared.Jobs)
end)
```

#### **Notes:**&#x20;

* Don't upload the script with FileZilla, Use Winscp if you are using FTP for file uploading.
* Renaming of the script is not allowed.
* We do not support custom frameworks, highly modified versions of QBCore, or deprecated/outdated versions of anything.&#x20;


---

# 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://docs.menanak47.com/qbcore/ak47_qb_cardealer/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.
