North Carolina lets cities and counties adopt minimum housing rules. After a complaint, a housing officer can serve the owner and hold a hearing 10 to 30 days later. If repairs would cost a reasonable amount compared with the home's value, the officer can order them. During the repair period, the officer can require the house to be vacated and closed if staying there would create a significant threat of bodily harm. Where the local code has a housing appeals board, an appeal must be filed within 10 days. See North Carolina's housing-code authority and appeals rules.
If an owner does not comply, the local governing board can pass a property-specific ordinance and record it with the register of deeds under the owner's name. The local government can then do the work itself, but it cannot order demolition that way until the owner has had a reasonable chance to fix the house. The cost becomes a lien on the property, behind only tax liens and collected like a special assessment. Selling does not erase that lien; it is usually paid at closing. See G.S. 160D-1203 on housing orders and liens and G.S. 160A-233 on special-assessment lien priority. Send us any notice or order so we can check what it means for closing.
When you sell to us, we're the buyer, so the repairs become our job. That does not cancel an existing order, court case, statutory deadline, or seller obligation before closing.