Importing custom rigs made in blender never seems to work

I want to import custom rigs into studio. But no matter what I do or change the bones are always how it is in the left half of the screenshot(the right half is in blender). I know it is possible because I see games with custom rigs but I cant find any documentation on this issue.


my export options are -

image