Making inverter with MOSFETs

380volt AC is lethal. You shouldn't even ask building the hardware for that on a forum.
This needs proper one-on-one teaching by someone with experience.
What's wrong with the schooling system.
I think all we should do here is guide you with the software.
Leo..