> For the complete documentation index, see [llms.txt](https://kevingirardx.gitbook.io/scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kevingirardx.gitbook.io/scripts/scrapping-job.md).

# Scrapping Job

<figure><img src="/files/lyo0JSrpr6wPhZYubvnt" alt=""><figcaption></figcaption></figure>

## Dependencies

Ensure that you have the dependencies below downloaded and ensured in your resources.

{% hint style="warning" %}
Ox Lib: <https://github.com/overextended/ox_lib/releases>

Renewed Lib: <https://github.com/Renewed-Scripts/Renewed-Lib/releases/tag/v2.0.7>
{% endhint %}

## Installation

### Ox Inventory

Add the following in **ox\_inventory > data > items.lua**

```lua
-- Kevin Scrap Yard Tools
['kevin_scrapyard_ratchet'] = {
    label = 'Scrapyard Ratchet',
    weight = 1500,
    stack = false,
    close = true,
    description = "A worn ratchet used to loosen and remove vehicle bolts.",
},

['kevin_scrapyard_screwdriver'] = {
    label = 'Scrapyard Screwdriver',
    weight = 800,
    stack = false,
    close = true,
    description = "A heavy-duty screwdriver used for prying and dismantling interior parts.",
},

['kevin_scrapyard_pliers'] = {
    label = 'Scrapyard Pliers',
    weight = 900,
    stack = false,
    close = true,
    description = "Industrial pliers used to grip, twist, and pull wiring and metal pieces.",
},
-- Scrap Yard Items
['kevin_scrapyard_shifter'] = {
    label = 'Vehicle Gear Shifter',
    weight = 0,
    stack = true,
    close = true,
    description = "A removed vehicle gear shifter, still partially intact.",
},

['kevin_scrapyard_wiper'] = {
    label = 'Vehicle Wipers',
    weight = 0,
    stack = true,
    close = true,
    description = "A pair of used windshield wipers salvaged from a vehicle.",
},

['kevin_scrapyard_radio'] = {
    label = 'Vehicle Radio',
    weight = 0,
    stack = true,
    close = true,
    description = "An old in-dash radio pulled from a scrapped vehicle.",
},

['kevin_scrapyard_ac'] = {
    label = 'Vehicle AC Control Unit',
    weight = 0,
    stack = true,
    close = true,
    description = "A vehicle air conditioning control module with wiring attached.",
},

['kevin_scrapyard_ecu'] = {
    label = 'Vehicle ECU',
    weight = 0,
    stack = true,
    close = true,
    description = "A sensitive electronic control unit removed from a vehicle.",
},

['kevin_scrapyard_wireharness'] = {
    label = 'Vehicle Wire Harness',
    weight = 0,
    stack = true,
    close = true,
    description = "A tangled bundle of vehicle wiring stripped from the frame.",
},

['kevin_scrapyard_pcwires'] = {
    label = 'PC Wires',
    weight = 0,
    stack = true,
    close = true,
    description = "A tangled bundle of computer wiring.",
},

['kevin_scrapyard_pcpowersupply'] = {
    label = 'PC Power Supply',
    weight = 700,
    stack = true,
    close = true,
    description = "A power supply for a pc.",
},

['kevin_scrapyard_cpu'] = {
    label = 'PC Processor',
    weight = 0,
    stack = true,
    close = true,
    description = "A processor for a pc.",
},

['kevin_scrapyard_gpu'] = {
    label = 'PC GPU',
    weight = 500,
    stack = true,
    close = true,
    description = "A graphics card for a pc.",
},

['kevin_scrapyard_ram'] = {
    label = 'PC Ram',
    weight = 0,
    stack = true,
    close = true,
    description = "A pair of ram sticks for a pc.",
},

['kevin_scrapyard_pccase'] = {
    label = 'PC Case',
    weight = 500,
    stack = true,
    close = true,
    description = "A empty pc case.",
},

['kevin_scrapyard_hdd'] = {
    label = 'Hard Disk Drive',
    weight = 500,
    stack = true,
    close = true,
    description = "A storage unit (HDD).",
},

['kevin_scrapyard_motherboard'] = {
    label = 'PC Motherboard',
    weight = 500,
    stack = true,
    close = true,
    description = "A motherboard for a pc.",
},

['kevin_scrapyard_serverpowersupply'] = {
    label = 'Server Power Supply',
    weight = 1000,
    stack = true,
    close = true,
    description = "A powersupply for a server.",
},

['kevin_scrapyard_server'] = {
    label = 'Server',
    weight = 2500,
    stack = true,
    close = true,
    description = "A server unit.",
},

['kevin_scrapyard_transformer'] = {
    label = 'Transformer',
    weight = 400,
    stack = true,
    close = true,
    description = "A power transformer.",
},

['kevin_scrapyard_electronicwires'] = {
    label = 'Wiring',
    weight = 100,
    stack = true,
    close = true,
    description = "Wiring for electronics.",
},

['kevin_scrapyard_electronics'] = {
    label = 'Electronics',
    weight = 100,
    stack = true,
    close = true,
    description = "Electronic components.",
},

['kevin_scrapyard_circuitboard'] = {
    label = 'Circuit Board',
    weight = 100,
    stack = true,
    close = true,
    description = "Electronic circuit board.",
},

['kevin_scrapyard_generatorstarter'] = {
    label = 'Starter',
    weight = 2500,
    stack = true,
    close = true,
    description = "Starter for a generator.",
},

['kevin_scrapyard_generatorengine'] = {
    label = 'Engine',
    weight = 5500,
    stack = true,
    close = true,
    description = "Engine for a generator.",
},

['kevin_scrapyard_compressor'] = {
    label = 'Compressor',
    weight = 3500,
    stack = true,
    close = true,
    description = "A compressor unit.",
},
```

### Qb | Ps Inventory

Add the following in qb-core > shared > items.lua

{% code overflow="wrap" %}

```lua
kevin_scrapyard_ratchet = {
    name = 'kevin_scrapyard_ratchet',
    label = 'Scrapyard Ratchet',
    weight = 1500,
    type = 'item',
    image = 'kevin_scrapyard_ratchet.png',
    unique = true,
    useable = true,
    shouldClose = true,
    description = 'A worn ratchet used to loosen and remove vehicle bolts.'
},

kevin_scrapyard_screwdriver = {
    name = 'kevin_scrapyard_screwdriver',
    label = 'Scrapyard Screwdriver',
    weight = 800,
    type = 'item',
    image = 'kevin_scrapyard_screwdriver.png',
    unique = true,
    useable = true,
    shouldClose = true,
    description = 'A heavy-duty screwdriver used for prying and dismantling interior parts.'
},

kevin_scrapyard_pliers = {
    name = 'kevin_scrapyard_pliers',
    label = 'Scrapyard Pliers',
    weight = 900,
    type = 'item',
    image = 'kevin_scrapyard_pliers.png',
    unique = true,
    useable = true,
    shouldClose = true,
    description = 'Industrial pliers used to grip, twist, and pull wiring and metal pieces.'
},

kevin_scrapyard_shifter = {
    name = 'kevin_scrapyard_shifter',
    label = 'Vehicle Gear Shifter',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_shifter.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A removed vehicle gear shifter, still partially intact.'
},

kevin_scrapyard_wiper = {
    name = 'kevin_scrapyard_wiper',
    label = 'Vehicle Wipers',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_wiper.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A pair of used windshield wipers salvaged from a vehicle.'
},

kevin_scrapyard_radio = {
    name = 'kevin_scrapyard_radio',
    label = 'Vehicle Radio',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_radio.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'An old in-dash radio pulled from a scrapped vehicle.'
},

kevin_scrapyard_ac = {
    name = 'kevin_scrapyard_ac',
    label = 'Vehicle AC Control Unit',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_ac.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A vehicle air conditioning control module with wiring attached.'
},

kevin_scrapyard_ecu = {
    name = 'kevin_scrapyard_ecu',
    label = 'Vehicle ECU',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_ecu.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A sensitive electronic control unit removed from a vehicle.'
},

kevin_scrapyard_wireharness = {
    name = 'kevin_scrapyard_wireharness',
    label = 'Vehicle Wire Harness',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_wireharness.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A tangled bundle of vehicle wiring stripped from the frame.'
},

kevin_scrapyard_pcwires = {
    name = 'kevin_scrapyard_pcwires',
    label = 'PC Wires',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_pcwires.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A tangled bundle of computer wiring.'
},

kevin_scrapyard_pcpowersupply = {
    name = 'kevin_scrapyard_pcpowersupply',
    label = 'PC Power Supply',
    weight = 700,
    type = 'item',
    image = 'kevin_scrapyard_pcpowersupply.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A power supply for a PC.'
},

kevin_scrapyard_cpu = {
    name = 'kevin_scrapyard_cpu',
    label = 'PC Processor',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_cpu.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A processor for a PC.'
},

kevin_scrapyard_gpu = {
    name = 'kevin_scrapyard_gpu',
    label = 'PC GPU',
    weight = 500,
    type = 'item',
    image = 'kevin_scrapyard_gpu.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A graphics card for a PC.'
},

kevin_scrapyard_ram = {
    name = 'kevin_scrapyard_ram',
    label = 'PC RAM',
    weight = 0,
    type = 'item',
    image = 'kevin_scrapyard_ram.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A pair of RAM sticks for a PC.'
},

kevin_scrapyard_pccase = {
    name = 'kevin_scrapyard_pccase',
    label = 'PC Case',
    weight = 500,
    type = 'item',
    image = 'kevin_scrapyard_pccase.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'An empty PC case.'
},

kevin_scrapyard_hdd = {
    name = 'kevin_scrapyard_hdd',
    label = 'Hard Disk Drive',
    weight = 500,
    type = 'item',
    image = 'kevin_scrapyard_hdd.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A storage unit (HDD).'
},

kevin_scrapyard_motherboard = {
    name = 'kevin_scrapyard_motherboard',
    label = 'PC Motherboard',
    weight = 500,
    type = 'item',
    image = 'kevin_scrapyard_motherboard.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A motherboard for a PC.'
},

kevin_scrapyard_serverpowersupply = {
    name = 'kevin_scrapyard_serverpowersupply',
    label = 'Server Power Supply',
    weight = 1000,
    type = 'item',
    image = 'kevin_scrapyard_serverpowersupply.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A power supply for a server.'
},

kevin_scrapyard_server = {
    name = 'kevin_scrapyard_server',
    label = 'Server',
    weight = 2500,
    type = 'item',
    image = 'kevin_scrapyard_server.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A server unit.'
},

kevin_scrapyard_transformer = {
    name = 'kevin_scrapyard_transformer',
    label = 'Transformer',
    weight = 400,
    type = 'item',
    image = 'kevin_scrapyard_transformer.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A power transformer.'
},

kevin_scrapyard_electronicwires = {
    name = 'kevin_scrapyard_electronicwires',
    label = 'Wiring',
    weight = 100,
    type = 'item',
    image = 'kevin_scrapyard_electronicwires.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'Wiring for electronics.'
},

kevin_scrapyard_electronics = {
    name = 'kevin_scrapyard_electronics',
    label = 'Electronics',
    weight = 100,
    type = 'item',
    image = 'kevin_scrapyard_electronics.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'Electronic components.'
},

kevin_scrapyard_circuitboard = {
    name = 'kevin_scrapyard_circuitboard',
    label = 'Circuit Board',
    weight = 100,
    type = 'item',
    image = 'kevin_scrapyard_circuitboard.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'Electronic circuit board.'
},

kevin_scrapyard_generatorstarter = {
    name = 'kevin_scrapyard_generatorstarter',
    label = 'Starter',
    weight = 2500,
    type = 'item',
    image = 'kevin_scrapyard_generatorstarter.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'Starter for a generator.'
},

kevin_scrapyard_generatorengine = {
    name = 'kevin_scrapyard_generatorengine',
    label = 'Engine',
    weight = 5500,
    type = 'item',
    image = 'kevin_scrapyard_generatorengine.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'Engine for a generator.'
},

kevin_scrapyard_compressor = {
    name = 'kevin_scrapyard_compressor',
    label = 'Compressor',
    weight = 3500,
    type = 'item',
    image = 'kevin_scrapyard_compressor.png',
    unique = false,
    useable = false,
    shouldClose = true,
    description = 'A compressor unit.'
},

```

{% endcode %}

{% hint style="info" %}
Note that tool items are to be added in whatever store resource you use for players to buy items.
{% endhint %}

### Reputation Metadata

#### <mark style="color:yellow;">Qbox</mark>

Add the following to **qbx\_core > server > player.lua** (anywhere below line 451)

```lua
playerData.metadata.kevinscrapping = playerData.metadata.kevinscrapping or 0
```

#### <mark style="color:red;">Qbcore</mark>

Add the following to **qb-core > config.lua** (within the <mark style="color:green;">metadata</mark> code block on line 62)

```lua
kevinscrapping = 0
```

{% hint style="success" %}
🎉 Installation Completed. Next step is just customization/adjusting config files to you liking
{% endhint %}
