The Captain’s Hat is on the bridge of the Gambit Bay freighter in GTA 6. Look for the pale upper section of the wreck sticking out of the water. Climb the stairs on the outside of that structure and go in through the red door at the landing. The bridge safe uses 0521, including the leading zero.
Stay at the surface for the bridge
The windows in the bridge sit at an angle because the hull is tilted. Walk past the windows and the controls to reach the back room. The safe keypad is on the light wall near the nautical charts. Check the hat separately before leaving. Opening the safe collects neither item automatically.
When to make the dive
The underwater cargo hold has its own entrance. If you are returning with scuba gear after Maritime Disputes, look for the yellow 05 on the bulkhead and the open side hatch at that level. For the hat and bridge safe, stay with the outside staircase route.
