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

Config

Config = {}

Config.Framework = "qb" -- Your framework ( qb or esx )
Config.Core = "qb-core" -- Your qb-core folder name 
Config.Target = "qb" -- "qb" or "ox"
Config.Notify = "ox" -- "qb" or "okok" or "ox" ( open code on config_functions.lua )
Config.VehicleKeys = "qb" -- "qb" or "qs" or "renewed" or "jaksam" ( open code on config_functions.lua )
Config.Inventory = "qb" -- "qb" or "ox" or "qs"
Config.InventoryPath = "qb-inventory/html/images/" -- Path to inventory images [qb-inventory/html/images/ or ox_inventory/web/images/]
Config.Fuel = "LegacyFuel" -- "LegacyFuel" or "okokFuel" or "ox_fuel" or "ti_fuel" or "qs-fuel" ( open code on config_functions.lua )
Config.Debug = true -- true or false ( if you want to see the debug messages in the console )
Config.Autodatabase = true -- true or false ( if you want to create the database automatically )

Config.NPC = {
    location = vector3(2356.58, 3136.83, 48.21), -- Location where you can start
    heading = 173.58, -- Heading of the NPC
    model = "a_m_m_prolhost_01", -- Model of the NPC
}

Config.Level = {
    [1] = { experience = 0 }, -- Level 1
    [2] = { experience = 250 }, -- Level 2
    [3] = { experience = 450 }, -- Level 3
    [4] = { experience = 650 }, -- Level 4
    [5] = { experience = 1000 }, -- Level 5
}

Config.SpawnPosition = { -- Position where the car will spawn
    location = vector3(2351.82, 3132.56, 48.21),
    heading = 79.93,
}

Config.CarRebuild = {
    [1] = { -- Level 1 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 5, max = 10 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 5, max = 10 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 5, max = 10 } },
        }
    },
    [2] = { -- Level 2 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 15, max = 25 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 15, max = 25 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 15, max = 25 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 15, max = 25 } },
        }
    },
    [3] = { -- Level 3 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 30, max = 45 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 30, max = 45 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 30, max = 45 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 30, max = 45 } },
            [5] = { car = "elegy", label = "Elegy", experience = { min = 30, max = 45 } },
        }
    },
    [4] = { -- Level 4 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 50, max = 65 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 50, max = 65 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 50, max = 65 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 50, max = 65 } },
            [5] = { car = "elegy", label = "Elegy", experience = { min = 50, max = 65 } },
            [6] = { car = "jester", label = "Jester", experience = { min = 50, max = 65 } },
        }
    },
    [5] = { -- Level 5 cars available to re-build
        carsAvailable = {
            [1] = { car = "futo", label = "Futo", experience = { min = 65, max = 85 } },
            [2] = { car = "blista", label = "Blista", experience = { min = 65, max = 85 } },
            [3] = { car = "sultan", label = "Sultan", experience = { min = 65, max = 85 } },
            [4] = { car = "kuruma", label = "Kuruma", experience = { min = 65, max = 85 } },
            [5] = { car = "elegy", label = "Elegy", experience = { min = 65, max = 85 } },
            [6] = { car = "jester", label = "Jester", experience = { min = 65, max = 85 } },
            [7] = { car = "comet", label = "Comet", experience = { min = 65, max = 85 } },
        }
    },
}


-- Crafting car parts
Config.CraftingLocation = vector3(2351.39, 3117.93, 48.13) -- Location where you can craft the car parts
Config.CraftingCarParts = {
    [1] = {
        itemCode = "car-battery",
        itemLabel = "Car Battery",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "copper", amount = 1 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [2] = {
        itemCode = "car-door",
        itemLabel = "Car Door",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 1 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [3] = {
        itemCode = "car-engine",
        itemLabel = "Car Engine",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
            [3] = { item = "rubber", amount = 1 },
        }
    },
    [4] = {
        itemCode = "car-hood",
        itemLabel = "Car Hood",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [5] = {
        itemCode = "car-suspension",
        itemLabel = "Car Suspension",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [6] = {
        itemCode = "car-tire",
        itemLabel = "Car Tire",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "rubber", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [7] = {
        itemCode = "car-trunk",
        itemLabel = "Car Trunk",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "metal", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    },
    [8] = {
        itemCode = "car-windows",
        itemLabel = "Car Window",
        itemAmount = 1,
        itemRecipe = {
            [1] = { item = "glass", amount = 2 },
            [2] = { item = "plastic", amount = 1 },
        }
    }
}
PreviousInstallationNextCity Guide

Last updated 1 month ago

🚗
🗒️