Raising the contact sliders for under the basket and driving, will get you more free throws, along with needing to crank the foul sliders up.
As for getting a realistic variety of fouls, to where you are seeing fouls on 3pt attempts, charging, blocking, over the back, or loose ball fouls, well thats broken, and they either dont know how to fix it, or they just refuse to fix it, because the casual online players, dont want a realistic NBA simulation.
So if your wanting to see a realistic variety of fouls, and total team fouls per game averages in ML,or MyGM, your not going to get that.
But raising contact sliders for driving and inside, you will see more free throws and fouls.
Now if you want just want the CPU to get to the line more, and not you, then you will want to raise the user drive and inside contact, if I remember right, to get the CPU to get to the line more often.
Just look at where those sliders are set for user and CPU on rookie and pro settings. I forget which one is lower that the other, but that will tell you whether it effects the user or the CPU.
I play with them equal, but I think on lower settings those sliders, have the CPU lower on inside contact and drive contact, which means, they dont draw contact enough to draw fouls against the user.
It may be the opposite, of what Im saying, but if you look on where those slider are set for user and CPU on rookie and pro, you will figure out, which one effects the user and which one effects the CPU in drawing fouls.
Hopefully I explained it well enough, because it is confusing, I didnt realize it was the way it is, until NBA2k19, and I have been playing NBA2k every since the very 1st one they made,lol. But I have always just had those equal between me and the CPU, so I never noticed it was opposite of what I thought till this yr.