I’ve followed a money system tutorial - and now I want to create a command that will add money for debugging purposes. However, I’m failing at creating the command, and I don’t know what I’m doing wrong.
Here’s the relevant bit of code, but if you need more, I’d be glad to provide.
function meta:AddMoney(args) local current_cash = self:GetMoney() self:SetMoney( current_cash + args ) end concommand.Add( "!addmoney", meta:AddMoney )
What am I doing wrong, and how would I fix it?