KLB Scrapyard

🚗 KLB Scrapyard

KLB-Scrapyard is a plug-and-play scrapyard and vehicle contract system for QBCore servers. Players can pick up contracts of different difficulties, locate vehicles, strip parts on-site, and deliver them for cash, XP, and items. Built entirely from scratch — optimized, balanced, and styled the KLB way.


🔍 Overview

KLB-Scrapyard introduces a complete scrapyard job loop to your city. Players can:

  • Pick up contracts in multiple difficulty levels

  • Locate and deliver vehicles

  • Strip valuable parts for additional rewards

All systems are configurable, dynamic, and deeply integrated with QBCore for smooth gameplay and performance.


⚙️ Core Contract & Gameplay Features

  • Three contract types: Easy, Standard, Heavy Each tier includes distance-based payouts, police risk profiles, and optional tow requirements for heavy missions.

  • Dynamic spawn logic: Blacklists, mission types, and vehicle pools determine where cars appear, if they require GPS hacking, and which vehicle classes are available per tier.

  • Timed contracts: Optional rotating job pools with custom reward tables, tool requirements, guard spawns, and supercar probabilities for added variety and limited-time missions.


🧰 Integrations & Tools

  • 🧭 qb-target support with automatic 3D text fallback

  • 🧩 Supports ox_inventory, ps-inventory, and qb-inventory

  • 💾 Optional persistence through oxmysql

  • ⚒️ Built-in tool logic, hacking system, and towing integration

  • 🔧 Mechanic compatibility — reuse collected parts in KLB-Mechanic

  • 🚨 Dispatch integrations for ps-dispatch, qb-dispatch, cd_dispatch, and lb-tablet with automatic legacy fallback

  • ⚙️ Full control through config.lua


💰 Progression, Economy & Rewards

  • 🏆 Reputation system controls access to higher contracts and bonus payouts

  • 💵 Economy fully configurable via multipliers and reward tables

  • 🚗 Payouts scale dynamically based on:

    • Vehicle condition

    • Distance travelled

    • Contract category

    • Optional long-distance or high-tier bonuses


🧠 Events & Exports

🔹 Client Events

🔹 Server Events

🔹 Exports

Removes all scrap items listed in the config and pays based on item value.


🧾 Reputation & Database

If Config.UseDatabase = true, reputation persists between restarts using oxmysql. The resource automatically creates the following table:

If disabled, reputation will only exist during runtime.


🧩 Dependencies

  • Required: qb-core

  • Optional: qb-target, qb-progressbar, qb-menu

  • Optional: oxmysql (for persistent reputation)

Works perfectly standalone — no other KLB scripts required.


🛠 Configuration

All settings can be found in config.lua.

Example:

Includes setup for:

  • Contract payout scaling

  • Cooldowns & tool requirements

  • Police alert risk

  • Reputation rewards

  • Vehicle spawn zones & blacklists

🚨 Dispatch Integration

  • Auto-detects popular dispatch resources (ps-dispatch, qb-dispatch, cd_dispatch, lp-tablet) and falls back to classic QBCore alerts.

  • Configure behaviour through the new Config.Dispatch block (jobs, codes, messages, legacy fallback, etc.).

  • Step-by-step setup for each system is available in the Dispatch Integration Guide.


🧰 Items Reference

Add these to your inventory system if missing:

Default scrap items:

Mechanic-compatible parts:


⚡ Performance

  • Idle usage: ~0.00–0.01 ms

  • Conditional threads and optimized entity checks

  • Designed to scale with city size and player count


🛒 Available on Tebex

Official Download: https://klbstore.tebex.io/arrow-up-right Discord Support: (Discord)arrow-up-right


“Collect. Strip. Hack. Deliver. Build your scrapyard empire — the KLB way.”

Last updated