Quick answer: stand next to a wall, car or any solid object and press R1 on PS5 / RB on Xbox. Press it again to leave cover. Hold L2 to aim out and R2 to fire.

Cover controls

ActionPS5Xbox
Take / leave coverR1RB
Aim from coverHold L2Hold LT
FireR2RT
Move along cover / round a cornerLeft stick, then CrossLeft stick, then A
Switch shoulderD-pad Left (while aiming)D-pad Left (while aiming)
Holster / draw weaponL1LB

How cover actually works

The Cover Selection setting

Under combat settings, Cover Selection offers Camera & Movement or Movement Only - whether the camera direction counts when the game picks which cover to snap you behind. If you keep getting the wrong cover, switch it to Movement Only.

FAQ

What button is take cover in GTA 6?

R1 on PS5, RB on Xbox Series X|S (Default control scheme).

How do you shoot from cover?

Hold L2/LT to lean out and aim, press R2/RT to fire - release aim to tuck back in.

How do you move around a corner in cover?

Push the left stick along the edge and press Cross/A to round the corner while staying in cover.

When does the game teach cover?

In Chapter 1's Gone Fishing - the RV park shootout pops a "Press R1 to take cover" tip when the fight starts.