In GTA 6, safe codes are essential for unlocking loot containers during robberies and in the main story. While mission-specific codes are provided, robbery codes are randomized, requiring players to adopt specific strategies to obtain them. You can either find the code written on notes within the premises or interrogate an employee to get the information. To locate codes, check areas inside stores or banks where notes might be placed, such as a back office board. Utilizing Focus Mode (L3 and R3) can help highlight the code's location. If you choose to interrogate employees, aiming at them prompts options to threaten or ask for the safe code, persuading them to divulge the information. In certain cases, this can also prompt cashiers to empty the registers, adding to your haul. Once a code is acquired, it appears on your screen when interacting with the safe. You’ll need to input the four-digit code quickly, as time is critical during these heists. Establishments marked on your map indicate the presence of safes and give insights into their security levels and the potential loot, guiding you to the most rewarding targets.