To enter the cheat code in the Red Dead Redemption 2 game, open the game setting -> Click on the Cheats -> Enter your cheat codes there.