Potty training he’ll plZ

My son is almslt 3 and still not trained😔we’ve tried 4 round and now are back in pull ups.

I know he knows what hesdoing but he chooses to pee to get attention and get a ride out of me when he pees on the carpet or couch 😩😩😩 his baby brother has been here 6 month.

How can I get him to want to be pottytrsibed ??;