#Crafting amount

1 messages ยท Page 1 of 1 (latest)

jolly wing
#

Can i remove the crafting amount slider into a input box?

round garnet
#

Yeah you can. But I don't have time to teach you VUE so I suggest you google some tutorials and check in on the links in the Crafting Readme regarding ui redesigns thumbup

jolly wing
#

I see the v-silder in the vue. still dont get it how the build en dev work

round garnet
#

It's explained in the link in the Readme

#

I can't really help you anything beyond what's in there. I'm no teacher

jolly wing
#

i know.. but you give me good direction ๐Ÿ˜›

jolly wing
#

Can use this on a qbox framework?

jolly wing
#

Crafting is working fine but still export for blueprints is not because he cannot create a usable item the function get a nil value

round garnet
#

Creating blueprints via command is broken in qbox I think. They fucked something up with commands.

jolly wing
#

That is the failchange

round garnet
#

You're probably using it incorecctly then

jolly wing
#

I use default settings

round garnet
#

Just read what I linked

jolly wing
#

well i get it to work... but still get the can not carry

#

i am using ox_inventory

jolly wing
#

the items is not created..

round garnet
#

"blueprintitem does not exist" ?

jolly wing
#

yes that he print in the console

round garnet
#

what is "blueprintitem"?

jolly wing
#

blueprintitem is the client function to get all blueprints

round garnet
# jolly wing

Do you have better logs on server side for this? pretty sure those are server side logs.

round garnet
jolly wing
#

i am testing now live

round garnet
#

Cause cw-crafting doesnt have any uses of "blueprintitem" at all

jolly wing
#

i run notthink only cw-crafting now

round garnet
#

yeah but there's NO USE, NO MENTION, of something called "blueprintitem" in cw-crafting. It's something you added probably

jolly wing
#

local function giveBlueprintItem(source, blueprintValue)
    if not Config.oxInv then
        local info = {}
        local Player = QBCore.Functions.GetPlayer(source)
        info.value = blueprintValue
        Player.Functions.AddItem('blueprint', 1, nil, info)
        TriggerClientEvent('inventory:client:ItemBox', source, getQBItem('blueprint'), "add")
    else
        local carry = exports.ox_inventory:CanCarryItem(source, 'blueprint', 1)
        if carry then
            print('Carry', carry)
            exports.ox_inventory:AddItem(source, 'blueprint', 1, {label = "Blueprint: "..blueprintValue, value = blueprintValue})
        else
            if useDebug then
               print("Can not carry. Dropping on ground")
            end
            local pped = GetPlayerPed(source)
            local coords = GetEntityCoords(pped)
            exports.ox_inventory:CustomDrop("drop-"..math.random(1,9999), {{'blueprint', 1, {label = "Blueprint: "..blueprintValue, value = blueprintValue}}}, coords)
        end
    end
end
exports("giveBlueprintItem", giveBlueprintItem)
#

with the carry he cannnot find the item

#

then he say blueprintitem does not exist

#

he try to drop it but cannot drop it..

#

he is generate it but notthink there

round garnet
#

try setting the weight of the item to 0

#

i pushed a patch that removes the cancarry check

jolly wing
#

well i have add item blueprint

#
    ['blueprint'] = {
        label = 'Blueprint',
        client = {
            image = "blueprint.png",
        }
    },
#

like this he add it

#

now

#

in the inventory ox

round garnet
#

I don't think that's the correct way at all

jolly wing
round garnet
#

I added the ox item to the readme now

jolly wing
#

sorry for the problem

#

Only problem that i have the clean up the strings of table ๐Ÿ˜›