GTA Wiki
GTA Wiki
This article or section refers to "enhanced version" content in the Xbox One, PlayStation 4, and PC renditions of Grand Theft Auto V and/or Grand Theft Auto Online, that is absent on the Xbox 360 or PlayStation 3 versions.
For a complete list of the features of the "enhanced" version of Grand Theft Auto V, please see here.

So, the codes to the safe. Essential part of plan! Only two men know them. One is Mr. Rubio... not an option. The other is head of security... with him, we have a chance. I have been monitoring his travel, and today is our opportunity. He will be in Mr. Rubio's penthouse at the Diamond Casino for big party. If we are careful, and he is drunk, perhaps we do the whole thing without being noticed.
— One of Pavel's briefings.

Safe Code is a prep mission featured in Grand Theft Auto Online as part of The Cayo Perico Heist update, and a freeroam mission that can be completed at any time while The Cayo Perico Heist strand is active.

It is a mandatory mission that must be completed in order to progress into finale. However, it will only be active in the heist strand if the player discovers the primary target to be in the safe inside the compound vault during the Gather Intel mission.


Pavel reveals to the protagonist that the only way to access the safe in Juan Strickler's compound vault is to acquire the combination code for it, and that the Head of Cayo Perico Security is the only person other than Strickler to possess it. He informs them that he frequently comes to the mainland to relax at The Diamond Casino & Resort hotel and that that is the only time when he is vulnerable.

Players first objective is to head to the casino and then gain entry to the penthouse suite:

  • If the player who initiates the mission has a penthouse at the resort hotel, they and any others will be able to access the floor directly from the elevator.
  • If none of the participating players have a penthouse, they must venture into the resort's parking garage and steal a keycard from Tom Connors' car.

Once on the penthouse floor, they must seek out and find the suite's entrance, which is set at random and flanked by two guards. Players have a choice how to approach the entry:


Players can stealthily dispose of the guards (i.e. two players simultaneously shooting silenced weapons or a single silenced sniper headshot through-and-through) which retains the element of surprise inside the penthouse. The player will be free to locate the target without hostility from the guards. Drawing any weapon will instantly turn all guards hostile. Once the target is attacked, all guards will converge on the location.


A noisy takedown of the exterior guards will alert everyone inside. Entering the suite, the guards will be hostile, forcing players to deal with them while seeking out the target.

Once the security head is killed the player needs to search the body for the safe code, which will complete the mission and teleport the player back to the casino entrance.

Changes (Patch 1.57)

With the release of the Los Santos Tuners update, the "Escape the casino" and "Lose the cops" objectives after collecting the safe code were removed and the mission is completed as soon as the safe code is collected. The main reason for this change is that if the player gets killed inside the casino, they will be teleported to the NOOSE Headquarters due to the casino interior being located below the facility.


Video Walkthrough