int iFlag = GetCommandFlags("r_screenoverlay") & (~FCVAR_CHEAT); SetCommandFlags("r_screenoverlay", iFlag);