GUI Shop

GUI Shop based on Economics. Supports NPC

Total Downloads: 11,450 - First Release: Aug 29, 2015 - Last Update: May 3, 2018

5/5, 38 likes
  1. Code:
    Failed to call hook 'OnServerInitialized' on plugin 'GUIShop v1.4.5' (ArgumentException: An element with the same key already exists in the dictionary.) at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in :0 at Oxide.Plugins.GUIShop.OnServerInitialized () [0x00000] in :0 at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
     
  2. Wulf

    Wulf Community Admin

    Wulf updated GUI Shop with a new update entry:

    1.4.6

     
  3. Hey, how can I sell in my shop backpack Say whoever buys this one, he can access from / dan on / backpack
    [DOUBLEPOST=1525373139][/DOUBLEPOST]THX for the fast update
     
  4. Thanks
     
  5. Ok I fixed myself, thanks anyway and sorry
     
  6. I have it setup to sell scrap for money, and upon trying to sell scrap it returns "You can't sell kits"
     
  7. after new update tonight my shop has reverted back to npc only shop
    what do i change in the shop config file to make it /shop again ???
     
  8. I can send you one with tabs if you'd like to

    Thanks for the update Wulf
     
    Last edited by a moderator: May 3, 2018
  9. i had the one with tabs before - someone on here sent it me but i had to update and now its reverted back to npc use only
    If yours is working can u send me it in pm
     
  10. I fixed temp by commenting out this line:

    Code:
    object TrySell(BasePlayer player, string item, int amount)
            {
                var data = ShopCategories[item];
                if (string.IsNullOrEmpty(data.Shortname)) return MessageErrorItemItem;
                object iskit = Kits?.CallHook("isKit", data.Shortname);            //if (iskit is bool && (bool)iskit) return "You can't sell kits";
                object success = TakeItem(player, data, amount);
                if (success is string) return success;
                Puts("Player: {0} Selled Item: {1} x{2}", player.displayName, data.Shortname, amount);
                return true;
            }
     
  11. After the update my shop is completely empty.
     
  12. download.png
    ?????????
    How do I deactivate this option?
     
  13. Ok. It works now. Thank you.
     
  14. is it the config file i edit for this plugin or the actual plugin because im not seeing what people have put above in my config
    I attached it if anyone can take a look
    Im after /shop working not npc
     

    Attached Files:

  15. I sent it to you ;)
     
    Last edited by a moderator: May 4, 2018
  16. cheers works thanks a lot
     
  17. You're welcome ;)
     
  18. I can not figure out how to work this plugin. I got it working for 1 item and 1 NPC but i added another with the same text format as the other but it didnt work so then i restarted and now i cant get it to work... heres my config


    "Shop - Balance": true,
    "Shop - Shop Categories": {
    "Wood": {
    "buy": "5",
    "img": "",
    "item": "wood",
    "cooldown": "0",
    "sell": "2"
    },
    "Bolt Action Rifle": {
    "buy": "500000",
    "img": "https://vignette.wikia.nocookie.net...le_icon.png/revision/latest?cb=20160211200415",
    "item": "bolt action rifle",
    "cooldown": "120",
    "sell": "250000"
    }

    },
    "Shop - Shop Icon Url": "",
    "Shop - Shop List": {
    "745124808": {
    "buy": [
    "wood",
    "bolt action revolver"
    ],
    "description": "Stuff",
    "name": "Shop",
    "sell": [
    "wood",
    "bolt action revolver"
    ]
    }

    }
    }
    }
     
  19. u need use exact the same name like above Wood and not wood, Bolt Action Rifle and not bolt action revolve
     
  20. I have a different version of guishop the one with the different categories added how do i fix it with the update ?