To toggle addon attachment you either need to use simple trainer or add the weapon and weapon components to vMenu or edit the meta file.

To toggle an attachment go to the weapon.meta file and on lines:
275
284
293
change false to true depending on which attachment you'd like