Jump to content

Custom vending machines

Pending 1.2.9

Fusion 3.64
  • in Shop

I'd like to eventually remove use of the command and set up machines through MonumentAddons.

But I have no idea what to put here
"Custom Vending Machines (Entity ID - settings)": {},

I'm guessing it's like this?
  "NPC Shops (NPC ID - shop categories)": {
    "1234567": {
      "Categories (Titles) [* - all]": [
        "Tool",
        "Food"
      ]
    },
But with something other than an NPC identifier?
If so. What exactly is the entity id?

Share this comment


Link to comment

You can add a VM with the command "shop.setvm [categories]"

 

Example of a filled out config:

  "Custom Vending Machines (Entity ID - settings)": {
    "123343941": {
      "Categories (Titles) [* - all]": [
        "Cars",
        "Misc"
      ]
    }
  },

 

  • Like 1

Share this comment


Link to comment

It is unlikely, this plugin requires NET ID, which is unique each time. If MonumentAddons have their own IDs and you can work with them - I can make compatibility.

Share this comment


Link to comment

Like this?

          "Id": "07b4737c-9ad0-48fc-b3c9-e2825006f041",
          "PrefabName": "assets/prefabs/deployable/vendingmachine/npcvendingmachine.prefab",
          "Position": {
            "x": 31.9985275,
            "y": 1.50332451,
            "z": -12.2946148
          },
          "RotationAngles": {
            "x": 0.0,
            "y": 270.293854,
            "z": 0.0
          },
          "Skin": 2789812296,
          "VendingProfile": {
            "ShopName": "RESOURCES FOR CASH",
            "Monument": "assets/bundled/prefabs/autospawn/monument/medium/compound.prefab",
            "Position": {
              "x": 31.9985275,
              "y": 1.50332451,
              "z": -12.2946148
            },

Taken from the data file.

Not all the information is relevant and the data copied is incomplete.
But I think this should cover what you need.
This one is an NPC vending machine because I previously wanted it to look "normal" at the compound.
 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.8k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.