I was looking into capping the maximum amount of money people can have in their wallets to 5,000 but am trying to find a ‘master’ location of where I can actually write something like that in Darkrp as I don’t want to rewrite every function that takes money away to check if wallet > 5000. Any help?
Hm: self.DarkRPVars.money seems to be what things use to check how much money a player has. So could I use something in like main.lua to say:
if self.DarkRPVars.money > 5000 then
self.DarkRPVars.money == 5000
ply:Notify( “Blabla your wallet is full”)
only thing is it will still eat up the money that is put into the wallet.