Jump to content

Shop UI 1.2.64

$32.99
   (31 reviews)
Message added by David,

CUSTOMER SUPPORT 
To report issues with plugin or simply get in touch with me, please use support section on site or create ticket on my discord

On-site Support
 Discord Support    
 

Please allow at least 24 hours for response on site tickets as we all live in different time zones.  Not available during weekends.

8 Screenshots

  • 151.4k
  • 6k
  • 42.28 kB

Recommended Comments



papi

Posted

The update shows the plugin allows multiple console commands to be run. Can you please provide an example of the JSON

 

papi

Posted

This would allow me to stop using VIP Tokens to run multiple commands

 

ΝΞΜΞΣΙΣ

Posted

Could someone be so kind to reply with the content of their HumanNPC_shops that theyve added please? I cannot seem to get the formatting right. I want to set it up in such a way that the shop is only accessible through the NPC.

snetzer

Posted

Hello

 

skinned items when selling back to shop, is not working in version 1.2.1

best regards

Ninjafish1990

Posted

On 4/5/2022 at 5:29 AM, David said:

Cooldowns for commands works in latest version. 

 

Don't want to make people change their configs for this change.

You can always create your own console command which includes all your other commands.
Paste this into any plugin.

//mycustomcommand $player.id

[ConsoleCommand("mycustomcommand")]
private void mycustomcommand_1(ConsoleSystem.Arg arg)
{   
    //args
    var args = arg.Args;
    if (args.Length != 1) return;

    //prevent player usage
    var player = arg?.Player();
    if (player != null) return;

    //find target
    var target = BasePlayer.FindByID(Convert.ToUInt64(args[0]));
      if (target == null) { Puts("player not found");
      return; }

    //rcon commands to execute
    Server.Command($"audio.message send {target.userID} register");
    Server.Command($"radstorm start");
    Server.Command($"notify.player {target.displayName} 0 Purchased a Radstorm");
}


 

Hi,
I was also trying to pipe commands, I have the commands working and the ones that just run a single line work fine. I tried this code to create a custom console command and stuck it in the Shop.cs. It tries to execute and the plugin returns that is has, but console gives an object not set error, so its making it across the commands and categories page to the console.
The code might be different since it's been some time since this was posted and that might be the problem, tried my best googleing and can't seem to come up with anything.
image.png.e55d853936d18338d146c709c2019ed8.png

image.png.d7c055bbd62187fff79f0ae9d450853a.png

Thanks!

papi

Posted

Thanks for the update. Can you please change the sale position permanently so we dont have to fix this every time we update the plugin?>

CUIClass.CreatePanel(ref _item, "sale", $"item{index}", "0.808 0.259 0.161 0.30", "0.75 0.4", $"1 0.6", false, 0.1f, 0f, "assets/content/ui/uibackgroundblur.mat");

papi

Posted

On 1/8/2024 at 4:22 AM, wannagotonorway said:

How to disable the sale option?

Locate and move the sale sign 

            //is on sale?
            if (fullPrice != salePrice)
            {
                price = $"<size={7 + fontAdjustment}>-{fullPrice}-</size>  {salePrice}";

                CUIClass.CreatePanel(ref _item, "sale", $"item{index}", "0.808 0.259 0.161 0.30", "0.75 0.4", $"1 0.6", false, 0.1f, 0f, "assets/content/ui/uibackgroundblur.mat");
                CUIClass.CreateText(ref _item, "text", "sale", "1 1 1 0.8", $"SALE", 10 + fontAdjustment, "0 0", "1 0.9", TextAnchor.MiddleCenter, $"robotocondensed-bold.ttf", 0.5f);
            }

papi

Posted

On 10/29/2023 at 9:52 AM, ΝΞΜΞΣΙΣ said:

Could someone be so kind to reply with the content of their HumanNPC_shops that theyve added please? I cannot seem to get the formatting right. I want to set it up in such a way that the shop is only accessible through the NPC.

 

HumanNPC_Shops.json

  • Like 1
MORTAR

Posted

i would like to ask about f1 commands as a user rather than a dev, is it posible to keybind certain shop commands like binding the ability to buy a sleeping bag using the shop ui

 

TheFarrier

Posted

When you add commands, can you also use as chat commands or only console commands? If yes can use chat commands what is the format to put it in? 

✯Mr.Kingpin✯

Posted (edited)

This can be removed.

Edited by ✯Mr.Kingpin✯
papi

Posted

Thanks for the update. Can you please change the sale position permanently so we dont have to fix this every time we update the plugin?>

CUIClass.CreatePanel(ref _item, "sale", $"item{index}", "0.808 0.259 0.161 0.30", "0.75 0.4", $"1 0.6", false, 0.1f, 0f, "assets/content/ui/uibackgroundblur.mat");

Hawkhill

Posted

A couple of questions before i buy this plugin.

- Do i have to manually edit each items or is it possible to import what i sell in the different vending machines / traders on my server?
- Possible to add a permission that is required to open the shop?
- Possible to add custom items in shop? For example  Jetpack from the Jetpack plugin. This modifies a parachute into a jetpack.

GooberGrape

Posted

Has anyone figured out how to get helisignals to work in this shop yo?

they work great in the other shop sold here

this one is a little more complicated to setup

 

GooberGrape

Posted

2 hours ago, original4d said:

i have yes

 

 

Very nice for you to say you have, hopefully you could share an example.

original4d

Posted (edited)

16 minutes ago, GooberGrape said:

Very nice for you to say you have, hopefully you could share an example.

https://discord.gg/vNaCfdJvab join my discord ill be happy to help

Edited by original4d
Evil_Orko

Posted (edited)

On 3/18/2024 at 1:25 PM, carlness said:

can anyone advise where to get images for the categories tabs? all my custom ones are test tubes and doesn't look the best, thanks

I had to make a couple earlier today you can use if you'd like - I used GIMP to do them from some images from random Google searches.   ::EDIT::  added one more I made for a VIP category you or someone else may find useful.

Supply.png

Sell.png

vip.png

Edited by Evil_Orko
  • Love 1
Asbo-

Posted

Hello is there a setting for a cooldown after death? 

Kobani

Posted

@David
Hello, is it possible to add an article description when using the shop in the welcome panel?

Hotdog

Posted

I've been getting this error in the console when someone opens up the shop

Failed to call hook 'shop_cmd' on plugin 'Shop v1.2.21' (KeyNotFoundException: The given key 'Playername[steam64idremovedforprivacy]' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <4889cca7f3644a7fa341501beb4caacb>:0
  at Oxide.Plugins.Shop._RunNotif (BasePlayer player, System.Single duration, System.Int32 type, System.String[] properties) [0x00000] in <c018e8821b684d3799e21b3d1f3db72f>:0
  at Oxide.Plugins.Shop.BuildChecks (BasePlayer player) [0x00032] in <c018e8821b684d3799e21b3d1f3db72f>:0
  at Oxide.Plugins.Shop.Buy (BasePlayer player, System.String category, System.String itemName, System.Int32 amount) [0x00000] in <c018e8821b684d3799e21b3d1f3db72f>:0
  at Oxide.Plugins.Shop.shop_cmd (ConsoleSystem+Arg arg) [0x00047] in <c018e8821b684d3799e21b3d1f3db72f>:0
  at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01655] in <c018e8821b684d3799e21b3d1f3db72f>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

G_SAPLING

Posted

Is there an easier way to add new items instead of going to the data file that's very tedious work and lots of work to change the prices for everything is there an easier way for that?

 Working Out Of Office GIF by This GIF Is Haunted

G_SAPLING

Posted

On 1/7/2024 at 9:22 AM, wannagotonorway said:

How to disable the sale option?

Inside the data folder under the item Jason file change the sale price to -0

Screenshot 2024-05-01 175134.png

G_SAPLING

Posted

I tried to add the new flame thrower and I know I did everything correctly and it gave me these errors any suggestion on how to fix that

Failed to call hook 'shop_cmd' on plugin 'Shop v1.2.4' (FormatException: Input string was not in a correct format.)
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <b11ba2a8fbf24f219f7cc98532a11304>:0
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <b11ba2a8fbf24f219f7cc98532a11304>:0
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <b11ba2a8fbf24f219f7cc98532a11304>:0
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <b11ba2a8fbf24f219f7cc98532a11304>:0
  at Oxide.Plugins.Shop.shop_cmd (ConsoleSystem+Arg arg) [0x0009b] in <8212562f0a444735a19158a3243ac8b2>:0
  at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01698] in <8212562f0a444735a19158a3243ac8b2>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 7
  • Love 6

User Feedback

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

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.