Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Money dupe exploit (via popular 3rd party addons) #1299

Closed
Pantho opened this issue Jan 30, 2014 · 12 comments
Closed

Money dupe exploit (via popular 3rd party addons) #1299

Pantho opened this issue Jan 30, 2014 · 12 comments

Comments

@Pantho
Copy link

Pantho commented Jan 30, 2014

This quick fix will stop the majority of money exploits done via 3rd party addons such as Moneypot/Wire and other such things.

spawned_money/init.lua
Top top of the touch function (sorry for no pull request, having issues atm).

function ENT:Touch(ent)
if ent:GetClass() ~= "spawned_money" or self.hasMerged or ent.hasMerged or self.USED or ent.USED then return end
ent.hasMerged = true
ent.USED = true
@FPtje
Copy link
Owner

FPtje commented Jan 30, 2014

Why two vars for the same purpose?

@Lexicality
Copy link
Contributor

Because other addons that exist and are in use already don't use hasMerged, but do use USED.

@FPtje
Copy link
Owner

FPtje commented Jan 30, 2014

Well that sucks

@Pantho
Copy link
Author

Pantho commented Jan 30, 2014

Aye, but it's only a small fix that fixes a few 3rd party addons from money duping so why not :)

@FPtje
Copy link
Owner

FPtje commented Jan 31, 2014

Might as well get rid of the hasMerged init

@FPtje FPtje closed this as completed in 020666e Jan 31, 2014
@Lexicality
Copy link
Contributor

RIP anyone who used hasMerged

@FPtje
Copy link
Owner

FPtje commented Jan 31, 2014

It's something I use internally. Did other people really use that variable?

@Pantho
Copy link
Author

Pantho commented Jan 31, 2014

Who knows, not hard to believe an addon dev has checked which var spawned_money uses and mimic it right?

@Lexicality
Copy link
Contributor

@FPtje
Copy link
Owner

FPtje commented Jan 31, 2014

I didn't know that, I'll re - add it.

@FPtje
Copy link
Owner

FPtje commented Jan 31, 2014

a94e084

@Lexicality
Copy link
Contributor

Thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants