Races with the nofear racial are not affected by fear spells, but also refuse to flee once combat is already engaged.
Neither aspect of this racial can be prevented, they are both automatic.
As characters become more powerful, they MAY be able to overcome this.