Garry's Mod

Garry's Mod

Not enough ratings
The smallest gunshop™
   
Award
Favorite
Favorited
Unfavorite
Content Type: Dupe
Dupe Tags: Machines
File Size
Posted
Updated
5.869 KB
8 Mar, 2020 @ 4:48pm
8 Mar, 2020 @ 5:41pm
2 Change Notes ( view )

Subscribe to download
The smallest gunshop™

Description
The Smallest 'Gunshop'™

To call this a 'Gunshop' might be overselling it, this is a box with a touchscreen that dispenses stuff from DarkRP shipments.

It uses an E2 chip as the brain, and an EGP touchscreen as the interface. It is fully configurable from inside the E2, and it has some nifty features such as automatic out-of-stock detection and notifications that other gunshops often do not have.

What's important is not its features, but the size of the machine.
It's not much bigger than the shipment it contains. In fact it is so 'not much bigger' that the 3D2D text the shipment has actually renders on the outside of the box.

I'm pretty sure this is the smallest fully-enclosed automatic 'gunshop' it is possible to make.

That said, if someone wants to take it as a challenge and build an even smaller fully-enclosed automatic gunshop I'd love to see it.

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


Troubleshooting:

"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 26: 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 22: Sound_Purchase = "mvm/mvm_bought_upgrade.wav" Sound_Failed = "mvm/mvm_money_vanish.wav"

"The shipment won't fit in the machine!'"
.. Yes it does.
Just grab it with the gravity gun and give 'er a wiggle 'till it fits. It can be a bit tricky because of the tight tolerances but I assure you it does fit.

"It keeps spamming my chat with messages!'"
The container will tell the user if it is out of stock. Just put a shipment to sell into it and wait a moment and it will stop asking.

"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
Sony  [author] 1 Jul, 2021 @ 6:02pm 
@hoteadb The server probably doesn't have the moneyrequest E2 extension that this requires to work then. Unfortunately it isn't something I can fix at my end, you'd have to ask the server admin about adding it or find a different server with it installed.
hotheadb 1 Jul, 2021 @ 5:19pm 
It says "no such function: moneyrequest (entity, number, string) at line 119, char 9"
red_sky 11 Mar, 2020 @ 1:41pm 
w