The general safety principle is not to use the lift in a fire as hot gases will flow upwards in the fire due to draft and can cause choking of persons inside. Also, it is likely that the fire can damage the metallic body, lifting cables and electrical cables endangering the persons inside. Also, Lift doors can get jammed due to hot conditions and trap the persons inside. Hence, it is always advised not to use a lift but to use stairs in case of fire.
Further, to make a foolproof system, it is better to interlock such that the power supply to the lift will be cut off in the event of fire detection and the lift will go only to the next level and stop there and doors are opened automatically.