# 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;
