Installation

Add dependencies:

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"

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"

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

Notes:

  • 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.

Last updated