Before you cheat, you have to active cheats through the cheats console. “testingcheats true” (or “testingcheats on” for consoles). Sometimes you have to use testingcheats enabled. All of these should be entered without quotation marks. Enter the desired cheat in the cheat and confirm with ENTER. Close the cheats console by pressing escape.