📄Blueprints
To test the blueprint, You can use this command to give a blueprint for a drill for example:
RegisterCommand("givebp", function()
exports["zat-crafting"]:GiveBlueprint("drill")
end)
To add a blueprint item from Client side :
exports["zat-crafting"]:GiveBlueprint("drill")
To add a blueprint from Server side :
local info = {
type = 'thermite'
}
Player.Functions.AddItem("blueprint", 1, false, info)
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items["blueprint"], "add")
To add a blueprint to a shop :
[1] = {
name = "blueprint",
price = 0,
amount = 5,
info = {
type = 'thermite'
},
type = "item",
slot = 1,
},
Last updated