Cayo Glitch?

Trying to get the code prints from the guy in the casino. No matter how stealthy I am they always know I’m there and after killing everyone I can’t loot ole buddy. Any ideas on how to fix it?