⚙️Others
Detailed explanation of the config file to adapt the resource to your player needs.
Config.lua
HOW TO ADD A BLUEPRINT (client-side):
exports["zat-crafting"]:GiveBlueprint("drill")
HOW TO ADD REPUTATION (client-side):
exports["zat-crafting"]:IncreaseReputationBy(10)
HOW TO SHOW ITEM DESCRIPTION IN THE INVENTORY:
case "blueprint":
return `<p>Type : ${itemData.info.type}</p>`;
Under this :
case "harness":
return `<p>${itemData.info.uses} uses left</p>`;
else if (itemData.name == "blueprint") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p> Type: " + itemData.info.type + "</p>");
Under this :
} else if (itemData.name == "harness") {
var finalHarness = harnessUsePart + "<br><br>" + "</p>";
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(finalHarness);
Last updated