How do you repair your car in GTA 6?

Short answer

At a Pay 'n' Spray or a Mod Shop

Drive into a Pay 'n' Spray or a Mod Shop: the map's Vehicles tab lists the ones you have found. A gas station can patch the car up too, but only partly, so bad engine damage needs one of the shops. Press Down on the D-pad to see the engine icon above the minimap, from green to a red cross.