"allowedFacewear" in a heagear's config is ignored when using BIS_fnc_unitHeadgear in order to randomize heagears for custom units as explained there :
https://community.bistudio.com/wiki/Arma_3_Characters_And_Gear_Encoding_Guide#FIA_headgear_and_facewear_randomization
{F27236}