#QBCore after attempting to craft, waiting a decent amount of time, nothing happens.

1 messages · Page 1 of 1 (latest)

obtuse talon
#

Hello, currently having an issue with the crafting on when doing Create Batch, having the right materials, it does the animation to start crafting, but after you wait the crafting time, nothing happens. Doesn't give you the item, and the animation keeps on going.

obtuse talon
# tender maple https://discord.com/channels/1002187567845888042/1199274444271648828

1. Include error logs. Both client and server side

None

2. When did the error occur?

When attempting to craft

3. Did you change anything in the config?

yes, allow cw-rep, change to qb-core playerstablename & dbidentifier, added spawnCoords to basic crafting.

4. Did you double check your config file changes?

yes.

5. Did you change anything outside of the Config file? Did you try with a clean version?

did not change anything outside of config. yes.

6. Post your Debug Logs

will be posted after this message.

7. Do you have any other scripts that might have and impact on the issue?

nope.

8. If any items, did you add all the items?

kinda confused lmao.

9. Have you investigated the error location and confirmed that it's not due to your other scripts?

no errors, so can't be certain.

10. Be specific: Exactly what did you do to cause the error.

use crafting bench, navigated to lockpick, attempted to create batch, nothing happens after, waited a decent amount of time.

#
^4=== cw-crafting ===
^2= Base setup = 
Using OX Lib    true
Using OX inventory    true
Using Local Images    false
^2= Rep = 
Using CW Rep    true
Using Level instead of skill    false
Crafting skill name    crafting
Crating Skill label    "Crafting Skill"
^3Warning: Creating new BoxZone with debug enabled. ^0(^5@cw-crafting/client/client.lua^7:559)^7
^3Warning: Creating new BoxZone with debug enabled. ^0(^5@cw-crafting/client/client.lua^7:559)^7
Primary color:    #52d996
Crafting was opened    true
Fetching recipes
generating recipes for table    basic
Amount of recipes:     0
Item table:    {
    "basic": "basic"
}
Current table type    basic
matches    basic
is basic table
lockpick has no requirements
materials    {
    "plastic": 12,
    "metalscrap": 12
}
Current skill level    0
Required skill level    nil
Has access to    lockpick
====================
Item table:    {
    "basic": "basic"
}
Current table type    basic
matches    basic
is basic table
breakdown_phone has no requirements
materials    {
    "phone": 1
}
Current skill level    0
Required skill level    nil
Has access to    breakdown_phone
====================
Item table:    {
    "guns": "guns"
}
Current table type    basic
matches    nil
recipe did not match this table
Did not have access to    weapon_appistol
====================
Checking if items are in pockets
amount:    12    plastic
amount:    12    metalscrap
Closing crafting
lockpick    {
    "materialsNameMap": {
        "metalscrap": "Metal Scrap",
        "plastic": "Plastic"
    },
    "materials": {
        "plastic": 12,
        "metalscrap": 12
    },
    "skillData": {
        "currentSkill": 0,
        "passes": true,
        "skillLabel": "Crafting",
        "skillName": "crafting"
    },
    "toMaterialsNameMap": {
        "lockpick": "Lockpick"
    },
    "craftingSkill": 0,
    "category": "Tools",
    "keepMaterials": {
        "plastic": true
    },
    "maxCraft": 10,
    "craftingTime": 3000,
    "skillGain": 5,
    "toItems": {
        "lockpick": 2
    },
    "customSkillGain": 5
}
total amount    12    plastic
{
    "materialsNameMap": {
        "metalscrap": "Metal Scrap",
        "plastic": "Plastic"
    },
    "materials": {
        "plastic": 12,
        "metalscrap": 12
    },
    "skillData": {
        "currentSkill": 0,
        "passes": true,
        "skillLabel": "Crafting",
        "skillName": "crafting"
    },
    "toMaterialsNameMap": {
        "lockpick": "Lockpick"
    },
    "craftingSkill": 0,
    "category": "Tools",
    "keepMaterials": {
        "plastic": true
    },
    "maxCraft": 10,
    "craftingTime": 3000,
    "skillGain": 5,
    "toItems": {
        "lockpick": 2
    },
    "customSkillGain": 5
}
hasitem    plastic    :     true    12
total amount    12    metalscrap
{
    "materialsNameMap": {
        "metalscrap": "Metal Scrap",
        "plastic": "Plastic"
    },
    "materials": {
        "plastic": 12,
        "metalscrap": 12
    },
    "skillData": {
        "currentSkill": 0,
        "passes": true,
        "skillLabel": "Crafting",
        "skillName": "crafting"
    },
    "toMaterialsNameMap": {
        "lockpick": "Lockpick"
    },
    "craftingSkill": 0,
    "category": "Tools",
    "keepMaterials": {
        "plastic": true
    },
    "maxCraft": 10,
    "craftingTime": 3000,
    "skillGain": 5,
    "toItems": {
        "lockpick": 2
    },
    "customSkillGain": 5
}
hasitem    metalscrap    :     true    12

Server prints:
12:27:17 AM [  script:cw-crafting] Fetching Bps for player      1
12:27:17 AM [  script:cw-crafting] Citizenid    TGO33243
12:27:17 AM [  script:cw-crafting] Result from fetch    {
12:27:17 AM [  script:cw-crafting]     "crafting_blueprints": "[]"
12:27:17 AM [  script:cw-crafting] }
12:27:17 AM [  script:cw-crafting] Player had a list```
tender maple
#

Could be that the qb progress bar implementation is broken

#

Or wait no hmm

obtuse talon
#

i have ox_lib enabled in the config, so it should be pulling that

tender maple
#

yeah it's the oxlib one that's broken for qb

obtuse talon
#

i mean regardless i've been having issues with ox_lib, like showTextUI will appear then disappear on like pug-repojob and shit like that 😂

tender maple
#
function triggerProgressBar(name, label, time, cbSuc, cbCancel)
    if Config.oxLib then
        local canCancel = cbCancel ~= nil
    
        if lib.progressBar({
            duration = time,
            label = label,
            canCancel = canCancel,
        }) then
            cbSuc()
        else
            cbCancel()
        end
    else
        local canCancel = cbCancel ~= nil

        QBCore.Functions.Progressbar(name, label, time , false, true, {
            disableMovement = true,
            disableCarMovement = true,
            disableMouse = false,
            disableCombat = true,
        }, {}, {}, {}, cbSuc(), cbCancel() or {})
    end
end
#

Replace the triggerproggressbar in bridge/client/qb.lua with this

obtuse talon
tender maple
#

Thanks for testing 👍