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] Runs

Config

Config = {}

Config.Core = "qb-core" -- Your qb-core folder
Config.Notify = "ox" -- Choose between "qb", "okok" or "ox" notify
Config.Dispatch = "ps-dispatch" -- Choose between "ps-dispatch" or "cd_dispatch"
Config.CallCops = 60 -- 60% Chance on calling the cops
Config.Inventory = "qb" -- Choose between "qb" or "ox" inventory
Config.Target = "qb" -- Choose between "qb" or "ox" target
Config.Menu = "qb" -- Choose between "qb" or "ox" menu
Config.TargetName = "qb-target" -- If you use other name for qb-target
Config.MenuName = "qb-menu" -- If you use other name for qb-menu
Config.Debug = true -- If true, some prints actived on console
Config.CommandRanking = "runsleader" -- Command to open a menu where it shows the TOP 5
Config.PoliceBlip = true -- If true, the police can see a blip over the player indicating the path they are taking
Config.PoliceJob = "police" -- Name of your police job
Config.Cooldown = 60 -- 60 = 1 Hour

Config.StartMission = {
    Item = nil, -- Need item to talk the first guy? | If you want item make: Item = "item you want" | ** This only works if you use qb-target ** 
    Ped = "a_m_m_hillbilly_01", -- Type of ped | https://docs.fivem.net/docs/game-references/ped-models/
    Blip = { enable = true, id = 126, colour = 1, scale = 0.9, name = 'Run It!' }, -- https://docs.fivem.net/docs/game-references/blips/
    Locations = { -- List of possible spawn's npc
        vector4(-1291.66, -280.22, 38.68, 29.03),
        -- You can add more locations
    },
}

Config.GetBoxes = {
    Ped = "a_m_m_hillbilly_01", -- Type of ped | https://docs.fivem.net/docs/game-references/ped-models/
    Locations = { -- List of possible spawn's npc
        vector4(-1082.51, -1631.17, 4.74, 123.66),
        -- You can add more locations
    },
    Items = {
        -- minXp = Minimum experience to get the item behind.
        -- maxXP = Experience needed to go to the second level (new box) Example: If you have 32 XP only receive weedbox, if you have 120 XP you can receive weedbox and methbox
        -- amountMin = Minimum amount of boxes the player receives
        -- amountMax = Maximum amount of boxes the player receives
        -- xpGive = Experience that the player earns on each delivery.
        -- maxXP on guns box, not necessary as it is the last level.

        weedbox = { minXP = 0,      maxXP = 100,    amountMin = 1,  amountMax = 3, xpGive = 1, },
        methbox = { minXP = 100,    maxXP = 300,    amountMin = 2,  amountMax = 6, xpGive = 2, },
        cokebox = { minXP = 300,    maxXP = 500,    amountMin = 3,  amountMax = 9, xpGive = 3,},
        gunsbox = { minXP = 650,    amountMin = 4,  amountMax = 12 },
    }
}

Config.DeliveryBoxes = {
    Ped = "a_m_m_hillbilly_01", -- Type of ped | https://docs.fivem.net/docs/game-references/ped-models/
    Weed = {
        Time = 2, -- Maximum time to deliver, if it takes longer, you do not receive any payment. | 2 = 2 Minutes
        Locations = {
            vector4(-573.07, -442.54, 34.34, 180.43),
            vector4(-1161.17, -217.89, 37.96, 332.33),
            vector4(-1453.49, -387.02, 38.19, 33.43),
            vector4(-1790.54, -400.75, 46.48, 323.15),
            vector4(-133.11, -1563.59, 34.25, 48.57),
            vector4(12.48, -1605.96, 29.4, 139.62),
            vector4(180.28, -1638.06, 29.29, 216.82),
            vector4(1337.48, -1525.66, 54.16, 161.98),
            vector4(1520.01, -1752.89, 78.65, 219.47)
        },
        Payments = {
            min = 100, -- Min payment for each box
            max = 200, -- Max payment for each box
        },
    },
    Coke = {
        Time = 2, -- Maximum time to deliver, if it takes longer, you do not receive any payment. | 2 = 2 Minutes
        Locations = {
            vector4(-573.07, -442.54, 34.34, 180.43),
            vector4(-1161.17, -217.89, 37.96, 332.33),
            vector4(-1453.49, -387.02, 38.19, 33.43),
            vector4(-1790.54, -400.75, 46.48, 323.15),
            vector4(-133.11, -1563.59, 34.25, 48.57),
            vector4(12.48, -1605.96, 29.4, 139.62),
            vector4(180.28, -1638.06, 29.29, 216.82),
            vector4(1337.48, -1525.66, 54.16, 161.98),
            vector4(1520.01, -1752.89, 78.65, 219.47)
        },
        Payments = {
            min = 300, -- Min payment for each box
            max = 550, -- Max payment for each box
        },
    },
    Meth = {
        Time = 2, -- Maximum time to deliver, if it takes longer, you do not receive any payment. | 2 = 2 Minutes
        Locations = {
            vector4(-573.07, -442.54, 34.34, 180.43),
            vector4(-1161.17, -217.89, 37.96, 332.33),
            vector4(-1453.49, -387.02, 38.19, 33.43),
            vector4(-1790.54, -400.75, 46.48, 323.15),
            vector4(-133.11, -1563.59, 34.25, 48.57),
            vector4(12.48, -1605.96, 29.4, 139.62),
            vector4(180.28, -1638.06, 29.29, 216.82),
            vector4(1337.48, -1525.66, 54.16, 161.98),
            vector4(1520.01, -1752.89, 78.65, 219.47)
        },
        Payments = {
            min = 700, -- Min payment for each box
            max = 1250, -- Max payment for each box
        },
    },
    Guns = {
        Time = 2, -- Maximum time to deliver, if it takes longer, you do not receive any payment. | 2 = 2 Minutes
        Locations = {
            vector4(-573.07, -442.54, 34.34, 180.43),
            vector4(-1161.17, -217.89, 37.96, 332.33),
            vector4(-1453.49, -387.02, 38.19, 33.43),
            vector4(-1790.54, -400.75, 46.48, 323.15),
            vector4(-133.11, -1563.59, 34.25, 48.57),
            vector4(12.48, -1605.96, 29.4, 139.62),
            vector4(180.28, -1638.06, 29.29, 216.82),
            vector4(1337.48, -1525.66, 54.16, 161.98),
            vector4(1520.01, -1752.89, 78.65, 219.47)
        },
        Payments = {
            min = 1500, -- Min payment for each box
            max = 2750, -- Max payment for each box
        },
    },
}

-- This is the blip that the police can see on the map when the player is delivering
Config.BlipPolice = {
    Display = 2,
    Sprite = 1,
    Colour = 3,
    Scale = 1.5,
    Name = "Run It"
}

-- This is the drops if player decide to open the boxe's
Config.Boxes = {
    Weed = {
        enable = true, -- Enable open the box?
        item = "weapon_crowbar", -- Weapon need to open the box
        time = 5000, -- Time of progressbar
        prop = "prop_cs_box_clothes", -- You can check other props on https://gtahash.ru/
        dropList = {
            { item = "weed", amount = math.random(1,2)},
            --{ item = "weed_seeds", amount = math.random(1,2)}
        },
    },
    Coke = {
        enable = true, -- Enable open the box?
        item = "weapon_crowbar", -- Weapon need to open the box
        time = 5000, -- Time of progressbar
        prop = "prop_cs_box_clothes", -- You can check other props on https://gtahash.ru/
        dropList = {
            { item = "coke", amount = math.random(1,2)},
            { item = "coke_seeds", amount = math.random(1,2)}
        },
    },
    Meth = {
        enable = true, -- Enable open the box?
        item = "weapon_crowbar", -- Weapon need to open the box
        time = 5000, -- Time of progressbar
        prop = "prop_cs_box_clothes", -- You can check other props on https://gtahash.ru/
        dropList = {
            { item = "meth", amount = math.random(1,2)},
            { item = "meth_seeds", amount = math.random(1,2)}
        },
    },
    Guns = {
        enable = true, -- Enable open the box?
        item = "weapon_crowbar", -- Weapon need to open the box
        time = 5000, -- Time of progressbar
        prop = "prop_box_ammo03a", -- You can check other props on https://gtahash.ru/
        dropList = {
            { item = "meth", amount = math.random(1,2)},
            { item = "meth_seeds", amount = math.random(1,2)}
        },
    },
}
PreviousInstallationNextFunctions

Last updated 2 months ago

🏃‍♂️
🗒️