Garry's Mod

Garry's Mod

36 ratings
PropPrice - The Innovative Anti-Prop Spam Addon
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Realism
File Size
Posted
Updated
129.926 KB
23 Sep, 2018 @ 4:05am
28 Jan, 2021 @ 12:07am
8 Change Notes ( view )

Subscribe to download
PropPrice - The Innovative Anti-Prop Spam Addon

Description
PropPrice - The Innovative Anti-Prop Spam Addon*

* price tag and bHUD not included



Are you a server administrator, wishing to prevent prop spam?
Are you in singleplayer, wanting to cut down on prop count and lag?
Do you believe prevention is better than cure?

For the record, I'm still busy dealing with life's problems, so this is an addon I made in just a week or two in order to continue contributing to the community. Thought it might be useful.

This addon will cause props and entities to cost money to spawn. You can find relevant options in your spawnmenu, in the Options tab.

Planned features:
- Money printers.
- More ways to gain cash.

If you have any suggestions or bug reports, feel free to leave it in the comments down below. All comments are welcome. Only spam comments will be deleted.



If you like my work, you now have the option to donate on Ko-fi[ko-fi.com] so that I can keep working for another day. Every little bit helps!
46 Comments
Piengineer12  [author] 5 Dec, 2021 @ 4:18am 
@Hobo Joe
You can use my code, but under the MIT License [github.com]. As in, you can use my code for anything, so long as you include the LICENSE.txt I've linked above somewhere in your files.
Hobo Joe 28 Nov, 2021 @ 9:58pm 
Would you mind if I used your mod in a gamemode I'm making?
I was considering just being inspired by it and making a similar system to calculate "prop price" by mass, polygon count, whatever lol.
But I realize that even if I did use that concept, that it would never be as compatible/customizable as yours. Which would negatively effect servers/players ability to customize the difficulty of the mod/internal economical resource bull shiz.
I would give absolute full credit. I would need to modify it slightly to make it compatible of course (UI and very little code likely). The gamemode in question is a spiritual successor to Market Fog.

If you are uncomfortable with this no problem! I won't bother you any further!
Piengineer12  [author] 12 Jul, 2021 @ 12:48am 
Turns out I've forgotten a type cast. I've fixed it in the latest update to the UCE.
Ohmyori 12 Jul, 2021 @ 12:27am 
Hello again! Thank you for the quick update. The changes were a big help in my server.

Here's an error I've found though while attempting to exchange from Nmoney 2 to PropPrice:

---

[DeluxeFrappe|3|STEAM_0:1:125923806] Lua Error:

[Universal Currency Exchanger] lua/entities/currency_exchanger.lua:300: attempt to compare number with string
1. UniversalCurrencyFunction - lua/entities/currency_exchanger.lua:300
2. unknown - lua/entities/currency_exchanger.lua:506



[Universal Currency Exchanger] lua/entities/currency_exchanger.lua:300: attempt to compare number with string
1. UniversalCurrencyFunction - lua/entities/currency_exchanger.lua:300
2. unknown - lua/entities/currency_exchanger.lua:506 (x52)

Transaction successful!

---

As for improvements, I think the HUD or GUI is all I could think of since all of your scripts are so unique and well-written. Can't ask for more really. Thumbs up!
Piengineer12  [author] 11 Jul, 2021 @ 2:25am 
Alright, I've rolled out an update to the UCE, comment there if any improvements / bug fixes can be made.
Ohmyori 11 Jul, 2021 @ 12:53am 
Yes I was thinking of that too, and I remember seeing the same suggestion in the comment section there. I think the people will like it.
Piengineer12  [author] 11 Jul, 2021 @ 12:52am 
It's impossible unfortunately due to how I've coded the system. I can however update the old Universal Currency Exchanger addon to convert PropPrice cash to nMoney and back, is that fine?
Ohmyori 10 Jul, 2021 @ 7:57pm 
Is it possible to support Nmoney 2 addon to be used as the currency for spawning props?
Judas Priest 5 Feb, 2021 @ 1:48am 
I'll definitely look into it on the meantime and update you on it. Thanks for responding. :steamthumbsup:
Piengineer12  [author] 5 Feb, 2021 @ 1:36am 
I can't seem to reproduce the bug - the addon doesn't allow me to spawn anything when my cash is negative.

If propprice_overdrafting is 1, players can spawn things until their cash is negative, where it'll completely prevent any type of spawning. If you can still spawn NPCs while your cash is negative, then there might be an addon conflict.