Forosty's Development
  • 🌱Weed Run
    • 📄Installation
      • 🔴QBCore
      • 🟡ESX
    • 📚Configuration
  • 🪣Sanitation
    • 📄Installation
      • 🔴QBCore
      • 🟡ESX
    • 📚Configuration
Powered by GitBook
On this page
  1. Weed Run

Configuration

Preview of the Weed Run configuration files

  • Shared Configuration (Client & Server Side)

Config = Config or {}

-- General Configuration
Config.ESX = false -- ESX = true / QBCore = false 
Config.Notification = "OX" -- QB = QBCore Notification / ESX = ESX Notification / OX = Overextended Notification 

-- Police Configuration 
Config.AlertChance = 50 -- %, Chance that the polices are alerted after delivering a package
function policeAlert()
    -- Insert your police alert export here
end 

-- Delivery Configuration
Config.DeliveryPeds = { -- Delivery ped models
    "a_m_y_skater_01",
    "a_m_y_vinewood_03",
    "a_m_y_soucent_02",
    "a_m_y_soucent_03",
    "a_m_y_methhead_01",
    "a_m_m_eastsa_01",
    "a_m_m_genfat_01",
    "a_m_m_mexlabor_01",
    "s_m_o_busker_01",
    "s_m_y_barman_01", 
    "s_m_m_gardener_01", 
    "mp_f_boatstaff_01", 
    "csb_talmm",
    "csb_undercover",
    "csb_maude", 
    "csb_chin_goon",
    "cs_nigel",
    "cs_maryann", 
    "a_m_m_bevhills_01",
    "a_f_y_hiker_01", 
    "a_f_o_soucent_01", 
    "a_f_m_soucentmc_01", 
    "a_m_y_breakdance_01", 
    "a_m_y_beach_01", 
    "cs_jimmyboston", 
    "cs_manuel",
    "g_m_y_korean_02", 
    "s_f_y_sweatshop_01", 
    "ig_djgeneric_01", 
    "ig_djblamrupert", 
    "ig_djblamadon", 
    "ig_janet",
}

Config.DeliveryLocationBlip = { -- Delivery location blip
    type = 501, 
    color = 52, 
    routesEnabled = true, 
    routesColor = 52,
    text = "Delivery Location",
}
  • Server Side Configuration

Config = Config or {}

-- Police Configuration
Config.PoliceJobs = {"police"} -- Jobs that are considered as "police"
Config.PoliceNeeded = 1 -- Amount of police needed to start the run

-- Cooldown Configuration 
Config.GlobalCooldown = false -- true = Cooldown to everyone / false = Cooldown only for the player 
Config.Cooldown = 1 -- In minutes  

-- Ped Configuration
Config.PedModel = "a_m_y_eastsa_01"
Config.PedCoords = vector4(179.81, -1637.38, 28.297, 213.26)
Config.PedBlip = {
    enabled = true, 
    type = 496,
    color = 2,
    text = "Weed Run",
}

-- Delivery Configuration
Config.PackagesNeeded = 2 -- Minimum amount of packages needed to start the run

Config.ExtraMoney = { -- Extra money given by the delivery ped
    enabled = true, 
    chance = 100, 
    minAmount = 100, 
    maxAmount = 500,
}

Config.ItemDrops = { -- Extra items that the delivery ped gives
    enabled = false,
    items = { -- Add your own items 
        {name = "", chance = 100, max = 2}, 
    },
}

Config.LaunderItems = { -- Items that can be laundered (The delivery ped takes the item and gives some money in exchange)
    -- name = "item name", chance = laundering chance, max = the maximum amount that the delivery ped can take, money = the amount of money it can give
    {name = "marked_bills", chance = 25, max = 3, money = {minAmount = 400, maxAmount = 450}},
    {name = "bands", chance = 50, max = 8, money = {minAmount = 250, maxAmount = 300}},
    {name = "rolls", chance = 85, max = 10, money = {minAmount = 100, maxAmount = 200}},
}

Config.DeliveryLocations = { -- Needs to be vector4
    vector4(-601.6, -1027.08, 21.53, 83.88),
    vector4(-1564.32, -406.44, 41.39, 225.44),
    vector4(902.4, -2273.12, 31.55, 265.44),
    vector4(-1790.52, -369.36, 44.1, 323.96),
    vector4(-1344.8, -722.36, 23.95, 131.04),
    vector4(429.44, -1905.0, 24.96, 136.04),
    vector4(1217.64, -1498.2, 33.85, 187.44),
    vector4(453.08, -1305.52, 29.13, 317.68),
    vector4(-326.16, -1305.8, 30.4, 354.00),
    vector4(-740.44, -279.64, 35.96, 282.92),
    vector4(-465.48, -1079.68, 22.55, 67.04),
    vector4(3.88, -200.68, 51.76, 159.12),
    vector4(1154.36, -1300.32, 33.84, 81.52),
    vector4(-1439.96, -378.16, 37.16, 112.44),
    vector4(-45.53, -1290.03, 28.22, 279.37),
    vector4(115.66, -1685.73, 32.5, 284.37),
    vector4(191.95, -2226.57, 5.97, 91.11),
    vector4(-397.32, -1887.18, 20.53, 354.27),
    vector4(-1063.42, -2215.09, 8.07, 150.94),
    vector4(-684.17, -1170.92, 9.62, 311.55),
    vector4(-914.03, -1313.41, 5.2, 300.98),
    vector4(-1323.25, -1025.48, 6.75, 121.79),
    vector4(-813.13, -585.54, 29.28, 306.86),
    vector4(-51.01, -356.08, 41.29, 340.93),
    vector4(-153.57, -41.12, 53.4, 66.56),
    vector4(-583.22, 195.42, 70.44, 99.8),
    vector4(-773.42, -187.89, 36.28, 117.77),
    vector4(-861.29, -355.99, 37.68, 26.15),
    vector4(-44.58, -587.2, 37.16, 66.61),
    vector4(-582.97, -1767.31, 22.195, 137.95),
    vector4(-1184.68, -1771.11, 2.9, 267.85),
    vector4(-1296.01, -1611.04, 3.1, 180.89),
    vector4(-1243.63, -1137.42, 6.75, 198.59),
    vector4(-2865.42, -7.45, 6.2, 207.02),
    vector4(-2949.65, 455.2, 14.31, 267.27),
    vector4(-1707.74, -269.23, 51.06, 232.69),
    vector4(-440.77, 287.44, 82.33, 84.26), 
    vector4(-298.88, 303.7, 89.72, 316.83), 
    vector4(110.86, 145.73, 103.8, 159.27), 
    vector4(374.89, -38.59, 90.26, 23.39),
}

PreviousESXNextSanitation

Last updated 1 year ago

🌱
📚