Jump to content

Buy Limits and Max Sell Amount

Closed 1.2.26

ZIZI
  • in Shop

Help is needed. No one noticed for a year, here is my example config. A VIP player buys 250 cartridges in one stack and, in accordance with the limit, he can buy 100 times, for a total of 25 thousand cartridges. But for some reason it happens that if a player bought 2500 pieces once, then he can’t buy anymore, the limit is over. I tried it in different ways, but in other cases the purchase is unlimited. What am I doing wrong?

{
          "Type": "Item",
          "ID": -992666343,
          "Image": "",
          "Title": "",
          "Description": "",
          "Command (%steamid%)": "",
          "Kit": "",
          "Plugin": {
            "Hook": "",
            "Plugin Name": "",
            "Amount": 1
          },
          "DisplayName (empty - default)": "",
          "ShortName": "ammo.rifle",
          "Skin": 0,
          "Is Blueprint": false,
          "Amount": 250,
          "Enable item buying?": true,
          "Price": 100.0,
          "Enable item selling?": false,
          "Sell Price": 100.0,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {},
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {},
          "Discount (%)": {},
          "Sell Limits (0 - no limit)": {},
          "Buy Limits (0 - no limit)": {
            "shop.vip": 100
          },
          "Daily Buy Limits (0 - no limit)": {},
          "Daily Sell Limits (0 - no limit)": {},
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 1,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": {
            "Enabled": false,
            "Text (language - text)": {
              "en": "5.56 Rifle Ammo"
            }

Share this comment


Link to comment

Hi! Sorry for the long wait.
In order to limit how you want, you need to use the following parameters:

          "Buy Limits (0 - no limit)": {
            "shop.vip": 25000
          },
          "Max Buy Amount (0 - disable)": 1,

 

  • Like 1

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.