DGserv Développement
  • Documentation des scripts DGserv
  • INFORMATION
    • 🛒Boutique Tebex
    • 🆘Discord DGserv
    • 🇻🇳Youtube
  • Base FiveM
    • ESX_CORE
      • Installation
        • Étape 1
        • Étape 2
        • Étape 3
        • Étape 4
        • Problèmes communs
      • Configuration
        • Admin Commande
        • server.cfg
        • es_extented
        • TxAdmin
  • GUIDES JOBS
    • ESX VigneronJob
      • Installation
        • Étape 1
        • Étape 2
        • Étape 3
        • Étape 4
        • Étape 5
        • Étape 6
      • Problèmes communs
    • ESX TabacJob
      • Installation
        • Étape 1
        • Étape 2
        • Étape 3
        • Étape 4
        • Étape 5
        • Étape 6
      • Problèmes communs
    • ESX PizzaJob
      • Installation
        • Étape 1
        • Étape 2
        • Étape 3
        • Étape 4
        • Étape 5
        • Étape 6
        • Étape 7
      • Problèmes communs
    • ESX Kebab Job
      • Installation
        • Étape 1
        • Étape 2
        • Étape 3
        • Étape 4
        • Étape 5
        • Étape 6
      • Problèmes communs
    • ESX DriftJob
      • Problèmes communs
    • ESX BahamasJob
      • Problèmes communs
    • ESX UnicornJob
      • Problèmes communs
  • GUIDES SCIPTS
    • ESX NotifDiscord
      • Installation
      • Exports
      • Problèmes communs
    • ESX AlerteAccueil
      • Installation
      • Configuration
      • Problèmes communs
    • ESX Smoke
      • Installation
      • Configuration
      • Problèmes communs
    • ESX Acheteur
    • ESX VehiculeSpawn
Powered by GitBook
On this page
  1. GUIDES JOBS
  2. ESX TabacJob
  3. Installation

Étape 6

Ajouts crafting Inventaire

Ajouts crafting Inventaire

Pour que le scripts fonctionne correctement vous devez ajouter les crafting dans le fichier de configuration de votre inventaire.

ox_inventory

Copier et coller les items ce-dessous dans votre fichier de configuration qui se trouve dans : ox_inventory/data/crafting.lua

-----------------------------------------------------------------------------------------------------------------------
	{         
                      -- CRAFTING FEUILLE TABAC 
                      items = {
			{
				name = 'ftabac',
				ingredients = {
					--ftabac = 5,
					--WEAPON_MACHETE = 0.05
				},
				duration = 5000,
				count = 2,
			},
		},
		points = {
			vec3(2826.0652, 4589.7358, 46.6417),
			vec3(2823.9258, 4589.0815, 46.4838),
			vec3(2822.1824, 4588.6484, 46.2907),
			vec3(2819.8860, 4587.8423, 46.0100),
			vec3(2818.1611, 4587.3574, 45.8801)	
	},

          groups = {["tabac"] = 0},





		zones = {
{
				coords = vec3(2826.0652, 4589.7358, 46.6417),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2823.9258, 4589.0815, 46.4838),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2822.1824, 4588.6484, 46.2907),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2819.8860, 4587.8423, 46.0100),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2818.1611, 4587.3574, 45.8801),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			
	},
		--blip = { id = 566, colour = 31, scale = 0.8 },

	},
-----------------------------------------------------------------------------------------------------------------------
	{         
                      -- CRAFTING FEUILLE TABAC HUMIDE - FEUILLE TABAC SEC
                      items = {
			{
				name = 'tabacsec',
				ingredients = {
					ftabac = 5,
					--WEAPON_MACHETE = 0.05
				},
				duration = 5000,
				count = 2,
			},
		},
		points = {
			vec3(2830.1816, 4583.9028, 46.7595),
			vec3(2828.6965, 4583.6587, 46.7382),
			vec3(2827.0977, 4583.6655, 46.6876),
			vec3(2827.6782, 4582.0957, 46.7018),
			vec3(2829.1621, 4582.2661, 46.7156),
			vec3(2830.9802, 4582.6079, 46.7359),
			vec3(2831.2993, 4581.1514, 46.6857),
			vec3(2829.9343, 4580.3809, 46.6603),
			vec3(2828.0874, 4579.8643, 46.6334)	
	},

          groups = {["tabac"] = 0},





		zones = {
{
				coords = vec3(2830.1816, 4583.9028, 46.7595),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2828.6965, 4583.6587, 46.7382),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2827.0977, 4583.6655, 46.6876),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2827.6782, 4582.0957, 46.7018),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2829.1621, 4582.2661, 46.7156),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2830.9802, 4582.6079, 46.7359),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2831.2993, 4581.1514, 46.6857),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2829.9343, 4580.3809, 46.6603),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2828.0874, 4579.8643, 46.6334),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},		},
		--blip = { id = 566, colour = 31, scale = 0.8 },

	},
------------------------------------------------------------------------------------------------------------------------
	{         
                      -- CRAFTING TABAC BROYER
                      items = {
			{
				name = 'tabacbroyer',
				ingredients = {
					tabacsec = 5,
					--WEAPON_MACHETE = 0.05
				},
				duration = 5000,
				count = 2,
			},
		},
		points = {
			vec3(2835.7634, 4585.2568, 46.8728),
			vec3(2837.1113, 4585.7803, 46.9886)
	},

          groups = {["tabac"] = 0},

		zones = {
			{
				coords = vec3(2835.7634, 4585.2568, 46.8728),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},

			{
				coords = vec3(2837.1113, 4585.7803, 46.9886),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},		},
		--blip = { id = 566, colour = 31, scale = 0.8 },

	},

------------------------------------------------------------------------------------------------------------------------
	{         
                      -- CRAFTING 
                      items = {
			{
				name = 'dg_marlboro',
				ingredients = {
					tabacbroyer = 5,
					--WEAPON_MACHETE = 0.05
				},
				duration = 5000,
				count = 2,
			},
		},
		points = {
			vec3(283.4422, -1935.3303, 26.8964)		},

          groups = {["tabac"] = 0},

		zones = {
			{
				coords = vec3(283.4422, -1935.3303, 26.8964),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},
		},
		--blip = { id = 566, colour = 31, scale = 0.8 },

	},
------------------------------------------------------------------------------------------------------------------------
	{         
                      -- CRAFTING 
                      items = {
			{
				name = 'dg_camel',
				ingredients = {
					tabacbroyer = 5,
					--WEAPON_MACHETE = 0.05
				},
				duration = 5000,
				count = 2,
			},
		},
		points = {
			vec3(283.5503, -1937.2394, 26.9004)		},

          groups = {["tabac"] = 0},

		zones = {
			{
				coords = vec3(283.5503, -1937.2394, 26.9004),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},
		},
		--blip = { id = 566, colour = 31, scale = 0.8 },

	},
------------------------------------------------------------------------------------------------------------------------
	{         
                      -- CRAFTING 
                      items = {
			{
				name = 'dg_redwood',
				ingredients = {
					tabacbroyer = 5,
					--WEAPON_MACHETE = 0.05
				},
				duration = 5000,
				count = 2,
			},
		},
		points = {
			vec3(274.1027, -1933.5421, 26.8964)		},

          groups = {["tabac"] = 0},


		zones = {
			{
				coords = vec3(2917.3384, 4469.8975, 48.1528),
				size = vec3(3.8, 1.05, 0.15),
				distance = 1.5,
				rotation = 315.0,
			},
		},
		--blip = { id = 566, colour = 31, scale = 0.8 },

	},
----------------------------------------------------------------------------------------------------------------
qs_inventory

Copier et coller les items ce-dessous dans votre fichier de configuration qui se trouve dans : qs-inventory/config/crafting.lua

Config.CraftingTables = {

    [1] = {
        name = 'Police Crafting',
        isjob = 'police', --job name or false
        grades = 'all',   -- 'all' to allow all grades, { 0 } to allow an specefic grade or { 0, 1, 2 } to a allow more than one grade.
        text = '[E] - Police Craft',
        blip = {
            enabled = true,
            title = 'Police Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(459.771423, -989.050537, 24.898926),
        items = {
            [1] = {
                name = 'weapon_pistol',
                amount = 50,
                info = {},
                costs = {
                    ['iron'] = 80,
                    ['metalscrap'] = 70,
                    ['rubber'] = 8,
                    ['steel'] = 60,
                    ['lockpick'] = 5,
                },
                type = 'weapon',
                slot = 1,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 5500,
                chance = 100
            },
            [2] = {
                name = 'weapon_smg',
                amount = 1,
                info = {},
                costs = {
                    ['iron'] = 80,
                    ['metalscrap'] = 120,
                    ['rubber'] = 10,
                    ['steel'] = 65,
                    ['lockpick'] = 10,
                },
                type = 'weapon',
                slot = 2,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 8500,
                chance = 100
            },
            [3] = {
                name = 'weapon_carbinerifle',
                amount = 1,
                info = {},
                costs = {
                    ['iron'] = 120,
                    ['metalscrap'] = 120,
                    ['rubber'] = 20,
                    ['steel'] = 90,
                    ['lockpick'] = 14,
                },
                type = 'weapon',
                slot = 3,
                rep = 'craftingrep',
                points = 2,
                threshold = 0,
                time = 12000,
                chance = 100
            }
        }
    },
    [2] = {
        name = 'Attachment Crafting',
        isjob = false,
        grades = 'all',
        text = '[E] - Craft Attachment',
        blip = {
            enabled = true,
            title = 'Attachment Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(90.303299, 3745.503418, 40.771484),
        items = {
            [1] = {
                name = 'pistol_extendedclip',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 140,
                    ['steel'] = 250,
                    ['rubber'] = 60,
                },
                type = 'item',
                slot = 1,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 8000,
                chance = 90
            },
            [2] = {
                name = 'pistol_suppressor',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 165,
                    ['steel'] = 285,
                    ['rubber'] = 75,
                },
                type = 'item',
                slot = 2,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 8000,
                chance = 90
            },
            [3] = {
                name = 'assaultrifle_extendedclip',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 190,
                    ['steel'] = 305,
                    ['rubber'] = 85,
                    ['smg_extendedclip'] = 1,
                },
                type = 'item',
                slot = 7,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 8000,
                chance = 90
            },
            [4] = {
                name = 'assaultrifle_drum',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 205,
                    ['steel'] = 340,
                    ['rubber'] = 110,
                    ['smg_extendedclip'] = 2,
                },
                type = 'item',
                slot = 8,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 12000,
                chance = 90
            },
            [5] = {
                name = 'smg_drum',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 230,
                    ['steel'] = 365,
                    ['rubber'] = 130,
                },
                type = 'item',
                slot = 3,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 12000,
                chance = 90
            },
            [6] = {
                name = 'smg_extendedclip',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 255,
                    ['steel'] = 390,
                    ['rubber'] = 145,
                },
                type = 'item',
                slot = 4,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 10000,
                chance = 90
            },
            [7] = {
                name = 'microsmg_extendedclip',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 270,
                    ['steel'] = 435,
                    ['rubber'] = 155,
                },
                type = 'item',
                slot = 5,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 18000,
                chance = 90
            },
            [8] = {
                name = 'smg_scope',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 300,
                    ['steel'] = 469,
                    ['rubber'] = 170,
                },
                type = 'item',
                slot = 6,
                rep = 'attachmentcraftingrep',
                points = 1,
                threshold = 0,
                time = 11000,
                chance = 90
            },
        }
    },
    [3] = {
        name = 'Crafting Items',
        isjob = false,
        grades = 'all',
        text = '[E] - Craft Items',
        blip = {
            enabled = true,
            title = 'Crafting Items',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(1537.423, 6340.951, 24.117),
        items = {
            [1] = {
                name = 'lockpick',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 22,
                    ['plastic'] = 32,
                },
                type = 'item',
                slot = 1,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            },
            [2] = {
                name = 'screwdriverset',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 30,
                    ['plastic'] = 42,
                },
                type = 'item',
                slot = 2,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 10000,
                chance = 90
            },
            [3] = {
                name = 'electronickit',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 30,
                    ['plastic'] = 45,
                    ['aluminum'] = 28,
                },
                type = 'item',
                slot = 3,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 15000,
                chance = 90
            },
            [4] = {
                name = 'radioscanner',
                amount = 50,
                info = {},
                costs = {
                    ['electronickit'] = 2,
                    ['plastic'] = 52,
                    ['steel'] = 40,
                },
                type = 'item',
                slot = 4,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 25000,
                chance = 90
            },
            [5] = {
                name = 'gatecrack',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 10,
                    ['plastic'] = 50,
                    ['aluminum'] = 30,
                    ['iron'] = 17,
                    ['electronickit'] = 1,
                },
                type = 'item',
                slot = 5,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 17000,
                chance = 90
            },
            [6] = {
                name = 'handcuffs',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 36,
                    ['steel'] = 24,
                    ['aluminum'] = 28,
                },
                type = 'item',
                slot = 6,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 15000,
                chance = 90
            },
            [7] = {
                name = 'repairkit',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 32,
                    ['steel'] = 43,
                    ['plastic'] = 61,
                },
                type = 'item',
                slot = 7,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 8000,
                chance = 90
            },
            [8] = {
                name = 'pistol_ammo',
                amount = 50,
                info = {},
                costs = {
                    ['metalscrap'] = 50,
                    ['steel'] = 37,
                    ['copper'] = 26,
                },
                type = 'item',
                slot = 8,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 7000,
                chance = 90
            },
            [9] = {
                name = 'ironoxide',
                amount = 50,
                info = {},
                costs = {
                    ['iron'] = 60,
                    ['glass'] = 30,
                },
                type = 'item',
                slot = 9,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            },
            [10] = {
                name = 'aluminumoxide',
                amount = 50,
                info = {},
                costs = {
                    ['aluminum'] = 60,
                    ['glass'] = 30,
                },
                type = 'item',
                slot = 10,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 4000,
                chance = 80
            },
            [11] = {
                name = 'armor',
                amount = 50,
                info = {},
                costs = {
                    ['iron'] = 33,
                    ['steel'] = 44,
                    ['plastic'] = 55,
                    ['aluminum'] = 22,
                },
                type = 'item',
                slot = 11,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 17000,
                chance = 60
            },
            [12] = {
                name = 'drill',
                amount = 50,
                info = {},
                costs = {
                    ['iron'] = 50,
                    ['steel'] = 50,
                    ['screwdriverset'] = 3,
                    ['advancedlockpick'] = 2,
                },
                type = 'item',
                slot = 12,
                rep = 'craftingrep',
                points = 1,
                threshold = 0,
                time = 35000,
                chance = 50
            },
        },
	},


       

	[4] = {
        name = 'Feuille de tabac',
        isjob = false,
        grades = 'all',
        text = '[E] - Feuille de tabac Attachment',
        blip = {
            enabled = true,
            title = 'Feuille de tabac Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(2826.0652, 4589.7358, 46.6417),
            items = {
            [1] = {
                name = 'ftabac',
                amount = 50,
                info = {},
                costs = {},
                type = 'item',
                slot = 1,
                rep = '',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            }

        }
    },


	[5] = {
        name = 'Tabac sec Crafting',
        isjob = false,
        grades = 'all',
        text = '[E] - Tabac sec Attachment',
        blip = {
            enabled = true,
            title = 'Tabac sec Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(2830.1816, 4583.9028, 46.7595),
            items = {
            [1] = {
                name = 'tabacsec',
                amount = 50,
                info = {},
                costs = {             
                           ['ftabac'] = 5,
                         },
                type = 'item',
                slot = 1,
                rep = '',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            }

        }
    },

	[6] = {
        name = 'Tabac broyer Crafting',
        isjob = false,
        grades = 'all',
        text = '[E] - Tabac broyer Attachment',
        blip = {
            enabled = true,
            title = 'Tabac broyer Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(2835.7634, 4585.2568, 46.8728),
            items = {
            [1] = {
                name = 'tabacbroyer',
                amount = 50,
                info = {},
                costs = {             
                           ['tabacsec'] = 5,
                         },
                type = 'item',
                slot = 1,
                rep = '',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            }

        }
    },


	[7] = {
        name = 'Paquet de Marlboro Crafting',
        isjob = false,
        grades = 'all',
        text = '[E] - Paquet de Marlboro Attachment',
        blip = {
            enabled = true,
            title = 'Paquet de Marlboro Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(283.4422, -1935.3303, 26.8964),
            items = {
            [1] = {
                name = 'dg_marlboro',
                amount = 50,
                info = {},
                costs = {             
                           ['tabacbroyer'] = 5,
                         },
                type = 'item',
                slot = 1,
                rep = '',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            }

        }
    },


	[8] = {
        name = 'Paquet de Camel Crafting',
        isjob = false,
        grades = 'all',
        text = '[E] - Paquet de Camel Attachment',
        blip = {
            enabled = true,
            title = 'Paquet de Camel Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(283.5503, -1937.2394, 26.9004),
            items = {
            [1] = {
                name = 'dg_camel',
                amount = 50,
                info = {},
                costs = {             
                           ['tabacbroyer'] = 5,
                         },
                type = 'item',
                slot = 1,
                rep = '',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            }

        }
    },


	[9] = {
        name = 'Paquet de Redwood Crafting',
        isjob = false,
        grades = 'all',
        text = '[E] - Paquet de Redwood Attachment',
        blip = {
            enabled = true,
            title = 'Paquet de Redwood Crafting',
            scale = 1.0,
            display = 4,
            colour = 0,
            id = 365
        },
        location = vec3(274.1027, -1933.5421, 26.8964),
            items = {
            [1] = {
                name = 'dg_redwood',
                amount = 50,
                info = {},
                costs = {             
                           ['tabacbroyer'] = 5,
                         },
                type = 'item',
                slot = 1,
                rep = '',
                points = 1,
                threshold = 0,
                time = 5000,
                chance = 90
            }

        }
    }
    
}
PreviousÉtape 5NextProblèmes communs

Last updated 1 year ago