runs good when mash gas pedal it don't go over 2000 rpm
2004 Nissan Maxima v6 cranks runs good when mash gas pedal it don't go over 2000 rpm change throttle control actuator replace spark plugs coils change fuel pump what can be from taking the gas
Get the OBDII port scanned for any codes. If there are any it may give an indication of what the problem is.
If you are in the USA apparently AutoZone will do this for free
Here's a list of what the codes mean. There are 7 pages of codes, click on "next" to go to the next page etc.