You wont get BE or Vac banned for using scripts but antihack can ban you and BE can kick you for scripts.
If the money spawning doesn't work the server probably change the life_money to anything like cashcash_dolladolla if you want to find that goto C:\Users\INSERTCOMPUTERNAMEHERE\AppData\Local\Arma 3\MPMissionsCache then download pbo manager and you will be able to open them and look inside them.
i usally look for core > functions / actions > search for fn_pickupMoney.sqf