Max Payne (2001) has no cheat menu. On PC the cheats are developer console commands, which only work once the game is started with the -developer parameter. The PlayStation 2 version has three button codes instead.
Commands that could not be confirmed and PS2 codes with an uncertain effect are left out.
The short version: add -developer to the shortcut, load a level, press F12 and type coder. That one word turns on invincibility and hands you every weapon, ammo and health. On PS2, pause and press L1, L1, L2, L2, R1, R1, R2, R2 for invincibility. Below are all 30 PC commands and the 3 PS2 codes, what each one really does, and the fixes for a console that refuses to open.

Right-click your Max Payne shortcut, open Properties and add -developer at the end of the Target field, after the closing quote. Start the game from that shortcut, load a level and press F12: the console opens and accepts the commands below. Without -developer, F12 does nothing.
Two details trip people up. The parameter goes outside the quotation marks that Windows puts around the path, with a space before it, so the end of the Target line reads ...maxpayne.exe" -developer. And the console only opens once you are inside a level: on the main menu, F12 still does nothing even with the parameter in place.
Every command on this page is typed the same way: the word, then Enter. The copy buttons on the cards put the exact spelling on your clipboard, brackets and underscores included.

Type a command in the console and press Enter.
Each command hands you one weapon.

Two codes are entered on the pause screen during play, the level unlock on the main menu.
Jump to: 127918; PlayStation 2 · pause · 127918; PlayStation 2 · main menu
Thirty commands is a lot to remember. These four cover most reasons to open the console: staying alive, getting the guns, switching the safety net off again and keeping the bullet time meter full.
Jump to: 128421;️ PC · start here · 128421;️ PC · undo · 128421;️ PC

The 30 PC commands split in two: 15 general commands that change Max or the screen, and 15 that each hand over one weapon. The general ones, grouped by use:
coder is the shortcut: invincibility, every weapon, ammunition and health in a single word. If you only want to stop dying and keep the arsenal you have found so far, use god instead, which turns on invincibility and nothing else. mortal is the off switch for both, so you can play a hard section with the safety net on and drop it again for the next one.
getallweapons gives you every weapon, while coder adds invincibility, ammunition and health on top. getinfiniteammo means you never run dry. gethealth restores health, while c_addhealth(100) adds a fixed 100 points; type it exactly as shown, brackets included. getpainkillers gives you 8 painkillers, the same number the PS2 all weapons code hands over.
getbullettime tops up the bullet time meter, so you can keep diving through doorways in slow motion instead of rationing the meter. The game is built around bullet time, and this command keeps the effect running instead of replacing it.
noclip lets Max walk through walls, and noclip_off puts the walls back. It is handy for getting past a spot where you are stuck, but switch it off again before carrying on. jump10 raises Max's jump, and jump20 and jump30 go higher still. showfps puts a frame rate counter on screen, useful when you are testing the game on a modern PC.
Each one starts with get and ends with the weapon's name: the baseball bat, the Beretta and dual Berettas, the Desert Eagle, the sawed-off and pump shotguns, the Jackhammer, the Ingram and dual Ingrams, the MP5, the Colt Commando, the Molotov cocktail, the grenade, the M79 grenade launcher and the sniper rifle. Pick one when you want to try a specific gun early; type getallweapons when you want them all.
Counting the lists above, the 30 PC commands run from 3 letters, god, to 16 characters, c_addhealth(100). Eleven of the 15 weapon commands are at least 10 letters long, so typing coder or getallweapons once is quicker than asking for the guns one by one.
The three PS2 codes are 8 presses each, 24 in total, and each one has a pattern that makes it easy to learn. Invincibility presses every shoulder button twice, in order: L1, L1, L2, L2, R1, R1, R2, R2. All weapons presses every shoulder button and every face button exactly once: the four shoulders in the same order, then Triangle, Circle, X, Square, going round the face buttons. The level unlock is the odd one out, seven directions on the d-pad finished with Circle.
| Code | Platform | Length | Where to enter it |
|---|---|---|---|
| coder | PC | 5 letters | Developer console (F12), in a level |
| c_addhealth(100) | PC | 16 characters, the longest | Developer console (F12), in a level |
| Invincibility | PS2 | 8 presses | Pause screen, during play |
| All weapons and 8 painkillers | PS2 | 8 presses | Pause screen, during play |
| All levels after the first subway level | PS2 | 8 presses | Main menu |

The sequel kept the developer console, so a lot of commands carry over, but not all of them. Comparing our two lists, 20 commands appear in both games: coder, god, mortal, getallweapons, getbullettime, gethealth, getpainkillers, showfps and the three jump commands, plus nine weapons, the Beretta, Desert Eagle, both shotguns, Ingram, MP5, Colt Commando, Molotov and sniper rifle. Ten are listed only here, for the first game.
| What changes | Max Payne (2001) | Max Payne 2 (2003) |
|---|---|---|
| Console key | F12, once a level is loaded | ~, the key under Esc |
| Start parameter | -developer | -developer |
| PC commands listed | 30 | 28 |
| Shared commands | 20 | 20 |
| Listed for this game only | getinfiniteammo, c_addhealth(100), noclip, noclip_off, getbaseballbat, getberettadual, getjackhammer, getingramdual, getgrenade, getm79 | showhud, clr, getgraphicsnovelpart1 to 3, getdragunov, getkalashnikov, getstriker |
| PS2 codes | 3, on the pause screen and main menu | 1, during play, then a new game |
| Xbox codes | None confirmed | None confirmed |
The practical lesson: a list that mixes the two games will give you dead commands. getjackhammer and getm79 do nothing in the sequel, and the sequel's story commands are not on this list. The full sequel list is on our Max Payne 2 cheat codes page.

Max Payne came out on PC in July 2001 and on PS2 and Xbox from December 2001, with Rockstar publishing the console versions. The cheats follow the platform, not the year, so check your version before you start typing.
| Version | How cheats work | What you get |
|---|---|---|
| PC (2001) | Developer console: -developer on the shortcut, F12 in a level | 30 commands |
| PlayStation 2 (2001) | Button codes on the pause screen, level unlock on the main menu | 3 codes |
| PS4 (2016 re-release of the PS2 game) | Same game as the PS2 version | The PS2 codes are not confirmed on this release |
| Xbox (2001) | No confirmed cheat menu | None confirmed |
| Xbox One and Series X|S (since 15 November 2021) | Plays the original Xbox version | None confirmed |
On PC the game is still sold, though not in every country: the Max Payne price comparison lists the current offers, and the Max Payne game page has the release history.

If a Max Payne cheat does nothing, check the causes below. On PC the console stays locked unless the game is started with the -developer parameter, and the PlayStation 2 codes are entered on specific screens.
The game was not started with the -developer parameter, so the console stays locked. Right-click your Max Payne shortcut, open Properties and add -developer at the end of the Target field, after the closing quote. Start the game from that shortcut and F12 opens the console.
The console opens only once a level is loaded. Starting the game from the modified shortcut is not enough on its own. Load a level first, then press F12, and the console will open and accept the commands.
The invincibility code and the all weapons code are entered on the pause screen during play. The level unlock is the exception: it is entered on the main menu.
The two versions work differently. On PC the cheats are developer console commands, while the PlayStation 2 version has three button codes instead. A command like coder typed on PS2, or a button sequence pressed on PC, will not do anything.
Lists online often mix the two games. The sequel's story commands and its Dragunov, Kalashnikov and Striker commands are not part of this list. If a command is not in the cards above, check the comparison table before assuming you mistyped it.
Some commands that circulate online could not be confirmed and are not listed here. Use only the commands shown on this page.
coder and god both leave invincibility running until you switch it off. Open the console again and type mortal to get your normal health bar back.
No Xbox cheat could be confirmed. Two different cheat menu sequences for that version contradict each other, so they are not listed. If you are playing on Xbox, there is no confirmed code to try.
Type god at the start of a chapter and play it for the graphic novel panels and the dialogue rather than the fight. Every chapter, in order, is on our Max Payne story page.
getinfiniteammo and getbullettime together turn every room into a slow motion set piece: dive, empty the clip, top up the meter, dive again. Add god if you want to try the riskiest dives without reloading.
getallweapons in the first chapters lets you see what each gun does long before the story hands it to you. Type mortal afterwards if you only used coder for the guns and want the danger back.
The rest of the first game is covered too: the Max Payne game page with its release history and the remake, the characters, from Max himself to Nicole Horne, and the full story, chapter by chapter. For the sequel, see the Max Payne 2 game page and its cheat codes.