That's not my script nor have I seen the code myself, but there are a couple of universal things you could try.
1. First thing you should try is to read all the instructions about the script again. There might be some dependency between the money_system.lua and some other scripts that you have missed. Or some tweaking you need to do to the entity in the GameGuru editor. Read the instructions carefully. Have you checked Always Active ('Yes') and Static Mode ('No')?
2. Money System is Acid's script so you should maybe contact Acid himself for support. If he isn't currently active in the forum, try to PM him.
If and only if you can't establish contact with Acid, you can probably try to diagnose the problem yourself. Be aware that this might actually make things worse so before doing anything, repeat step 1. After doing that and before doing anything else take a backup copy of the original script in case you screw something up. Now there are 2 thing I would try if I were you: Try to define weapon_cost as a variable in init function and see what happens. Another thing is to try what happens if you change the reference to weapon_cost in line 96 from variable to table.
If weapon_cost is defined as a table but called as a variable (or vice versa), you get the error.
Defining a variable:
Defining a table:
Calling a variable:
Calling a table:
Edit: I'm almost 100 % sure that there isn't any error in the script, since the script has been there for a long time and it has worked well with other users. So I'll kindly point you to step 1. The instructions can be found here:
https://en.tgcstore.net/product/22987