The red lock tab needs to slide rearward till it clicks. Then inside that clip is a button. Push down on that "button" and that will release the plug.
To change the headlight u gotta pull the grille which is easy. Black button clips on top and pull the grille from the bottom to release the clips, and I just twist and remove the amber lights.
Then u need I think a t15 torx for the chrome headlight ring. Take those 4 out and out comes the light assy.
Install ur truck lites, plug in wiring and rinse and repeat on other side.