Set price not matching price shown
This is a weird one.  So I have the scrap heli (transport) set to 1,000 RP price.  As you can see from my config on the left.  But as you can also see from in game, I type /buy and it shows me the price is 500 which is wrong.  So I try to buy one (with 800 something RP) and it says not enough money (which is right, since I want it to cost 1,000).

So how can I get it to display the right price?  And is there a way we can get if a vehicle is NOT enabled for purchase that it does not show up in the list?  I have Chinook disabled but god knows every day I have at least 2 new players exclaim "OMG we can get a personal chinook!!!  I just gotta save up XXX rp !!!"

https://i.imgur.com/CNZBPE6.png
Did you reload the plugin after updating the config? I'm unable to reproduce this issue. My prices show up correctly.

Yeah I did, you can even see in the screen shot where it does the "Type /license to get help" thing from reloading.

Going to try it right now on my other server.  Going to completely remove it then copy the config over (the new config with things the way I want it) then load the plugin.    Let's see if that works ....



Merged post

OK with a FRESH install (deleted everything with the plugin) it still did it.  SHOWS the price for transport is 500 RP but it does require 1,000 RP

So that tells me that the /buy chat response is reading the minicopter price and showing it for both copters.  Here is my config ....

{
  "Define your licence settings": {
    "Interval in minutes to check vehicle for wipe": 5,
    "Time before vehicle wipe in minutes": 15,
    "Use Economics to buy vehicles": false,
    "Use ServerRewards to buy vehicles": true,
    "Shortname of item needed to buy vehicles": "RP",
    "Use permissions for chat commands": true,
    "Use Raid Blocker": false,
    "Use Combat Blocker": false,
    "Remove Vehicles On Crash": false
  },
  "Define your vehicles options": {
    "RowBoat": {
      "name": "Row Boat",
      "prefab": "assets/content/vehicles/boats/rowboat/rowboat.prefab",
      "purchasable": true,
      "price": 100,
      "cooldownToSpawn": 18,
      "distanceToSpawn": 3,
      "commands": [
        "row",
        "rowboat",
        "boat"
      ]
    },
    "RHIB": {
      "name": "RHIB",
      "prefab": "assets/content/vehicles/boats/rhib/rhib.prefab",
      "purchasable": true,
      "price": 250,
      "cooldownToSpawn": 30,
      "distanceToSpawn": 10,
      "commands": [
        "rhib"
      ]
    },
    "Sedan": {
      "name": "Sedan",
      "prefab": "assets/content/vehicles/sedan_a/sedantest.entity.prefab",
      "purchasable": true,
      "price": 350,
      "cooldownToSpawn": 18,
      "distanceToSpawn": 5,
      "commands": [
        "sedan",
        "car"
      ]
    },
    "HotAirBalloon": {
      "name": "Hot Air Balloon",
      "prefab": "assets/prefabs/deployable/hot air balloon/hotairballoon.prefab",
      "purchasable": true,
      "price": 500,
      "cooldownToSpawn": 90,
      "distanceToSpawn": 20,
      "commands": [
        "hotairballoon",
        "hab"
      ]
    },
    "MiniCopter": {
      "name": "MiniCopter",
      "prefab": "assets/content/vehicles/minicopter/minicopter.entity.prefab",
      "purchasable": true,
      "price": 500,
      "cooldownToSpawn": 180,
      "distanceToSpawn": 8,
      "commands": [
        "minicopter",
        "copter"
      ]
    },
    "TransportCopter": {
      "name": "TransportCopter",
      "prefab": "assets/content/vehicles/scrap heli carrier/scraptransporthelicopter.prefab",
      "purchasable": true,
      "price": 1000,
      "cooldownToSpawn": 30,
      "distanceToSpawn": 10,
      "commands": [
        "transportcopter",
        "transport",
        "scrapheli",
        "scrapcopter"
      ]
    },
    "Chinook": {
      "name": "Chinook",
      "prefab": "assets/prefabs/npc/ch47/ch47.entity.prefab",
      "purchasable": true,
      "price": 100000,
      "cooldownToSpawn": 3000,
      "distanceToSpawn": 25,
      "commands": [
        "chinook",
        "ch47"
      ]
    }
  }
}​


Merged post

Update: OK it's definitely a language file problem.  The price for minicopter is {5} and the price for transport copter is {5} in the language file.  I just manually changed the {5} to the actual price of 1000 and now everything shows fine in game (obviously this was just a hard fix and if I change the price it won't reflect the change)
I believe the issue is here

if (args.Count < 1) Msg("helpBuy", player, new object[] {
_itemsNeededToBuyVehicles, GetVehicleSettings(RowBoatPrefab).price.ToString(), GetVehicleSettings(RhibPrefab).price.ToString(),
GetVehicleSettings(SedanPrefab).price.ToString(), GetVehicleSettings(HotAirBalloonPrefab).price.ToString(), GetVehicleSettings(MiniCopterPrefab).price.ToString(),
GetVehicleSettings(ChinookPrefab).price.ToString()

Although other choices were added to the mod I do not see a string for transport added in this section.