Garry's Mod

Garry's Mod

Not enough ratings
Compact Quad-Shop
   
Award
Favorite
Favorited
Unfavorite
Content Type: Dupe
Dupe Tags: Machines
File Size
Posted
21.545 KB
9 Mar, 2020 @ 2:58pm
1 Change Note ( view )

Subscribe to download
Compact Quad-Shop

Description
A compact little gunshop for the lazy gundealer.

Features:
  • Fits 4 standard darkrp shipments
  • Easy to replace shipments using only the gravity gun.
  • Stock prices and display names are easily configurable in the E2.
  • Won't try to sell out of stock items.
  • Rarely jams, but I wouldn't try selling any of the really large guns.

How to use:
  1. Make the back panel a fading door so you can easily access your shipments and the E2 chip.
    (The E2 is on the floor tucked under the angled plate)
    If you've placed the dupe up against a wall or somewhere you can't get behind it, just make the left and right sides of the casing fading doors instead. You may have to move or replace the E2 though as that cannot be accessed from the sides.

  2. Fill the shelves up with the shipments you want to sell. It helps if you angle them as shown in the screenshot with the amount display facing backwards so that none of the floating text sticks out the front of the machine.

    Edit the following E2 lines so the machine knows what you're selling and for how much.
    The variables correspond to the positions of the shipments when viewed from the customer side of the machine, so GunNameTL is the top left one, etc.
    GunNameTL = "Keypad Cracker" GunPriceTL = 250 GunNameTR = "Lockpick" GunPriceTR = 100 GunNameBL = "Holoscanner" GunPriceBL = 500 GunNameBR = "Knife" GunPriceBR = 100

  3. Close up the back of the machine and you're done. You might need to refresh the E2 to get things going again. You can do this manually with the E2 tool or by pressing the tiny 'Reboot' text at the bottom of the EGP display.

Troubleshooting:

The E2 code for those that want to mess with it.[pastebin.com]
If you share it please leave the credits in, thank you!

"When I paste the dupe I get an error!"
There's a weird bug with E2s where they work fine until you dupe em, try downloading the raw E2 code from this link[pastebin.com] and inputting it manually, it should work then. Maybe.


"E2 says 'Missing function requestMoney() on line X'"
This requires TylerB's E2 MoneyFunctions addon to work. Most DarkRP server that allow the use of E2's will have this addon. If the server you're playing on doesn't have it, I'm sorry but this will not work. Try bugging the server operator or something, that always goes well.


"The screen shows pounds but I live somewhere that uses dollars!'"
If you are fortunate enough to live outside the UK then you can easily change the currency symbol to your local one by changing one character in the E2 code:
Line 13: CurrencySymbol = "£"


"I can't hear the sounds!'"
By default this uses some sounds from TF2 because I thought they sounded nice. if you don't have TF2 installed and want to change them to something else, simply change the sound paths in the following code:
Line 31: Sound_Purchase = "mvm/mvm_bought_upgrade.wav" Sound_Failed = "mvm/mvm_money_vanish.wav"


"Things keep getting stuck!"
This shop was built to be as compact as I could make it, and as an effect of this it doesn't handle spawning big weapons too well. Try putting boxes with larger objects on the upper shelves, and try to keep the shipment contents to smaller objects like lockpicks, keypad crackers, SMGs, etc.


"The server says E2 is blocked!"
Hardly my problem dear.


If you have an issue that is not listed here, please drop me a comment below and I'll try my best to fix it for you.

3 Comments
Brock 26 Apr, 2022 @ 11:16pm 
server not appearing for me
Sony  [author] 13 Mar, 2020 @ 8:59pm 
@StormChaserGaming - Yeah that's a bug that seems to happen with some E2s at the moment. You can fix it by downloading the E2 from the this pastebin link [pastebin.com], pasting it in the E2 editor manually, and hitting update and it should work fine.
76561198117404153 13 Mar, 2020 @ 7:28pm 
i tried everything and nothing worked it says Unknown character found (.) at line 31, char 41