Jump to content

Vehicles and VIP

Closed 1.2.26

Beaverthelieber
  • in Shop
Beaverthelieber

Posted

Hi I have 2 questions: 

 

1) How do I add different vips to this shop where each vip has different discounts? For example bronze vip gets 5 percent off and diamond vip gets 20 percent off? 
 

2) How do I add vehicles? I can buy the helicopter and it goes into my inventory but I can’t spawn it at all. Help? 

Mevent

Posted

Hi @Beaverthelieber !


1) You need to set the discount by permissions. Here is an example, where players with "shop.bronze" permissions will have a 5% discount and players with "shop.diamond" permissions will have a 20% discount:

          "Discount (%)": {
            "shop.default": 0,
            "shop.bronze": 5,
            "shop.diamond": 20
          },


You will need to grant these permissions to groups of players, for example, to grant the "shop.bronze" permission to the bronze group, you would use the following command: "oxide.grant group bronze shop.bronze"


2) To add vehicles to Shop, there are several ways to solve this:

  1. Use plugins similar to Crafts, and trivially give the player an item that they place on the ground, and they will have a vehicle
  2. In the Shop plugin, issue transportation using the "spawn" command, here is an example of issuing a vehicle to a player:
          "Type": "Command",
          ...
          "Command (%steamid%)": "spawn sedantest.entity \"%player.z% %player.x% %player.y%\"",

 

Beaverthelieber

Posted (edited)

Sorry Mevent I am a bit new to having a rust server. For the first solution, I am assuming I type that into the config file of the plugin (i.e. JSON file) at the end of the script? And for the 2nd solution is the same?

 

EDIT: I just found a way to give an individual item shop.bronze VIP discount (for example) but how do I apply it to the whole shop instead of typing in that command for all 200 items in my shop?

Edited by Beaverthelieber
Mevent

Posted

@BeaverthelieberThe plugin has a section in the "Discount" config:
 

  "Discount": {
    "Enabled": true,
    "Discount (%)": {
      "shop.default": 0,
      "shop.vip": 10
    }
  },

 

Mevent

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.1k

Files Sold

Total number of files sold.

2m

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.