Harvestable Vehicles (Legacy Thread)

Status
Not open for further replies.
Add: Once hit with the defined jackhammer so that it's not possible to repair it? As it is now you can "milk" the vehicle
Look into how to prevent repairing vehicle before using the defined jackhammer dunno how to do this though :)
 
We have installed your plugin, but we’re encountering an issue. Although it is providing the expected material yield, it isn’t causing any damage to the vehicles. We’ve tested it with the default damage setting of 5 and even increased it to 10, yet there is still no damage or reduction in vehicle health. We use carbon, could this be causing the problem? Do you have any suggestions on what might be going wrong or how we can fix this?
 
We have installed your plugin, but we’re encountering an issue. Although it is providing the expected material yield, it isn’t causing any damage to the vehicles. We’ve tested it with the default damage setting of 5 and even increased it to 10, yet there is still no damage or reduction in vehicle health. We use carbon, could this be causing the problem? Do you have any suggestions on what might be going wrong or how we can fix this?
Thanks for the report! It's been fixed in the latest version
 
Send me your config instead
JSON:
{
  "Version": "1.6.1",
  "Gathering Tools": [
    {
      "Item Short Name": "hammer.salvaged",
      "Skin Id": 0
    },
    {
      "Item Short Name": "jackhammer",
      "Skin Id": 0
    }
  ],
  "Harvestable Vehicles": [
    {
      "Vehicle Short Prefab Names": [
        "minicopter.entity",
        "scraptransporthelicopter"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "hotairballoon"
      ],
      "Resources": [
        {
          "Item Short Name": "cloth",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 10,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "rope",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 3,
          "Rarity": "Common"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "rhib",
        "rowboat"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "kayak"
      ],
      "Resources": [
        {
          "Item Short Name": "wood",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 10,
          "Maximum Amount": 20,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "cloth",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "rope",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 3,
          "Rarity": "Common"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "motorbike",
        "motorbike_sidecar",
        "pedalbike",
        "pedaltrike"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "1module_cockpit",
        "1module_cockpit_armored",
        "1module_cockpit_with_engine",
        "1module_engine",
        "1module_flatbed",
        "1module_passengers_armored",
        "1module_rear_seats",
        "1module_storage",
        "1module_taxi",
        "2module_camper",
        "2module_flatbed",
        "2module_fuel_tank",
        "2module_passengers"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Incre
 
Last edited by a moderator:
@sof I have tested it on cars, minicopters, and boats, and all took damage. Please make sure:
  • The tool you're using is specified in the config and classified as a tool
  • The vehicle you're hitting is listed in the config
  • If it's a minicopter or boat, mount it to check the health bar in the bottom right corner for damage
  • Increase the Damage Increase Factor if the damage seems too low
  • If you're not receiving any resources from hitting, it means none of the conditions are met
If still nothing, try unloading all other plugins, it could be interference from another plugin
 
  • Like
Reactions: sof
JSON:
{
  "Version": "1.6.1",
  "Gathering Tools": [
    {
      "Item Short Name": "hammer.salvaged",
      "Skin Id": 0
    },
    {
      "Item Short Name": "jackhammer",
      "Skin Id": 0
    }
  ],
  "Harvestable Vehicles": [
    {
      "Vehicle Short Prefab Names": [
        "minicopter.entity",
        "scraptransporthelicopter"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "hotairballoon"
      ],
      "Resources": [
        {
          "Item Short Name": "cloth",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 10,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "rope",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 3,
          "Rarity": "Common"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "rhib",
        "rowboat"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "kayak"
      ],
      "Resources": [
        {
          "Item Short Name": "wood",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 10,
          "Maximum Amount": 20,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "cloth",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "rope",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 3,
          "Rarity": "Common"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "motorbike",
        "motorbike_sidecar",
        "pedalbike",
        "pedaltrike"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 15,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Increase Factor": 5.0
    },
    {
      "Vehicle Short Prefab Names": [
        "1module_cockpit",
        "1module_cockpit_armored",
        "1module_cockpit_with_engine",
        "1module_engine",
        "1module_flatbed",
        "1module_passengers_armored",
        "1module_rear_seats",
        "1module_storage",
        "1module_taxi",
        "2module_camper",
        "2module_flatbed",
        "2module_fuel_tank",
        "2module_passengers"
      ],
      "Resources": [
        {
          "Item Short Name": "metal.fragments",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 5,
          "Maximum Amount": 10,
          "Rarity": "Common"
        },
        {
          "Item Short Name": "metal.refined",
          "Display Name": null,
          "Skin Id": 0,
          "Minimum Amount": 1,
          "Maximum Amount": 5,
          "Rarity": "Rare"
        }
      ],
      "Damage Incre
I think I found the issue when I disable true PVE, they take damage.
 
Hi, just tested and working. thank you!

A bit of a cheeky request. Any chance you could look into working with Vehicle License to prevent players from harvesting any vehicle purchased/spawn via vehicle license?
I'll take a look at that plugin to see if it's possible, sure
 
  • Heart
Reactions: sof
Status
Not open for further replies.
Back
Top
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Make sure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart