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
      • ✈️Airplane Job
        • 🛠️Installation
        • 📃Configs
        • ℹ️Exports
      • 📋Scoreboard
        • 📃Config
      • 📦StorageUnits
        • 🛠️Installation
        • 📃Config
Powered by GitBook
On this page
  1. QBCore
  2. Illegal
  3. [QB] Mini Robberys

Config

Config = {}

Config.CoreName = "qb-core" -- Your qb-core folder name
Config.Inventory = "qb" -- "qb" or "ox"
Config.Target = "qb" -- "qb" or "ox" 

Config.LevelSystem = {
    [1] = { xp = 0 }, -- Level 1
    [2] = { xp = 100 }, -- Level 2
    [3] = { xp = 250 }, -- Level 3
}

Config.Cooldown = {
    enable = true, -- Enable cooldown for each player?
    time = 60, -- 1 minute
}

Config.Robberys = {
    ["ParkingMeter"] = {
        EnableRobbery = true, -- Enable this robbery?
        EnableMinigame = true, -- Enable mini-game?
        Minigame = { circles = 2, time = 20 }, -- Settings of minigame
        Fingerprint = true, -- Configuration inside the config_functions.lua
        Props = { -- List of possible props ( if you use ox replace this numbers with the prop name ) prop_parking_hut_2 + prop_parknmeter_01
            304890764,
            -1940238623
        },
        Progressbar = { time = 5000, label = "Stealing 24 parking..." }, -- Settings to progressbar
        Animation = { animDict = "mini@repair", anim = "fixing_a_ped" }, -- Settings to animations
        Target = { label = "Steal 24h Parking", icon = "fa-solid fa-hand"}, -- Settings to target
        CopsNeeded = { enable = false, copsAmount = 2, copsJobs = {"police", "lspd"}},
        CallingCops = { enable = true, chance = 50 }, -- Configuration inside the config_functions.lua
        CashReward = { enable = true, min = 20, max = 150, rewardType = "cash" }, -- Configuration to receive cash or not
        xpEarn = { min = 2, max = 4 },
        Rewards = {
            [1] = { -- Level 1
                [1] = { item = "phone",         amount = math.random(1,2), chance = 60 },
                [2] = { item = "metalscrap",    amount = math.random(1,2), chance = 60 },
                [3] = { item = "steel",         amount = math.random(1,2), chance = 60 },
                [4] = { item = "glass",         amount = math.random(1,2), chance = 60 },
            },
            [2] = { -- Level 2
                [1] = { item = "phone",         amount = math.random(1,2), chance = 60 },
                [2] = { item = "metalscrap",    amount = math.random(1,2), chance = 60 },
                [3] = { item = "steel",         amount = math.random(1,2), chance = 60 },
                [4] = { item = "glass",         amount = math.random(1,2), chance = 60 },
                [5] = { item = "lockpick",      amount = math.random(1,2), chance = 20 },
            },
        }
    },
    ["FoodShelf"] = {
        EnableRobbery = true, -- Enable this robbery?
        EnableMinigame = true, -- Enable mini-game?
        Minigame = { circles = 2, time = 20 }, -- Settings of minigame
        Fingerprint = true, -- Configuration inside the config_functions.lua
        Props = { -- List of possible props ( if you use ox replace this numbers with the prop name ) v_ret_247shelves01 + v_ret_247shelves02 + v_ret_247shelves05 + v_ret_247shelves04 + v_ret_247_donuts
            -54719154,
            -220235377,
            1437777724,
            643522702,
            1421582485,
        },
        Progressbar = { time = 5000, label = "Stealing shelf..." }, -- Settings to progressbar
        Animation = { animDict = "mini@repair", anim = "fixing_a_ped" }, -- Settings to animations
        Target = { label = "Steal Shelft", icon = "fa-solid fa-hand"}, -- Settings to target
        CopsNeeded = { enable = true, copsAmount = 2, copsJobs = {"police", "lspd"}},
        CallingCops = { enable = true, chance = 50 }, -- Configuration inside the config_functions.lua
        CashReward = { enable = true, min = 20, max = 150, rewardType = "cash" }, -- Configuration to receive cash or not
        xpEarn = { min = 2, max = 4 },
        Rewards = {
            [1] = { -- Level 1
                [1] = { item = "tosti",             amount = math.random(1,2), chance = 60 },
                [2] = { item = "twerks_candy",      amount = math.random(1,2), chance = 60 },
                [3] = { item = "snikkel_candy",     amount = math.random(1,2), chance = 60 },
                [4] = { item = "sandwich",          amount = math.random(1,2), chance = 60 },
            },
            [2] = { -- Level 2
                [1] = { item = "beer",              amount = math.random(1,2), chance = 60 },
                [2] = { item = "whiskey",           amount = math.random(1,2), chance = 60 },
                [3] = { item = "vodka",             amount = math.random(1,2), chance = 60 },
                [4] = { item = "wine",              amount = math.random(1,2), chance = 60 },
            },
        }
    },
}
function Notify(msg, type, time)
    if type == "primary" then 
        QBCore.Functions.Notify(msg, "primary", time)
    end
    if type == "success" then
        QBCore.Functions.Notify(msg, "success", time)
    end
    if type == "error" then
        QBCore.Functions.Notify(msg, "error", time)
    end
end

-- Function to add fingerprints
function Fingerprint(plyCoords)
    TriggerServerEvent("evidence:server:CreateFingerDrop", plyCoords)
end

-- Function to calling the cops
function CallingCops(plyCoords)
    -- exports['ps-dispatch']:SuspiciousActivity()
end
PreviousInstallationNext[QB] MoneyWash

Last updated 2 months ago

®️
🗒️