Source: GTA VI, in-game

How Does the GTA 6 Wanted System Work?

It runs on reports, not on crimes. A star only comes when a cop sees you, a witness calls it in, or the crime is big enough for dispatch to send units straight away: explosions, trespassing in high-security areas, a stolen plane. Do the job where nobody is watching and nothing happens.

There are six stars. Get away and the stars turn red: that is Heat, the area staying warm behind you. Get spotted or commit another crime while it lingers and the chase picks up where it left off. Keep the police scanner on, because dispatch says out loud what has been reported and which way they think you went.

What do the Heat icons mean?
They show what the police know about you. Appearance: change accessories or your hair. Vehicle: ditch it or get it repainted. Outfit: change clothes, and keep a spare in the trunk. Partner: split up, or change the other character's look. CCTV: destroy the footage. Clear them and the police lose the thread.
Source: GTA VI, in-game
What do gray and white stars mean?
Gray stars: the crime has been reported, but the police have not seen you yet. White stars: they have eyes on you. Red stars and red outlines are Heat after you got away.
Source: GTA VI, in-game
Can you surrender to the police?
Yes, as long as your Criminal Profile holds. Once a character slides to Violent or worse, the police stop taking surrenders. See the Criminal Profile.
Source: GTA VI, in-game
Where can you hide a longarm?
In the trunk. Longarms cannot be concealed on you, so stash them or drop them when the police are looking for an armed suspect.
Source: GTA VI, in-game