GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. Code:
    "Smoke Rocket": {
            "buy": "100",
            "img": "https://vignette4.wikia.nocookie.net/play-rust/images/8/80/Smoke_Rocket_icon.png/revision/latest/scale-to-width-down/50?cb=20150531134255",
            "item": "ammo.rocket.smoke",
            "sell": "50"
     
  2. Thanks again Unicorn
     
  3. Like this:

    Code:
    "Smoke Rocket": {
            "buy": "100",
            "img": "https://vignette4.wikia.nocookie.net/play-rust/images/8/80/Smoke_Rocket_icon.png/revision/latest/scale-to-width-down/50?cb=20150531134255",
            "item": "smoke rocket",
            "sell": "50"
    Don't use short names ;-)
     
  4. Well spotted :) Go back one page and i'm saying 'don't use short names'.. Memory of a fish.
     
  5. dat OCD bro :p bloody nightmare sometimes ahahaha!
     
  6. I can't understand how to display the item itself in the Shop GUI:
     

    Attached Files:

  7. This will use the /shop command as no NPC ID's have been set. If you do want NPC's to be your "Traders" then change: "0": { to: "NPC ID Here": {
    [DOUBLEPOST=1498143650][/DOUBLEPOST]Sorry I screwed up myself, I kept the rifle's in the fruit store... Use this one:
     

    Attached Files:

  8. Wait so If I want to make categories and I want to access them, do I type /shop "fruit market" ?
     
  9. No open GUIShop.json (oxide/config)

    Then add / change this section:

    Code:
      "Shop - Shop Icon Url": "",
      "Shop - Shop List": {
        "0": {
          "buy": [
            "Apple", <-------------------
            "BlueBerries" <----------------
          ],
          "description": "You currently have {0} coins to spend in this farmers market",
          "name": "Fruit Market", <-------------------
          "sell": [
            "Apple", <-------------------
            "BlueBerries" <------------------------
          ]
        },
    Also in game all you need to type is /shop - the ones you defined above will show there ;)
     
  10. Thanks, but I think i'll just name them all pages to "shop", easier for me :p

    I got it to work, there is my config:
     

    Attached Files:

  11. i got a problem were it dos not show anything when i do /shop plz help me someone
     

    Attached Files:

  12. I have fixed the file for you as there were some errors:
    [DOUBLEPOST=1498145101][/DOUBLEPOST]
    changed "chat" to "0" so should work now :)

    This double post thing is rather annoying... The smaller file is for KalasRL and the larger file is for mus672f
     

    Attached Files:

  13. when it is changed to 0 it says u cannot use the shop command u need to find the npc
     
  14. GUIShop v1.4.2: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: ". Path '['Shop - Shop List'].0.name', line 126, position 3.)
     
  15. Weird because in the overview it states:

    in NPC USERID:
    you must use /npc_list to get the list of the NPC IDs and place the id of the NPC that you want to be this market.
    You may use "0" as ID, this will ACTIVATE the /shop command. <------------------
    if NO "0" markets are set, the /shop will not work and the shops will only be avaible via NPCs.

    @KalasRL - on line 125: "name": "Shop", add the "," to the end, upload and reload the GUIShop ;)

    if "chat" works instead of "0" then obv use that and the dev needs to then update the overview to reflect this.
     
  16. It's telling me I need an NPC, I want to use /shop and It will open just like that.
     
  17. You said yesterday it worked with "chat" so use that mate. Looks like the dev may need to update the overview on here to reflect this. I use NPC's so don't have this issue, the only other thing I can think of if "chat" doesn't work is to just have ""
     
  18. Hmm ok, I used my old Config, It works fine so i'll stick with that.
     
  19. how do i make it so the item is only availabe for buying or only selling?
     
  20. You have to look for buy and sell list at bottom of the config