How to Open a Safe Once You Have the Code

Start condition: you have obtained the code in-game. The same steps apply whether a story or specific mission provided it or you obtained it during a regular robbery event (PC Gamer).

According to PC Gamer, codes vary during regular robbery events, so this guide does not list fixed codes.

Opening the Avery Pawn safe with a four-digit code (Trophy Tom, mission footage)
  1. Obtain the safe code in-game (provided by a story or specific mission, or found during a regular robbery event).
  2. Interact with the safe and check the 4-digit number in the bottom-right of the screen.
  3. Enter that 4-digit code. The safe unlocking means you succeeded.

GTA VI World Map: What Selecting a Target Store Shows

If No Code Appears or You Don't Know Where to Get It

PC Gamer explains that the code can sometimes be found on-site.

The in-game hint screen published by GTA6 Heists (Lorenzo Bruno) states that the code may be kept on-site or known by a clerk. According to the same screen, Focus lets you see a clerk who may know the code.

GTA6 Heists' One Stop Liquor record states in its body text that in a single run the clerk did not know the code.

What Store Door Colors Mean in GTA VI's Focus Mode: White and Red

Records by Mission and Store

What PC Gamer, PowerPyx, and GTA6 Heists have confirmed so far:

Regular robbery events (PC Gamer)Codes vary
Story and specific missions (PC Gamer)The code is provided
Chapter 3 "Yasmani’s Jewelry Jobs" (PowerPyx)A different code entered at each of Casa de Empeno, Richardson Jewelry, and Donovan Banks & Co. to recover the target items
Avery Pawn (GTA6 Heists launch stream observation; 0:04:44 is the timestamp in the site's recorded footage)Safe UI showed "ENTER CODE" and "PLANT EXPLOSIVE" options

GTA VI World Map: What Selecting a Target Store Shows

See the safe sequence in Yasmani’s jewelry store mission (PowerPyx)

What TGG Saw in the Pre-Launch Demo

In a summary post on Reddit r/GTA6, TGG wrote that a pre-launch demo played by Rob Nelson included a scene of searching a store for a code and an example of an in-game buyer sending a code by message. Both are pre-launch demo observations.

PC Gamer's guide also states that codes can be found on-site. For the buyer message, this article's sources do not show it demonstrated in the release version.

What Store Door Colors Mean in GTA VI's Focus Mode: White and Red