jl-laptop icon indicating copy to clipboard operation
jl-laptop copied to clipboard

No contracts after joining queue.

Open VinnyTheLegend opened this issue 2 years ago • 5 comments

On a fresh qb-core server. Have the laptop itself functioning, and am able to join the Boost queue, however I never receive a contract. I've added 2 cars to each tier and have used a print statement to confirm the "queue loop" is indeed running. the /giveboost command doesnt work either when I do:

/giveboost 1 D blista boosting

VinnyTheLegend avatar Feb 13 '23 05:02 VinnyTheLegend

Got it working after rebuilding the database tables, however now every boost has an invalid expiration date.

VinnyTheLegend avatar Feb 13 '23 05:02 VinnyTheLegend

Got it working after rebuilding the database tables, however now every boost has an invalid expiration date.

Goto server/boosting.lua and search for function GetHoursFromNow(hours) and replace both GetHoursFromNow & GetCurrentTime with the following

function GetHoursFromNow(hours)
    if Config.Linux then
        return os.date("%Y-%m-%d %H:%M", os.time() + hours * 60 * 60)
    else
        return os.date("%Y-%m-%d %H:%M", os.time() + hours * 60 * 60)
    end
end

function GetCurrentTime()
    if Config.Linux then
        return os.date("%Y-%m-%d %H:%M", os.time())
    else
        return os.date("%Y-%m-%d %H:%M", os.time())
    end
end

Ghostttie avatar Oct 04 '23 23:10 Ghostttie

Also if you don't get any contracts when in the queue make sure you have added vehicles to the table below (server/boosting.lua)

local cars = {
    ["D"] = {},
    ["C"] = {},
    ["B"] = {},
    ["A"] = {},
    ["A+"] = {},
    ["S"] = {},
    ["S+"] = {},
}

Ghostttie avatar Oct 04 '23 23:10 Ghostttie

Also if you don't get any contracts when in the queue make sure you have added vehicles to the table below (server/boosting.lua)

local cars = {
    ["D"] = {},
    ["C"] = {},
    ["B"] = {},
    ["A"] = {},
    ["A+"] = {},
    ["S"] = {},
    ["S+"] = {},
}

Can you provide an example of how this table should look?

DJ5milez avatar Oct 16 '23 19:10 DJ5milez

like this for example?

local cars = { ["D"] = { {['model'] = 'blista', ['name'] = 'Blista', ['brand'] = 'Dinka', ['price'] = 13000, ['categoryLabel'] = 'Compacts', ['shop'] = 'pdm', ["tier"] = "D"}, {['model'] = 'brioso', ['name'] = 'Brioso R/A', ['brand'] = 'Grotti', ['price'] = 20000, ['categoryLabel'] = 'Compacts', ['shop'] = 'pdm', ["tier"] = "D"},

DJ5milez avatar Oct 16 '23 20:10 DJ5milez