#CW-CRAFTING Question
1 messages · Page 1 of 1 (latest)
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
in character metadata, just like qb (unless they changed something)
Sorrry! When I get home from picking up my daughter I’ll try and be more in-depth about the issue I’m facing! Thank you for the fast response!!
@arctic turret Ive fixed my other problem, but now i am facing this
"/giveblueprint 1 armor"
You using qbox?
correct
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
its strange because i swear ive gave myself blueprints yesterday lol
Documentation for Overextended's resources for FiveM/RedM
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)
You might have to ask in qbox how they do it
not sure if it's the way you import oxlib tho
see config
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
You can keep an eye on #patch-notes for updates
Tysm! Keep up the great work :))