[QBCore/ESX] CRAFTING BENCH + WEAPON ATTACHMENTS

A script by ZaT

No reviews yet.
[QBCore/ESX] CRAFTING BENCH + WEAPON ATTACHMENTS main image

Full Description

As a player, you will enjoy a seamless and user-friendly UI.

  • You can add and remove as much weapons as you want.
  • You can add and remove as much attachments as you want.
  • You can add and remove as much items to craft as you want.
  • Easy to configure.
  • Working with the old qbcore version and the latest one (recommended)
  • Works with qb-inventory (QB), ps-inventory (QB), qs-inventory (QB), origen_inventory (QB) and ox_inventory (QB+ESX), .

Code is accessible Client.lua (encrypted ), web (build version)
Subscription-based No
Lines (approximately) 10k+
Requirements qb-core / es_extended
Support Yes

Part of the config :

Config = {}

-- Framework : 
--            "qb"  : QBCORE
--            "esx" : ESX
Config.Framework = "qb"

-- INVENTORY : 
--            "qb"      : qb-inventory (only  qb )
--            "ox"      : ox-inventory        ( qb + esx)
--            "origen"  : origen_inventory (only qb)
--            "ps"      : ps-inventory (only qb)
--            "qs"      : qs-inventory (only qb)
Config.inventory = "qs"

-- IMAGE DIRECTOTY :
--            "qb-inventory/html/images/"       : qb-inventory (only qb)
--            "ox_inventory/web/images/"        : ox-inventory   (qb + esx)                  
--            "origen_inventory/web/images/"    : origen_inventory (only qb)
--            "ps-inventory/html/images/"       : ps-inventory (only qb)
--            "qs-inventory/html/images/"       : qs-inventory (only qb)
Config.img = "qs-inventory/html/images/"    --

-- qb-core and qb-weapons versions:
--            "old" : old version
--            "new" : latest version ***** RECOMMENDED
Config.qbVersion = "new" 

-- qb-core and qb-weapons versions:
--            true  : use crafting tables
--            false : just use ped coords (NOT RECOMMENDED)
Config.UseTables = true
-- Craftables List
-- model            : item prop
-- zoffset          : Z value to postion perfectly the prop on the Ui
-- rep              : Reputation needed ("0" if no reputation needed)
-- amount           : Amount to give after craft ("1" is Recommeneded)
-- time             : crafting time
-- description      : Description written in the Ui
-- costs            : Required items to craft
Config.craftables = {
    ['thermite'] = {
        model = "hei_prop_heist_thermite",
        zoffset = 0.12,
        rep = 70, 
        amount = 1,
        requireBlueprint = true, 
        time = 50, 
        description = "Thermite is a pyrotechnic composition of metal powder and metal oxide. When ignited by heat or chemical reaction, thermite undergoes an exothermic reduction-oxidation (redox) reaction. Most varieties are not explosive, but can create brief bursts of heat and high temperature in a small area. Its form of action is similar to that of other fuel-oxidizer mixtures, such as black powder.", 
        costs = { 
            ['metalscrap'] = 2,

        }
    },
    ['drill'] = { 
        model = "prop_tool_drill",
        zoffset = 0.17,
        rep = 0, 
        amount = 1,
        requireBlueprint = true, 
        time = 25, 
        description = "bla bla bla.", 
        costs = { 
            ['metalscrap'] = 20,
            ['aluminum'] = 10,
            -- ['iron']=  50,
            -- ['rubber'] = 20,
            -- ['glass'] = 10,
            -- ['aluminumoxide']=  50,
            -- ['copper']=  50,
        }
    },
    ['repairkit'] = { 
        model = "h4_prop_h4_tool_box_02",
        description = "bla bla bla.", 
        zoffset = 0.0,
        rep = 0, 
        amount = 1,
        requireBlueprint = false, 
        time = 10, 
        costs = { 
            ['metalscrap'] = 21,
            ['aluminum'] = 11,
            -- ['iron']=  51,
            -- ['rubber'] = 21,
            -- ['glass'] = 11,
            -- ['aluminumoxide']=  51,
            -- ['copper']=  51,
        }
    },
}







-- This is used to add or remove personal supported weapons.
-- name             : Weapon Model
-- model            : Weapon Prop
-- MaxRotationLeft  : Max  Prop Rotation when you move the mouse to the left
-- MaxRotationRight : Rotation when you move the mouse to the right
-- AlphaRx          : Rotation on the screen related to X
-- AlphaRy          : Rotation on the screen related to Y
-- RRMulti          : Rotation Multiplier on the screen related to X
-- AlphaX           : Position  (margin-left)
-- lphaY            : Position  (margin-top)
Config.Weapons = {
    ------------------------------------------------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------------------------------------------------
    --------------------------------------------------------------------  MELEE   ------------------------------------------------------------
    ------------------------------------------------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------------------------------------------------
    ['weapon_dagger']= { 
        ["name"] = "weapon_dagger",            
        ["model"] = "w_me_dagger",            
        ["MaxRotationLeft"] = 10,               
        ["MaxRotationRight"] = 120,            

        ["SupressorAlphaRx"] = 0,              
        ["SupressorAlphaRy"] = 0,               
        ["SupressorRRMulti"] = 0,              
        ["SupressorAlphaX"] = 0,                
        ["SupressorAlphaY"] = 0,                

        ["ClipAlphaRx"] = 0,
        ["ClipAlphaRy"] = 0,
        ["ClipRRMulti"] = 0,
        ["ClipAlphaX"] = 0,
        ["ClipAlphaY"] = 0,

        ["FlashlightAlphaRx"] = 0,
        ["FlashlightAlphaRy"] = 0,
        ["FlashRRMulti"] = 0,
        ["FlashlightAlphaX"] = 0,
        ["FlashlightAlphaY"] = 0,

        ["ScopeAlphaRx"] = 0,
        ["ScopeAlphaRy"] = 0,
        ["ScopeRRMulti"] = 0,
        ["ScopeAlphaX"] = 0,
        ["ScopeAlphaY"] = 0,

        ["GripAlphaRx"] = 0,
        ["GripAlphaRy"] = 0,
        ["GripRRMulti"] = 0,
        ["GripAlphaX"] = 0,
        ["GripAlphaY"] = 0,

        ["SkinAlphaRx"] = 0.01,
        ["SkinAlphaRy"] = -0.07,
        ["SkinRRMulti"] = 2,
        ["SkinAlphaX"] = 48,                    
        ["SkinAlphaY"] = 55                    
    },
}