If someone has inhaled a toxic substance, immediately move them to fresh air, ensuring your safety first. If the person is not breathing, begin rescue breathing or CPR as necessary. Avoid direct contact with any chemical residues. Inhalation of certain substances, like carbon monoxide, requires immediate medical attention due to its life-threatening nature.