With default controls, double-tap Triangle on PS5 or Y on Xbox to exit with the engine running. In a stationary car, hold Circle or B to duck.
Location and access
Try the exit with the car at a standstill and get back in to see the difference. One press of the exit button and two quick presses behave differently.

What to do
Ducking lowers the character behind the wheel. The trick depends on the car being stationary and police not already looking for that vehicle. If you changed layouts, check your vehicle control bindings in the menu.
Related guides
Vehicle catalogue and locations · Camera views and controls · A garage glitch brings first-person view back to GTA 6 after the patch