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. Jobs
  3. [QB] Garbage

Config

Config = {}


Config.Utility = {
    Core = "qb-core", -- CoreName 
    Target = "qb-target", -- "qb-target" or "ox_target"
    Progress = "ox", -- "qb" or "ox"
    Notify = "qb", -- "qb", "okok" or "ox"
    Menu = "ox_lib", -- "qb-menu" or "ox_lib"
    PropObject = "hei_prop_heist_binbag",
    TrashQuantity = 1, -- Quantity of trash you need to colect to conclude the route
    JobName = "mechanic", -- Job Name if you use NeedJob true

    Trash = { 
        EnableOpen = true, -- Enable open trash bags?
        ChanceNotReceive = 10, -- If the number from 1 to 100 is between 1 and 10, player get nothing.
        ChanceToRare = 90, -- If the number from 1 to 100 is between 90 and 100, player get the rare drop.
        PossibleDrops = {
            NormalDrops = {
                [1] = "metalscrap",
                [2] = "sandwich",
                [3] = "iron",
                [4] = "electronickit",
                [5] = "thermite",
                -- You can add more
            },
            RareDrops = {
                [1] = "lockpick",
                [2] = "advancedlockpick",
                -- You can add more
            }
        }
    },
    
    SpawnVehicle = {x = -319.69, y = -1524.52, z = 27.55, h = 266.41}, -- Location to spawn vehicle
    VehicleKeys = "vehiclekeys:client:SetOwner", -- Trigger to give keys of vehicle
    Vehicle = "trash", -- Vehile spawn
    VehicleSettings = {
        Location = vector3(-328.87, -1527.86, 27.54),
        lenght = 12.6,
        width = 10.0,
        minZ = 25.54,
        maxZ = 29.54,
        heading = 269,
        Payment = 500,
    },

    Ped = {
        {type = 4, hash = GetHashKey("s_m_y_garbage"), x = -336.80, y = -1530.44, z = 26.72, h = 292.97}
    },
    
    CoordsStart = vector3(-336.80, -1530.44, 26.72),
    
    Reward = { -- Cash reward for each trash
        Min = 20, 
        Max = 40,
    },
    
    LevelSystem = {
        Enable = true, -- Enable level system?
        XP_Per_Trip = 10, -- Xp obtain each trash
        
        Level_1 = {
            XP = 0,   -- XP Needed to level 1 -- Dont touch
            Reward = 1, -- 1 = x1 the money you will receive.
        },
        
        Level_2 = {
            XP = 425, -- XP Needed to level 2
            Reward = 2, -- 2 = x2 the money you will receive.
        },
        
        Level_3 = {
            XP = 550, -- XP Needed to level 3
            Reward = 3, -- 3 = x3 the money you will receive.
        },
        
        Level_4 = {
            XP = 750, -- XP Needed to level 4
            Reward = 4, -- 4 = x4 the money you will receive.
        },
        
        Level_5 = {
            XP = 1000, -- XP Needed to level 5
            Reward = 5, -- 5 = x5 the money you will receive.
        },
    },
    
    Blip = {
        Location = vector3(-336.80, -1530.44, 26.72),
        Sprite = 467,
        Display = 4,
        Colour = 4,
        Scale = 0.7,
        Name = "Garbage",
    },
    
    BlipDelivery = {
        Sprite = 11,
        Colour = 2,
        RouteColour = 29,
    },
    
    Logs = {
        Enable = true,
        Trigger = "qb-log:server:CreateLog",
        LogTitle = "Garbage",
        LogColour = "lightgreen",
    }
}


Language = {
    Got = "You got: $",
    Vasculhar = "Picking it up in the trash...",
    Talk = "Talk",
    Search = "Search",
    GarbageDepot = "[🕋] Garbage Depot",
    StartWork = "[💨] Start Work",
    ReturnVehicle = "[🚗] Return Vehicle",
    SellTrash = "[💵] Sell Trash",
    CheckLevel = "[📊] Check Experience",
    Close = "[❌] Close",
    ReturnDepot = "Return to base and start another job!",
    BlipWork = "Trash",
    Searching = "Searching the trash bag...",
    Smell = "What a smell! I got all my hands dirty!",
    Anything = "You don't have trash with you.",
    AlreadyWorking = "You already have work.",
    YourExperience = "Your Experience: ",
    InsideVehicle = "You need to be inside the vehicle.",
    Dead = "You cannot access while dead.",
    Water = "You cannot access in the water.",
    NextTrash = "Go catch the next trash.",
    WrongVehicle = "You cannot return this vehicle.",
    WrongJob = "You dont have the job required.",
    Error = "Something wrong.",
    DeleteVehicle = "Delete Vehicle",
    NeedStartWork = "You need start a job first",
    NoMoney = "You dont have money on your to rent the truck",
}

Config.Trash = { 
    vector3(-242.77, -1473.18, 31.48),
    vector3(-161.53, -1669.83, 33.17),
    vector3(-208.85, -1361.46, 31.26),
    vector3(23.43, -1313.14, 29.52),
    vector3(91.0, -1284.49, 29.3),
    vector3(373.84, -1449.1, 29.43),
    vector3(490.48, -998.56, 27.78),
    vector3(497.29, -587.54, 24.76),
    vector3(319.76, -182.96, 57.45),
    vector3(-175.89, -1284.3, 31.3),
    vector3(-563.73, -974.34, 22.18),
    vector3(105.7, -1811.95, 26.52),
    vector3(242.31, -1771.48, 28.77),
    vector3(230.43, -1507.73, 29.29)
}
PreviousInstallationNext[QB] GoldRush

Last updated 1 year ago

🚛
🗒️