Scripts/resources/[custom_script]/keep-crafting
2024-12-30 11:15:34 +01:00
..
.vscode Part 1 2024-12-29 20:48:41 +01:00
client Part 1 2024-12-29 20:48:41 +01:00
locale Part 1 2024-12-29 20:48:41 +01:00
server Part 1 2024-12-29 20:48:41 +01:00
shared Part 1 2024-12-29 20:48:41 +01:00
.editorconfig Part 1 2024-12-29 20:48:41 +01:00
.gitignore Part 1 2024-12-29 20:48:41 +01:00
config.lua Part 1 2024-12-29 20:48:41 +01:00
fxmanifest.lua File-parity 2024-12-30 11:15:34 +01:00
LICENSE Part 1 2024-12-29 20:48:41 +01:00
README.md Part 1 2024-12-29 20:48:41 +01:00

Dependencies

Preview

Installation

  • Install all dependencies

  • Drag and drop resource in your resources list

  • Make sure script is loaded after all dependencies

  • A new Item need to be added with it's image :

	-- crafting-blueprint
	    ["blueprint_document"] = {
        ["name"] = "blueprint_document",
        ["label"] = "Blueprint",
        ["weight"] = 100,
        ["type"] = "item",
        ["image"] = "blueprint_document.png",
        ["unique"] = true,
        ["useable"] = false,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "A blueprint document that help you craft."
    },
  • in qb-inventory\js\app.js find FormatItemInfo() and add this code at end of the function
if (itemData.name == "blueprint_document") { // Blueprint for crafting
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><span>" + itemData.description + "</span></p>" +
        "<p><strong>Blueprint :</strong> " + itemData.info.blueprint_label + "</p>"
    );
}
  • Blueprints can be given by using this command /giveblueprint name