m-Scripts
  • m-Scripts Documentation
  • QBCore
    • Jobs
      • 🚗[QB] TunerJob
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🍞[QB] BeanMachine
        • 🛠️Installation
        • 🗒️Config
      • 🍔[QB] Burgershot
        • 🛠️Installation
        • 🗒️Config
      • 🍈[QB] CoolBeans
        • 🛠️Installation
        • 🗒️Config
      • 🚚[QB] Deliveries
        • 🛠️Installation
        • 📃Config
          • 📃config_functions
      • 🍎[QB] Farming
        • 🛠️Installation
        • 🗒️Config
      • 🐟[QB] Fishing
        • 🛠️Installation
        • 🗒️Config
          • 📄config_diving
          • 📄config_fishingnet
          • 📄config_fishingrod
          • 📄config_functions
          • 📄config_language
          • 📄config_seashells
          • 📄config_tournament
          • 📄config_upgrades
      • 🚛[QB] Garbage
        • 🛠️Installation
        • 🗒️Config
      • 🗝️[QB] GoldRush
        • 🛠️Installation
        • 🗒️Config
      • ⛰️[QB] Hunting
        • 🛠️Installation
        • 🗒️Config
      • 🪵[QB] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[QB] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🛢️[QB] Oil Factory
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • ☕[QB] Pond Coffee
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🚚[QB] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🥃[QB] Vanilla
        • 🛠️Installation
        • 🗒️Config
      • 🛻[QB] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • 🥃[QB] Bahamas
        • 🛠️Installation
        • 📄Config
      • 🔫[QB] Ammunation
        • 🛠️Installation
        • 📄Config
      • 🐟[QB] Pearls
        • 🛠️Installation
        • 📄Config
      • 🔓[QB] Impound
        • 🛠️Installation
        • 📄Config
        • ✅Garages
      • 🚘[QB] Vehicleshop
        • 🛠️Installation
        • 📄Config
          • Functions
          • Job
          • Language
        • ❓Common Questions
    • General
      • 🏕️[QB] Camping
        • 🛠️Installation
        • 🗒️Config
          • Consumables
          • Language
      • 🎄[QB] Christmas
        • 🛠️Installation
        • 🗒️Config
      • 🎃[QB] Halloween
        • 🛠️Installation
        • 🗒️Config
      • 📔[QB] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 🗒️Config
        • 🔁Server-Exports
      • 🏘️[QB] Vespucci
        • 🛠️Installation
        • 🗒️Config
          • Brewery
          • Digital Den
          • Masquerade
          • Pro Bikes
      • 🏖️[QB] Beach Activities
        • 🛠️Installation
        • 🗒️Config
      • 🚘[QB] Car Rental
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • ✈️[QB] Sky Racing
        • 🛠️Installation
        • 📄Config
      • 🚘[QB] Car Wash
        • 🛠️Installation
        • 📄Config
      • 🪨[QB] Grinder
        • 🛠️Installation
        • 📄Config
      • 📹[QB] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
      • 🏠[QB] Motel
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • 🏚️[QB] Job Center
        • 📄Config
      • 🛠️[QB] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
    • Illegal
      • 🔫[QB] Gangs
        • 🛠️Installation
        • 🗒️Config
      • 🔔[QB] Drug Selling
        • 🗒️Config
      • 🌱[QB] Drugs
        • 🛠️Installation
        • 🗒️Config
      • 🍯[QB] Craft Potion
        • 🛠️Installation
        • 🗒️Config
      • 🅱️[QB] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🚗[QB] Car Thief
        • 🗒️Config
      • 🏠[QB] House Robbery
        • 🛠️Installation
        • 🗒️Config
      • 💎[QB] Jewelry
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ®️[QB] Mini Robberys
        • 🛠️Installation
        • 🗒️Config
      • 💰[QB] MoneyWash
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🔫[QB] Rob NPC
        • 🛠️Installation
        • 🗒️Config
      • 🏃‍♂️[QB] Runs
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ⛽[QB] Steal Fuel
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🏬[QB] Store Robbery
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🪛[QB] Scrapyard
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 👾[QB] Territories
        • 🛠️Installation
        • 📄Config
          • Functions
      • 🏨[QB] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • ESX
    • Jobs
      • 🚗[ESX] Tunerjob
        • ❗Dependencies
        • 🛠️Installation
          • ℹ️OX-Inventory
          • ℹ️QS-Inventory
        • 🗒️Config
          • BlacklistVehicles
          • Craft
          • Functions
          • Language
          • Targets
          • Wraps
          • Events
        • ❓Common Questions
      • 🚚[ESX] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🪵[ESX] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • 🛻[ESX] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[ESX] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🎣[ESX] Fishing
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • Diving
          • Fishingnet
          • Fishingrod
          • Seashells
          • Tournament
          • Upgrades
    • General
      • 🚘[ESX] Car Rental
        • 🛠️Installation
        • 🗒️Config
      • 📃[ESX] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 📄Config
        • 🔁 Server-Exports
      • 🚘[ESX] Car Wash
        • 🛠️Installation
        • 📄Config
      • 📹[ESX] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
        • 🏠[ESX] Motel
          • 🛠️Installation
          • 📄Config
          • 🖥️Compatibilities
      • 🛠️[ESX] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🎄[ESX] Christmas
        • 🛠️Installation
        • 📄Configs
    • Illegal
      • 🔫[ESX] Gangs
        • 🛠️Installation
        • 📄Config
        • ❓Common Questions
      • 🅱️[ESX] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🏨[ESX] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • Both Framework
    • Scripts
      • 🚗Car Rebuild
        • 🛠️Installation
        • 🗒️Config
      • 🗺️City Guide
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🛒Shops
        • 📄Config
        • 🛠️Installation
      • 🔁Reputation
        • 📄Config
        • 🛠️Installation
        • ⁉️Exports & Commands
          • Server Exports
          • Commands
      • 💤AFK System
        • 📄Configs
        • 🛠️Installation
      • 🚗Garages
        • 🛠️Installation
        • 📑User Guide
          • Create Garages
          • Create Private Garage
          • Impound & Auctions
          • Add vehicle to gang/job
          • Commands
        • 🔁Compatibilities
      • ✈️Airplane Job
        • 🛠️Installation
        • 📃Configs
        • ℹ️Exports
      • 📋Scoreboard
        • 📃Config
      • 📦StorageUnits
        • 🛠️Installation
        • 📃Config
Powered by GitBook
On this page
  1. QBCore
  2. Illegal
  3. [QB] Scrapyard

Config

Config = {}

--░██████╗███████╗████████╗████████╗██╗███╗░░██╗░██████╗░░██████╗
--██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗░██║██╔════╝░██╔════╝
--╚█████╗░█████╗░░░░░██║░░░░░░██║░░░██║██╔██╗██║██║░░██╗░╚█████╗░
--░╚═══██╗██╔══╝░░░░░██║░░░░░░██║░░░██║██║╚████║██║░░╚██╗░╚═══██╗
--██████╔╝███████╗░░░██║░░░░░░██║░░░██║██║░╚███║╚██████╔╝██████╔╝
--╚═════╝░╚══════╝░░░╚═╝░░░░░░╚═╝░░░╚═╝╚═╝░░╚══╝░╚═════╝░╚═════╝░


Config.Settings = {
	core = "qb-core", -- Your qb-core folder name
	target = "qb-target", -- Your qb-target folder name
	menu = "qb-menu", -- Your qb-menu folder name
	webhook = "", -- Webhook for logs
	minigame = "ps-ui", -- "ps-ui" / "qb-skillbar" / "qb-lock"
	removeItem = false, -- If true when you dismant all car, screwvdriver and toolbox has been removed from your inventory
	screwdriver = "m_screwdriver", -- Item to open menu to dismant vehicles
	zones = false, -- If true, only can dismant in specific zones. ( Config.Zones )
	cooldown = true, -- If true, when player dismant all car need wait some minutes to dismant again
	cooldownTime = 10, -- 10 = 10 Minutes
	policeNeed = 0,
	policeJobs = {"police", "lspd"},
	job = "all", -- "all" no job needed
}

Config.Blip = { 
	location = vector3(-428.59, -1728.16, 18.78), 
	enable = true, 
	sprite = 566, 
	display = 4, 
	scale = 0.8, 
	name = "Scrapyard" 
}

Config.AlertPolice = {
	Enable = true, -- If true, when player complete the dismante of the car, the cops are alerted
	Job = "police", -- Your police job name
	Chance = 50, -- 50% Chance to call cops when you dismante a car
}

Config.Objects = {
	["toolbox"] = {model = `imp_prop_tool_cabinet_01b`, freeze = true}, -- Prop spawn with item "machine" to brake rocks
}

Config.Peds = { -- This is the npc's for garages
    [1] = {type = 4, hash= GetHashKey("s_m_m_gaffer_01"), x = -428.59,  y = -1728.16,  z = 18.78, h = 70.67}, 
}


Config.Zones = {
	vector3(-1527.78, -435.64, 35.44)
}

Config.Times = { -- This is the times on progressBars
	removeHood = 5000, 
  	removeRightFDoor = 5000,
  	removeLeftFDoor = 5000,
  	removeTrunk = 5000,
  	removeTyre = 5000,
  	dismantAllCar = 5000,
  	tradingHood = 5000,
  	tradingDoors = 5000,
  	tradingTrunk = 5000,
  	tradingTyre = 5000,
}


--██████╗░██████╗░██╗░█████╗░███████╗░██████╗
--██╔══██╗██╔══██╗██║██╔══██╗██╔════╝██╔════╝
--██████╔╝██████╔╝██║██║░░╚═╝█████╗░░╚█████╗░
--██╔═══╝░██╔══██╗██║██║░░██╗██╔══╝░░░╚═══██╗
--██║░░░░░██║░░██║██║╚█████╔╝███████╗██████╔╝
--╚═╝░░░░░╚═╝░░╚═╝╚═╝░╚════╝░╚══════╝╚═════╝░


Config.Prices = { -- Prices 
	Normal = {
		Type = "cash", -- "cash" or "bank"
		hood = { min = 50, max = 120},
		doors = { min = 50, max = 120},
		trunk = { min = 50, max = 120},
		tyre = { min = 50, max = 120},
	},
}


--██████╗░██████╗░░█████╗░██████╗░░██████╗
--██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝
--██║░░██║██████╔╝██║░░██║██████╔╝╚█████╗░
--██║░░██║██╔══██╗██║░░██║██╔═══╝░░╚═══██╗
--██████╔╝██║░░██║╚█████╔╝██║░░░░░██████╔╝
--╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚═════╝░
-- This is the drops when you search on spots and all car
Config.Drops = {
	[1] = { item = "plastic", amount = math.random(2,4)},
	[2] = { item = "metalscrap", amount = math.random(2,4)},
	[3] = { item = "copper", amount = math.random(2,4)},
	[4] = { item = "aluminum", amount = math.random(2,4)},
	[5] = { item = "iron", amount = math.random(2,4)}
}



--░██╗░░░░░░░██╗░█████╗░██████╗░███████╗██╗░░██╗░█████╗░██╗░░░██╗░██████╗███████╗
--░██║░░██╗░░██║██╔══██╗██╔══██╗██╔════╝██║░░██║██╔══██╗██║░░░██║██╔════╝██╔════╝
--░╚██╗████╗██╔╝███████║██████╔╝█████╗░░███████║██║░░██║██║░░░██║╚█████╗░█████╗░░
--░░████╔═████║░██╔══██║██╔══██╗██╔══╝░░██╔══██║██║░░██║██║░░░██║░╚═══██╗██╔══╝░░
--░░╚██╔╝░╚██╔╝░██║░░██║██║░░██║███████╗██║░░██║╚█████╔╝╚██████╔╝██████╔╝███████╗
--░░░╚═╝░░░╚═╝░░╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝╚═╝░░╚═╝░╚════╝░░╚═════╝░╚═════╝░╚══════╝


Config.SettingsWarehouse = {
	Chance = 5, -- 5% Chance to get warehouse lockpick on illegal ped

	Cooldown = 45, -- 45 = 45 Minutes

	PoliceJob = "police", -- Your police job name

	Item = "warehouselockpick", -- Item needed to break the door of warehouse

	LocWarehouseInside = vector3(1087.83, -3099.53, -39.0), -- Location inside the warehouse

	LocWarehouseOutside = vector3(-539.95, -1638.06, 19.89), -- Door to break the warehouse

	TimeProgressbarSearching = 5000, -- Time of progressbar when searcing spots inside the warehouse

	Minigame = {
		PSui = {
			NumberOfCircles = 2,
			MS = 20,
		},
		QBLock = {
			circles = math.random(2,4),
			time = math.random(7,10) ,
		},
		QBSkillbar = {
			duration = math.random(2500,5000),
		   pos = math.random(10, 30),
		   width = math.random(10, 20),
		}
	},

	LocSteal = {
		[1] = vector3(1088.79, -3096.72, -40.0), -- This is the locations to search on target and where object is gona spawn for looting
		[2] = vector3(1091.31, -3096.72, -40.0), -- This is the locations to search on target and where object is gona spawn for looting
		[3] = vector3(1095.22, -3096.64, -40.0), -- This is the locations to search on target and where object is gona spawn for looting
		[4] = vector3(1101.31, -3096.64, -40.0), -- This is the locations to search on target and where object is gona spawn for looting
		[5] = vector3(1103.89, -3096.87, -40.0), -- This is the locations to search on target and where object is gona spawn for looting
		[6] = vector3(1097.75, -3096.82, -40.0), -- This is the locations to search on target and where object is gona spawn for looting
	},

	Objects = {
		[1] = "prop_boxpile_03a", -- Objects. You can search and edit here: https://gtahash.ru/
		[2] = "prop_boxpile_07a", -- Objects. You can search and edit here: https://gtahash.ru/
		[3] = "prop_boxpile_06b", -- Objects. You can search and edit here: https://gtahash.ru/
		[4] = "prop_boxpile_02d", -- Objects. You can search and edit here: https://gtahash.ru/
		[5] = "prop_boxpile_02b", -- Objects. You can search and edit here: https://gtahash.ru/
		[6] = "p_secret_weapon_02", -- Objects. You can search and edit here: https://gtahash.ru/
		[7] = "prop_box_wood05a", -- Objects. You can search and edit here: https://gtahash.ru/
	},

	Drops = { -- Drop items when you search a object
	ChanceRare = 10,
		NormalDrops = {
			[1] = { item = "iphone", amount = math.random(1,2) },
			[2] = { item = "repairkit", amount = math.random(1,2) },
			[3] = { item = "tablet", amount = math.random(1,2) },
			[4] = { item = "lockpick", amount = math.random(1,2) },
			[5] = { item = "water_bottle", amount = math.random(1,2) },
		},
		RareDrops = {
			[1] = { item = "advancedlockpick", amount = math.random(1,2) },
			[2] = { item = "weapon_pistol", amount = math.random(1,2) },
		}
	}
}


--░██████╗███████╗░█████╗░██████╗░░█████╗░██╗░░██╗
--██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██║░░██║
--╚█████╗░█████╗░░███████║██████╔╝██║░░╚═╝███████║
--░╚═══██╗██╔══╝░░██╔══██║██╔══██╗██║░░██╗██╔══██║
--██████╔╝███████╗██║░░██║██║░░██║╚█████╔╝██║░░██║
--╚═════╝░╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝

Config.CooldownSearching = 3600 -- 1 Hour and all config locations has been reseted

Config.Locations = { -- Locations people can search and find some items
   {coords = vector3(-448.86, -1711.92, 18.76), looted = false},
   {coords = vector3(-476.48, -1703.91, 18.86), looted = false},
   {coords = vector3(-481.23, -1710.56, 18.7), looted = false},
   {coords = vector3(-448.56, -1686.01, 19.02), looted = false},
   {coords = vector3(-445.27, -1676.06, 19.49), looted = false},
   {coords = vector3(-439.9, -1667.04, 19.03), looted = false},
   {coords = vector3(-478.14, -1656.08, 18.69), looted = false},
   {coords = vector3(-487.34, -1672.76, 19.53), looted = false},
   {coords = vector3(-495.45, -1684.34, 19.32), looted = false},
   {coords = vector3(-489.9, -1691.99, 19.26), looted = false},
   {coords = vector3(-501.55, -1704.43, 19.32), looted = false},
   {coords = vector3(-511.3, -1696.16, 19.35), looted = false},
   {coords = vector3(-519.5, -1685.22, 19.66), looted = false},
   {coords = vector3(-517.1, -1678.93, 19.32), looted = false},
   {coords = vector3(-548.54, -1675.57, 19.54), looted = false},
   {coords = vector3(-544.44, -1662.01, 19.54), looted = false},
   {coords = vector3(-546.39, -1653.49, 19.31), looted = false},
   {coords = vector3(-556.32, -1642.25, 19.1), looted = false},
   {coords = vector3(-528.9, -1620.22, 17.8), looted = false},
   {coords = vector3(-506.35, -1638.33, 17.8), looted = false},
   {coords = vector3(-501.56, -1633.16, 17.8), looted = false},
   {coords = vector3(-497.05, -1642.86, 17.8), looted = false},
   {coords = vector3(-564.45, -1635.61, 19.26), looted = false},
   {coords = vector3(-587.26, -1656.29, 19.39), looted = false},
   {coords = vector3(-584.17, -1671.25, 19.32), looted = false},
   {coords = vector3(-576.52, -1682.79, 19.21), looted = false},
   {coords = vector3(-577.55, -1684.97, 19.21), looted = false},
   {coords = vector3(-585.21, -1703.17, 18.91), looted = false},
   {coords = vector3(-571.77, -1706.56, 18.98), looted = false},
   {coords = vector3(-571.1, -1698.91, 19.28), looted = false},
}
PreviousInstallationNextFunctions

Last updated 1 year ago

🪛
🗒️