Jump to content

Multiple items same shortname with another skinID

Not a Bug 1.2.71

Takumi
Takumi

Posted

Hello, is it possible to sell multiple items with the same shortname but different skinID in this plugin? And if so, what should the entry in the category and items JSON look like? I have several plugins on my server that do not support the console command for give. Thank you in advance for your answer.

  • Like 1
David

Posted

Hey, to list multiple items with same shortname all you have to do is type out unique tag behind the shortname, it can be anything as long as it's in between curly brackets { }

example Items.json

"hat.wolf{skin1}": {
    "DisplayName": "default",
    "Skin": 222222,
    "Image": "",
    "DefaultAmount": 1,
    "BlockAmountChange": false,
    "ShowDisplayName": false,
    "BuyPrice": 50,
    "SellPrice": 25,
    "Currency": "eco"
  }


You can list item like this in category by entering shortname with unique tag into item list

example Categories.json

"Attire": {
    "Image": "https://rustplugins.net/products/shop/tshirt-crew.png",
    "Permission": null,
    "Sale": 0.0,
    "Items": [
      "hat.wolf{skin1}",
      "hat.bunnyhat",
      "attire.bunny.onesie",
      "attire.bunnyears",
      "chicken.costume",
      "draculacape",
      "draculamask",
      "attire.egg.suit",
      "gingerbreadsuit",
      "halloween.mummysuit",
      "scarecrow.suit",
      "halloween.surgeonsuit"
    ]
  },

 

  • Like 1
David

Posted

Changed Status from Pending to Not a Bug

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.4k

Files Sold

Total number of files sold.

2.4m

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.