Well, VAC do not run in Barracks.
So use the stuff there and you are more then safe.
Never ever heard of any that have been banned for using trainers in Barracks / SP-Spec Ops
So you are mostly like safe as you can ever get.
But, there might be a detected if they check stats, but I don't think they will...