2006 ford f150 with a 5.4l 3v triton misfires on both 5 and 7?

Si it started running rough at idle won't misfire while revving. Codes
p0022
p0171
p0300
p0305
p0307

looking for any help spark plugs were done to try n fix the issue to no avail

You may have sensor issues, but if it's due for a 'tune up', I would start there.

Check/clean/replace as needed:

Vacuum leaks
Spark plugs
Coils
Ignition wires
Fuel filter
Air filter
Clean throttle body
PCV

* Do these last. These can be difficult to do on some vehicles.
Test fuel pressure
Clean fuel injectors
Clean EGR valve/system

My money is on COP coils