Quick answer
Robbery safe codes vary by encounter. Find the clue in the game. When you interact with the safe, the four-digit code appears on screen.
Where to look for the clue in each local
Check in-game staff areas, boards and documents. Focus Mode can highlight items. In a story mission, check the current objective first because it may give you the combination.
Enter your code
Interact with the safe and look at the bottom right of the interface. Use the four digits shown for that location. If the code is missing, check that you read the relevant clue.
Finish the encounter
The map can tell you if a location has a safe. After collecting the loot, check whether the game already credited your balance or whether an item still needs to be delivered to a buyer.
Related guides
See also · GTA 6 giant crab: Pelican Valley lab location and safe codes
For the safe in Crosstown, see the Marbelle Hotel.