Claiming Vendor vehicles

First off, I want to remove the ability for players to use the /buy command to acquire a license for any vehicle they can acquire via vanilla means. For example, if they want a the ability to recall a horse, they have to first purchase one via the Barn/Ranch. If they want to be able to recall a mini, they have to head to Bandit to first purchase one there. 

Second, since I've set Licensed vehicles to not decay, I'd like another option to remove the license if the vehicle is destroyed. (I see this one in the config, I'm asking here to make sure it works correctly.)

Here's the scenario. Player wants a mini that they can recall when desired. They head to Bandit, purchase the mini for 750 scrap. They fly around. Do a few monuments. Later, they're farming ores and need their mini. They /recall it. On the way home, they crash. Now they no longer than the ability to recall said mini and must go back to Bandit to acquire the mini license again. 

Is this possible? I do not want them to be able to buy the mini license via the /license interface. I don't want them to be able to /spawn a mini. I only want to allow the /recall of a mini they've purchased at Bandit camp. If another player takes their mini and crashes it, they'll have to buy it again. 

Also, would the setting for automatically acquiring the license apply to someone else getting in your vehicle if they found it around the map? Would they then become the owner of said vehicle? I ask because it's a PvP server and I do not restrict other players from getting in your owned vehicles. 

I figured it's like a Vanilla+ feature. What would I need to set to do this? 

Ok, I figured it out, and will post what I did so others can see it.

First off, I can't figure out how to set it up so a player can "claim" a vehicle they've found in the wild (like a rowboat or a modular vehicle, or hot air balloon). It only applies to vehicles that are purchased via vendor. 

  • Minicopter
  • Transport Heli
  • RHIB
  • Rowboat
  • SubSolo
  • SubDuo
  • Horse
I set each of the above vehicles to...
"Purchasable": false,​

Make sure the first section of the json shows these settings...

"Automatically claim vehicles purchased from vehicle vendors": true,
"Vehicle vendor purchases will unlock the license for the player": true,

If the vehicle gets destroyed, they lose their license to that vehicle.

"Remove License Once Crashed": true,

I also set the vehicles so that aside from the "owners" recall ability, they're otherwise vanilla vehicles. They can be stolen and looted.

"Prevent other players from mounting vehicle": false,

"Prevent other players from looting fuel container and inventory": false,

As a bonus, I made it so that owned vehicles do not decay.

"Vehicle No Decay": true,

Here's a full example for the minicopter. If it gets destroyed, it acts like a vanilla mini. If the player decides to /kill the mini, rather than let it be stolen, they get their fuel returned to them. They pay no RP/scrap costs anywhere aside from when they /recall the mini. The purchase price is ignored because purchasable is false. They simply pay 50 RP each time they want to recall their vehicle, with a 5 minute cooldown between recalls (1 min for VIP). 

  "Mini Copter Vehicle": {
      "Purchasable": false,
      "Display Name": "Mini Copter",
      "Use Permission": true,
      "Permission": "vehiclelicence.minicopter",
      "Distance To Spawn": 8.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Exclude cupboard zones when wiping": false,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 2.0,
      "Remove License Once Crashed": true,
      "Purchase Prices": {
        "ServerRewards": {
          "amount": 750,
          "displayName": "scrap"
        }
      },
      "Spawn Prices": {
        "ServerRewards": {
          "amount": 0,
          "displayName": "scrap"
        }
      },
      "Recall Prices": {
        "ServerRewards": {
          "amount": 0,
          "displayName": "scrap"
        }
      },
      "Recall Cooldown Bypass Prices": {
        "ServerRewards": {
          "amount": 50,
          "displayName": "RP"
        }
      },
      "Spawn Cooldown Bypass Prices": {
        "ServerRewards": {
          "amount": 0,
          "displayName": "RP"
        }
      },
      "Commands": [
        "mini",
        "minicopter"
      ],
      "Spawn Cooldown (Seconds)": 0.0,
      "Recall Cooldown (Seconds)": 500.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 0.0,
          "recallCooldown": 60.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": false

This basically gives them vanilla vehicles that, if they keep it safe, can be recalled and won't decay. They otherwise respond as vanilla vehicles.