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. Both Framework
  2. Scripts
  3. Shops

Config

Config = {}

Config.Framework = "qbcore" -- "qbcore" or "esx"
Config.Core = "qb-core" -- "qb-core" or "es_extended"
Config.Notify = "qb" -- "qb" or "ox"
Config.Inventory = "qb" -- "qb" or "ox"
Config.Target = "qb" -- "qb" or "ox"
Config.Dispatch = "ps-dispatch" -- "cd_dispatch" or "ps-dispatch" or "qs-dispatch"
Config.Debug = false -- true or false

Config.Assault = { -- Assault settings
    enable = true, -- Enable or disable the assault
    timeRob = { min = 10, max = 10 }, -- Seconds ( random 10 ~ 30 seconds )
    cooldown = 30, -- Minutes
    pedAttack = {
        chance = 10, -- 10% chance to attack the player
        weapon = "WEAPON_PISTOL", -- Weapon that the ped will use to attack the player
        respawnTime = 10 * 60 * 1000, -- Time in milliseconds (ex: 10 minutes)
    },
    weaponsValid = {
        "WEAPON_PISTOL",
    }
}

Config.Commands = {
    [1] = { command = "checkshopmoney", description = "Check the money specific shop have", permission = "admin" },
    [2] = { command = "resetshopcooldown", description = "Reset the cooldown of a specific shop", permission = "admin" },
}

Config.Shops = {
    [1] = {
        shopName = "Shop1",
        robbery = true,
        coords = vector4(24.47, -1346.62, 29.5, 271.66),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 158.40,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
            { label = "Vodka", item = "vodka", price = 25, job = "all", type = "drink" },
        },
    },
    [2] = {
        shopName = "Shop2",
        robbery = true,
        coords = vector4(-3039.54, 584.38, 7.91, 17.27),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 17.27,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [3] = {
        shopName = "Shop3",
        robbery = true,
        coords = vector4(-3242.97, 1000.01, 12.83, 357.57),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 357.57,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [4] = {
        shopName = "Shop4",
        robbery = true,
        coords = vector4(1728.07, 6415.63, 35.04, 242.95),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 242.95,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [5] = {
        shopName = "Shop5",
        robbery = true,
        coords = vector4(1959.82, 3740.48, 32.34, 301.57),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 301.57,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [6] = {
        shopName = "Shop6",
        robbery = true,
        coords = vector4(549.13, 2670.85, 42.16, 99.39),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 99.39,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [7] = {
        shopName = "Shop7",
        robbery = true,
        coords = vector4(2677.47, 3279.76, 55.24, 335.08),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 335.08,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [8] = {
        shopName = "Shop8",
        robbery = true,
        coords = vector4(2556.66, 380.84, 108.62, 356.67),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 356.67,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    },
    [9] = {
        shopName = "Shop9",
        robbery = true,
        coords = vector4(372.66, 326.98, 103.57, 253.73),
        blip = { enable = true, sprite = 52, display = 4, scale = 0.8, color = 2, shortRange = true, name = "Shop" },
        pedModel = "mp_m_shopkeep_01",
        heading = 253.73,
        items = {
            { label = "Bread", item = "bread", price = 5, job = "all", type = "food" },
            { label = "Sandwich", item = "sandwich", price = 10, job = "all", type = "food" },
            { label = "Tosti", item = "tosti", price = 15, job = "all", type = "food" },
            { label = "Snikkel Candy", item = "snikkel_candy", price = 20, job = "all", type = "food" },
            { label = "Water", item = "water_bottle", price = 10, job = "all", type = "drink" },
        },
    }
}
PreviousShopsNextInstallation

Last updated 6 months ago

🛒
📄