Jump to content

Vehicles and VIP

Closed 1.2.26

Beaverthelieber
  • in Shop

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? 

Share this comment


Link to comment

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%\"",

 

Share this comment


Link to comment

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

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.5k

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.