Configuration
Config = {}
--## Configuration starts here ##--
-----------------------------------
Config.EnablePoliceAlert = true -- If true police will receive alerts if someone is starting to scrap
Config.UseCustomAlert = false -- If true you can use your own custom alert below
Config.CustomAlert = function()
-- EXAMPLE FOR PS-DISPATCH:
-- exports['ps-dispatch']:SuspiciousActivity()
end
Config.Target = "qb-target" -- "qb-target" or "ox_target"
Config.MiniGame = true -- Enable/Disable true/false Mini Game
Config.PoliceAmount = 0 -- Amount of needed Police to start Scrap - 0 for no Police or minimum 2
Config.Cooldown = {
cooldown = true, -- Set Cooldown true/false if scrapping failed or was successfully
cooldowntime = 5 * 60000, -- Cooldown after successfully or failing scrapping (10*60000 = 5 Minutes)
}
Config.RandomItem = math.random(2, 4) -- Get random 2 to 4 items
Config.RandomAmount = math.random(15,28)
Config.Rewards = { -- Add as many items as you want
"metalscrap",
"iron",
"steel",
"plastic",
"rubber",
}
Config.RobSettings = {
item = "laser_cutter", -- Item to Scrap Materials [REQUIRED / Add Item to your items.lua]
removeitem = false, -- Removes Item after scrapping
scraptime = 25 * 1000, -- Scrapping time (40*1000 = 40 Seconds)
}
Config.ScrapSettings = {
TargetDistance = 2.0, -- Interact distance
NumberOfCircles = 2,
CircleMS = 10,
from = 0, -- 0 AM
to = 23, -- 23 PM
policecallchance = 100, -- 100% Police call chance from 0 AM - 23 PM
}
Config.ScrapParts = {
"prop_rub_buswreck_01",
"prop_rub_buswreck_03",
"prop_rub_buswreck_06",
"prop_rub_trukwreck_1",
"prop_wrecked_buzzard",
"prop_rub_carwreck_5",
"prop_car_engine_01",
"prop_rub_carpart_03",
"prop_rub_railwreck_1",
"prop_rub_carwreck_10",
"prop_rub_carwreck_12",
"prop_rub_carwreck_13",
"prop_rub_carwreck_17",
"prop_rub_carwreck_2",
"prop_rub_carwreck_9",
"prop_rub_carwreck_14",
"prop_rub_carwreck_15",
"prop_rub_carwreck_3",
"prop_rub_carwreck_8",
"prop_rub_carwreck_16",
"prop_rub_carwreck_7",
"prop_rub_carwreck_11",
"prop_rub_bike_03",
"prop_rub_t34",
"prop_rub_bike_02",
"prop_rub_bike_01",
"prop_rub_chassis_02",
"prop_rub_wreckage_9",
"prop_rub_wreckage_3",
}
Config.Lang = {
["target_lable"] = "Scrap Wreck",
["item_need"] = "You need a laser cutter to scrap this",
["no_police"] = "Not enough police presence in the state",
["cooldown"] = "You recently collected scrap, you need to wait a while before trying again",
["police_alert"] = "ILLEGAL MATERIAL SCRAPPING",
["failed"] = "You failed! Evade and try again later",
["hacksuccess"] = "Oh yeah! You've collected some parts of the wreck; here we go!",
["scrapping"] = "You are collecting debris...",
}
Config = {}
--## Configuration starts here ##--
-----------------------------------
Config.EnablePoliceAlert = true -- If true police will receive alerts if someone is starting to scrap
Config.CustomAlert = function()
exports['ps-dispatch']:SuspiciousActivity()
end
Config.MiniGame = true -- Enable/Disable true/false Mini Game
Config.PoliceAmount = 0 -- Amount of needed Police to start Scrap - 0 for no Police or minimum 2
Config.PoliceJobs = { -- Only for ESX
"police",
"sheriff",
}
Config.Cooldown = {
cooldown = true, -- Set Cooldown true/false if scrapping failed or was successfully
cooldowntime = 5 * 60000, -- Cooldown after successfully or failing scrapping (10*60000 = 5 Minutes)
}
Config.RandomItem = math.random(2, 4) -- Get random 2 to 4 items
Config.RandomAmount = math.random(15,28)
Config.Rewards = { -- Add as many items as you want
"metalscrap",
"iron",
"steel",
"plastic",
"rubber",
}
Config.RobSettings = {
item = "laser_cutter", -- Item to Scrap Materials [REQUIRED / Add Item to your items.lua]
removeitem = false, -- Removes Item after scrapping
scraptime = 25 * 1000, -- Scrapping time (40*1000 = 40 Seconds)
}
Config.ScrapSettings = {
TargetDistance = 2.0, -- Interact distance
NumberOfCircles = 2,
CircleMS = 10,
from = 0, -- 0 AM
to = 23, -- 23 PM
policecallchance = 100, -- 100% Police call chance from 0 AM - 23 PM
}
Config.ScrapParts = {
"prop_rub_buswreck_01",
"prop_rub_buswreck_03",
"prop_rub_buswreck_06",
"prop_rub_trukwreck_1",
"prop_wrecked_buzzard",
"prop_rub_carwreck_5",
"prop_car_engine_01",
"prop_rub_carpart_03",
"prop_rub_railwreck_1",
"prop_rub_carwreck_10",
"prop_rub_carwreck_12",
"prop_rub_carwreck_13",
"prop_rub_carwreck_17",
"prop_rub_carwreck_2",
"prop_rub_carwreck_9",
"prop_rub_carwreck_14",
"prop_rub_carwreck_15",
"prop_rub_carwreck_3",
"prop_rub_carwreck_8",
"prop_rub_carwreck_16",
"prop_rub_carwreck_7",
"prop_rub_carwreck_11",
"prop_rub_bike_03",
"prop_rub_t34",
"prop_rub_bike_02",
"prop_rub_bike_01",
"prop_rub_chassis_02",
"prop_rub_wreckage_9",
"prop_rub_wreckage_3",
}
Config.Lang = {
["target_lable"] = "Scrap Wreck",
["item_need"] = "You need a laser cutter to scrap this",
["no_police"] = "Not enough police presence in the state",
["cooldown"] = "You recently collected scrap, you need to wait a while before trying again",
["police_alert"] = "ILLEGAL MATERIAL SCRAPPING",
["failed"] = "You failed! Evade and try again later",
["hacksuccess"] = "Oh yeah! You've collected some parts of the wreck; here we go!",
["scrapping"] = "You are collecting debris...",
["notify_header"] = "Illegal Scrap",
["notify_subheader"] = "Info",
}
Last updated