Alternative mesh

i found in Actor variables some alternative mesh bottom of base mesh, so i need to use base mesh for male and alternative for female, any idea how it possible to create some lua to swap mesh path to alternative mesh path based on male/female? for gearitems it easy to change by armor parameters, but for weapone it dont has any mesh parameters except base and alternative