Giving player money

Iā€™d like help for a chat command that adds money to players. Not to set a certain amount but to add onto whatever they already have.

Thanks, :smiley:

Edit: Nevermind. Screwing around with code and found a way although i will make this more secure :stuck_out_tongue:

TriggerEvent('es:addCommand', 'givemoney', function(source, args, user)
TriggerClientEvent('chatMessage', -1, "", {255, 0, 0}, "You've added money...")
					user:addMoney((args[2] + 100.0))
end)
1 Like

Which file would I add the code to