PA Scripts
Scripts
  • Overview
  • Hookers
    • 🔧 Installation
    • ðŸŽŪ Gameplay & Usage
    • ⚙ Configuration Details
  • Multiplayer Roof Running
    • 🔧 Installation
    • 🔍 Gameplay & Usage
    • ⚙ïļ Configuration Details
  • Crafting System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Lockpick System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Racing System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Hacking System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Money Laundering System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Options
  • Radial Menu
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Options
  • Prop System
    • 🔧 Installation
    • 🔍 Usage
    • Configuration Details
  • Hq App + Art Asylum Heist
    • ⚔ïļGeneral information page
    • 🧠Installation
  • Inventory
    • Readme file
    • 🧠Installation
    • ðŸŠķConfig Settings
  • Craft System
    • ðŸ’ŧGeneral features
    • 🧠Installation
    • ðŸŠķConfig Settings
    • ðŸŸĶBlueprints
  • UI Pack
    • ⚙ïļSetting for Core
    • ðŸŠķUsage examples
Powered by GitBook
On this page

Was this helpful?

  1. Craft System

Config Settings

Craft System Config Settings

If you have an xp system, you can make it true and give xp when you craft items by writing the export of your xp system

giveXp you can set the xp to be given in the section

xpSystem = true,

function xpFunction(src,xp)
    -- exports['pickle_xp']:AddPlayerXP(src,"crafting",xp)
end

['weapontint_7'] = {
            model = "prop_paint_spray01a",
            description = "test description.",
            image = "weapontint_plat",
            metadata = {}, 
            name = "Weapon Tint Platinum",
            advancedTable = true,
            amount = 2,
            time = 0.1, 
            RequireXP = true,
            giveXp = 100,
            removeBlueprint = false, -- if true blueprints will be removed after craft.
            requiredItems = { 
                ['phone'] = 3,
                ['weapon_pistol'] = 5,
            },
        }

If you make advancedTabletrue, the item can only be used in the advanced table.

amount value specifies how much will be added to the storage section when the item is crafted

you can set how long the item will be crafted from the time section

If removeBlueprint is true, you need to put the blueprint with the required metadata in the blueprints stash section, that is, the blueprint with the metadata weapontint_7

requiredItems ; for example, to craft this item, you need 3 phones and 5 weapons


tint determines the colour of the item when adding skin to the weapon. You can look at these colours here https://docs.fivem.net/natives/?_0x50969B9B89ED5738

 Weapons = {
    ["weapon_pistol"] = {
        components = {
            { item = "weapon_pistol_magazine",          type = "clip",       hash = "COMPONENT_PISTOL_CLIP_01" },
            { item = "drum_attachment", type = "clip",       hash = "COMPONENT_PISTOL_CLIP_02" },
            { item = "flashlight_attachment",           type = "flashlight", hash = "COMPONENT_AT_PI_FLSH" },
            { item = "suppressor_attachment",     type = "suppressor", hash = "COMPONENT_AT_PI_SUPP_02" },
            { item = "weapontint_0",            type = "skin", tint = 0 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_1",            type = "skin", tint = 1 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_2",            type = "skin", tint = 2 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_3",            type = "skin", tint = 3 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_4",            type = "skin", tint = 4 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_5",            type = "skin", tint = 5 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_6",            type = "skin", tint = 6 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" },
            { item = "weapontint_7",            type = "skin", tint = 7 ,       hash = "COMPONENT_PISTOL_VARMOD_LUXE" }
        }
    },

You can check the craft tables here it is recommended to change them

  CraftProps = {
        "ba_dlc_ba_int2_bench006",
        "prop_tool_bench02_ld"
    },

Here you can change the text of the texts you interact with.

  InteractText = {
        ["crafting"] = "Crafting",
        ["materials"] = "Materials",
        ["blueprints"] = "Blueprints",
        ["storage"] = "Storage",
        ["perm"] = "Permission"
    },

If you make it false, ac-text will run automatically, if you make it true, ox_target or qb-target will run. You do not need to change the qb-target text, the system automatically runs whichever one is started.

 Interaction = {
        UseTarget = false, -- if you set it to false, the ac-text system supplied with the script is automatically activated
        Target = "qb-target",
    },
    

Here you can adjust the weight capacity and number of slots of the opened stashes

    Stash = {
        maxweight = 40000000,
        slots = 100,
    },
PreviousInstallationNextBlueprints

Last updated 11 months ago

Was this helpful?

ðŸŠķ