#CW-CRAFTING Question

1 messages · Page 1 of 1 (latest)

ionic dawn
#

Am I able to use the same crafting table prop without it having both crafting tables show up?

For example I used the same prop as default crafting so it added

Craft
Test craft ( when I third eye the table)

#

Also where are the crafting skill points stored? Is that in the SQL?

arctic turret
#

Not really sure what you mean. If your crafting tables have the objects property filled in it will use ALL props of that type.
If you want to use only certain entities you have to add and place them in the spawnTable property.

In the default config mechanic uses BOTH these, ballasguns only uses the spawned tables

arctic turret
ionic dawn
ionic dawn
#

@arctic turret Ive fixed my other problem, but now i am facing this

#

"/giveblueprint 1 armor"

arctic turret
#

You using qbox?

ionic dawn
#

correct

arctic turret
#

qbox fucked something up with the backwards compatiblity for commands

#

you'll have to rewrite the command in the server side code to use lib instead

ionic dawn
#

its strange because i swear ive gave myself blueprints yesterday lol

arctic turret
ionic dawn
# arctic turret https://overextended.dev/ox_lib/Modules/AddCommand/Server
local lib = exports['ox_lib']

lib.addCommand('giveblueprint', {
    help = 'Gives a blueprint item to a player',
    restricted = 'group.admin',
    params = {
        {
            name = 'target',
            help = 'Target player\'s server ID',
            type = 'playerId'
        },
        {
            name = 'blueprint',
            help = 'Name of the blueprint to give',
            type = 'string'
        }
    }
}, function(source, args, raw)
    local src = source

    if not IsPlayerAceAllowed(src, "command.giveblueprint") then
        TriggerClientEvent('chat:addMessage', src, { args = {"^1System", "You do not have permission to use this command."} })
        return
    end

    if args.target and args.blueprint then
        giveBlueprintItem(args.target, args.blueprint)
        TriggerClientEvent('chat:addMessage', src, { args = {"^5System", "You have given blueprint '" .. args.blueprint .. "' to player " .. args.target .. "."} })
    else
        TriggerClientEvent('chat:addMessage', src, { args = {"^1System", "Usage: /giveblueprint [player ID] [blueprint name]"} })
    end
end)
arctic turret
#

You might have to ask in qbox how they do it

#

not sure if it's the way you import oxlib tho

#

see config

ionic dawn
#

I tried to ask but they weren’t very helpful ;p

#

If you are able to figure it out or end up pushing a update to do it please please please let me know! This is the best crafting script out there imo

arctic turret
ionic dawn
#

Tysm! Keep up the great work :))

ionic dawn
#

hey @arctic turret I decided to reinstall the script, and for some reason now its working?

#

i didnt change anything priror :p

#

gonna try a server restart and see if it breaks upon server restart

ionic dawn
#

works perfectly 🙂

#

may i add a suggestion?

#

Adding a “max” button that checks the inventory to see how much items the player has and adds the max amount they can craft into the queue