This script checks the clients wallet every 5 seconds and to see if they’ve potentially exploited in
money.
If detected it will automatically kick/ban them and send a notification to Discord, if enabled.
You can configure the script in server.lua
Configuration Options:
Kick/Ban Toggle
Amount of Money Over Set Value Trigger Kick/Ban.
Discord Webhook
There is a check to exclude if they have the permission “player.givemoney” so any admins with that permission will not be effected if they give themselves money thru the admin menu.
No need for screenshots, it’s self explanatory.
Update:
9-30-19
-Added Bank Check Toggle
-Added Bank Money Setting
-Fixed Issue with it comparing wallet/banks with other players.
You can modify it to check for the bank money, however from my experience, cheaters are not modifying their bank money like that because any of the exploitable resources only gives them cash (wallet) money. So setting it for bank money is not necessary.
For the time being you can change vRP.hasPermission to vRP.hasGroup and change the group to superadmin. That should resolve that particular issue but I’ll know for sure when I test here soon.
I just tested it and I was not banned. So you must have your admin givemoney permission labeled as something else. What is the name of your permission for that function?
Also too please note that I only have it checking for that permission on PlayerSpawn. So if you join your server and start the script, it will not detect that you have that permission and you will get banned, you’d have to start the script before you join the server.
You’re 100% correct. If you wish to improve upon it I’ll push the update to the git.
And checking 1 small bit of data even with 100+ people connected shouldn’t be an issue as it should be triggered by the client and not every person at the same time (so the requests will be staggered) and not flood the server with requests all at the same time.
This script was a proof of concept in the sense that no one has even put anything remotely out about it so I figured it’d help out in some scenarios. It’s far from perfect, but could help someone out.