Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- -- General Configurations
- Config.Framework = "auto" -- auto, esx, qb
- Config.Target = false
- Config.Language = "en" -- en, de, fr, sp
- Config.WeaponAsItem = false -- If you are not using weapons as items but instead using the weapon wheel, set this to false.
- -- Crafting Stations Configuration
- Config.CraftingStations = {
- [1] = {
- enableNPC = true,
- theme = "metal", -- Theme for Crafting Station 1
- npc = "a_m_m_eastsa_01",
- location = {
- vec4(-294.8039, 2543.8181, 74.4158, 0.0284) -- Coordinates for NPC, Blip, Prop, and Marker
- },
- blip = {
- enable = true,
- label = "Weapon Crafting Station",
- sprite = 566,
- color = 40,
- scale = 0.8
- },
- prop = {
- enable = true,
- model = "prop_tool_bench02_ld",
- heading = 267.9657,
- offsetX = 0.00,
- offsetY = 0.78
- },
- marker = {
- enable = true,
- type = 1,
- size = vector3(1.0, 1.0, 1.0),
- color = { r = 0, g = 0, b = 0, a = 100 },
- rotate = true,
- bobUpAndDown = true,
- faceCamera = false
- },
- items = {
- {
- item = "weapon_pistol",
- label = "Pistol",
- amount = 1,
- description = "A reliable semi-automatic handgun for self-defense.",
- type = "weapon",
- time = 10 * 1000, -- 10 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 5,
- remove = true
- },
- {
- item = "gunpowder",
- label = "Gunpowder",
- amount = 3,
- remove = true
- }
- }
- },
- {
- item = "weapon_snspistol",
- label = "SNS Pistol",
- amount = 1,
- description = "A compact and concealable pistol with decent power.",
- type = "weapon",
- time = 8 * 1000, -- 8 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 3,
- remove = true
- },
- {
- item = "grip",
- label = "Grip",
- amount = 1,
- remove = true
- }
- }
- },
- {
- item = "weapon_combatpistol",
- label = "Combat Pistol",
- amount = 1,
- description = "A compact, lightweight pistol designed for combat.",
- type = "weapon",
- time = 12 * 1000, -- 12 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 6,
- remove = true
- },
- {
- item = "gunpowder",
- label = "Gunpowder",
- amount = 4,
- remove = true
- },
- {
- item = "grip",
- label = "Grip",
- amount = 2,
- remove = true
- }
- }
- },
- {
- item = "weapon_microsmg",
- label = "Micro SMG",
- amount = 1,
- description = "A lightweight submachine gun for fast engagements.",
- type = "weapon",
- time = 15 * 1000, -- 15 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 8,
- remove = true
- },
- {
- item = "gunpowder",
- label = "Gunpowder",
- amount = 6,
- remove = true
- },
- {
- item = "spring",
- label = "Spring",
- amount = 2,
- remove = true
- }
- }
- },
- {
- item = "weapon_assaultrifle",
- label = "Assault Rifle",
- amount = 1,
- description = "A powerful full-sized rifle for heavy engagements.",
- type = "weapon",
- time = 20 * 1000, -- 20 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 12,
- remove = true
- },
- {
- item = "gunpowder",
- label = "Gunpowder",
- amount = 8,
- remove = true
- },
- {
- item = "grip",
- label = "Grip",
- amount = 3,
- remove = true
- }
- }
- }
- }
- },
- [2] = {
- enableNPC = true,
- theme = "wood", -- Theme for Crafting Station 2
- npc = "s_m_m_dockwork_01",
- location = {
- vec4(-128.2356, -1033.9167, 26.6540, 239.2586), -- Coordinates for NPC, Blip, Prop, and Marker
- },
- blip = {
- enable = true,
- label = "Crafting Station",
- sprite = 779,
- color = 0,
- scale = 0.8
- },
- prop = {
- enable = true,
- model = "prop_tool_bench02_ld",
- heading = 152.7539,
- offsetX = 0.95,
- offsetY = 0.95
- },
- marker = {
- enable = true,
- type = 1,
- size = vector3(1.0, 1.0, 1.0),
- color = { r = 255, g = 0, b = 0, a = 100 },
- rotate = true,
- bobUpAndDown = true,
- faceCamera = false
- },
- items = {
- {
- item = "medikit",
- label = "Medikit",
- amount = 1,
- description = "A complete first-aid kit for emergencies.",
- type = "item",
- time = 10 * 1000, -- 10 seconds
- requirements = {
- {
- item = "bandage",
- label = "Bandage",
- amount = 2,
- remove = true
- },
- {
- item = "painkillers",
- label = "Painkillers",
- amount = 1,
- remove = true
- }
- }
- },
- {
- item = "repairkit",
- label = "Repair Kit",
- amount = 1,
- description = "A toolkit for repairing vehicles.",
- type = "item",
- time = 15 * 1000, -- 15 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 3,
- remove = true
- },
- {
- item = "duct_tape",
- label = "Duct Tape",
- amount = 1,
- remove = true
- }
- }
- },
- {
- item = "sandwich",
- label = "Sandwich",
- amount = 1,
- description = "A quick snack to regain energy.",
- type = "item",
- time = 5 * 1000, -- 5 seconds
- requirements = {
- {
- item = "brot",
- label = "Bread",
- amount = 1,
- remove = true
- },
- {
- item = "cheese",
- label = "Cheese",
- amount = 1,
- remove = true
- }
- }
- },
- {
- item = "syringe",
- label = "Syringe",
- amount = 1,
- description = "Just Syringe.",
- type = "item",
- time = 12 * 1000, -- 12 seconds
- requirements = {
- {
- item = "bandage",
- label = "Bandage",
- amount = 3,
- remove = true
- },
- {
- item = "painkillers",
- label = "Painkillers",
- amount = 2,
- remove = true
- }
- }
- },
- {
- item = "lockpick",
- label = "Lockpick",
- amount = 1,
- description = "A handy tool to pick simple locks.",
- type = "item",
- time = 8 * 1000, -- 8 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 2,
- remove = true
- },
- {
- item = "duct_tape",
- label = "Duct Tape",
- amount = 1,
- remove = true
- }
- }
- },
- {
- item = "flashlight",
- label = "Flashlight",
- amount = 1,
- description = "A portable light source for dark areas.",
- type = "item",
- time = 7 * 1000, -- 7 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 2,
- remove = true
- },
- {
- item = "grip",
- label = "Grip",
- amount = 1,
- remove = true
- }
- }
- },
- {
- item = "weapon_pistol",
- label = "Pistol",
- amount = 1,
- description = "A reliable semi-automatic handgun for self-defense.",
- type = "weapon",
- time = 10 * 1000, -- 10 seconds
- requirements = {
- {
- item = "metal_scrap",
- label = "Metal Scrap",
- amount = 5,
- remove = true
- },
- {
- item = "license",
- label = "License",
- amount = 1,
- remove = false
- },
- {
- item = "gunpowder",
- label = "Gunpowder",
- amount = 3,
- remove = true
- }
- }
- },
- {
- item = "coffee",
- label = "Coffee",
- amount = 1,
- description = "A warm cup of coffee to boost energy.",
- type = "item",
- time = 5 * 1000, -- 5 seconds
- requirements = {
- {
- item = "wasser",
- label = "Wasser",
- amount = 1,
- remove = true
- },
- {
- item = "coffee_beans",
- label = "Coffee Beans",
- amount = 1,
- remove = true
- }
- }
- }
- }
- },
- }
- Config.Locales = {
- ["en"] = {
- open_craft = "[E] Open Craft Menu",
- success = "You successfully crafted.",
- no_item = "Not enough items for crafting."
- },
- ["de"] = {
- open_craft = "[E] Öffne das Craft-Menü",
- success = "Du hast erfolgreich hergestellt.",
- no_item = "Nicht genügend Gegenstände zum Herstellen."
- },
- ["sp"] = {
- open_craft = "[E] Abrir menú de creación",
- success = "Has creado con éxito.",
- no_item = "No tienes suficientes objetos para crear."
- },
- ["fr"] = {
- open_craft = "[E] Ouvrir le menu d'artisanat",
- success = "Vous avez fabriqué avec succès.",
- no_item = "Pas assez d'objets pour fabriquer."
- }
- }
- function getFramework()
- if Config.Framework == "esx" then
- return exports['es_extended']:getSharedObject(), "esx"
- elseif Config.Framework == "qb" then
- return exports["qb-core"]:GetCoreObject(), "qb"
- elseif Config.Framework == "auto" then
- if GetResourceState('qb-core') == 'started' then
- return exports["qb-core"]:GetCoreObject(), "qb"
- elseif GetResourceState('es_extended') == 'started' then
- return exports['es_extended']:getSharedObject(), "esx"
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement