Not sure about the function you made, I'm not good with scripting yet. I do know that the line load_wepon_specs_from_table, Istanbul referring to your wepons.csv. (a table with all weapons info (ie. weapon name, cost, in the box or not, is a wounder weapon, spawn a wallbuy,ect....)) it is located in share/raw/gamedata/weapons/zm/zm_levelcommon_weapons.csv, and that is were you should, theoretically, be able to delete weapons from map, change wallbuy cost, and add or remove from the box. However so you don't effect all maps or mess with the original, you should copy it and paste it in a folder in user maps like: usemaps/gamedata/weapons/zm/zm_levelcommon_weapons.csv. and from there you can edit the csv file and only effect the map you are working on. also you need stringtable::gamedata/weapons/zm/zm_levelcommon_weapons.csv line added at the bottom of your map's zone file. That is what all the tutorials say but it hasn't worked for me yet. Good Luck