If you want the cheats to work with TTMenu then in your TTMenu folder there is a file called "usrcheat.dat".
Step 1: Locate "usrcheat.dat" in the TTMenu folder
Step 2: Download "Cheat Code Editor"
HERE or
HERE at the bottom of the page
Step 3: Put your SD Card into your computer
Step 4: Open "Cheat Code Editor" and then press File > Open cheat database and locate the "usrcheat.dat" inside the SD card which will be something like F:/TTmenu/usrcheat.dat and press it to open it
Step 5: Press "Add Game" under the code menu and input the game name, to find the game ID, press "Tools" then press "get GameID from ROM" and find your ROM on your R4 and it will give you the ID which you put into the ID section
Step 6: Press the "Code" menu again and then press "Add Code" and input the code you wish to use and name it for future reference
Step 7: Save the cheat database to wherever the "usrcheat.dat" file was so for example F:/TTMenu/usrcheat.dat and then turn on your DS and open TTMenu and press the "Enable Cheats" option and select the codes.