Help me here about rooting

Ok. So i bought a Xiaomi mi 5x from avechi. It’s running on miui 8.5 and i wanted to root it because i had been used to some root-dependant apps and I’m now unable to operate on this stock bullshit…
Now i had been using a device on android 5.1 which rooting just required king root app. I understand it’s different here… I need some help and guidelines… Also recommend if there are custom roms i can install… @Deorro i have been seing ur posts it seems u are a guru here…
And also one qstn will i still be able to update system updates on miui the normal way?

Google xda forums

https://forum.xda-developers.com/mi-5x/how-to/guide-root-twrp-firmware-xiaomi-mi-5x-t3655725
https://forum.xda-developers.com/mi-5x/development/twrp-mi-5x-tiffany-t3655722
https://forum.xda-developers.com/mi-5x/development/twrp-3-2-1-0-oreo-support-t3760038

you have to unlock bootloader, flash Twrp then flash Magisk using TWRP

Dot Os the best custom rom, and it is now available for Xiaomi…

If the bootloader is not unlocked, apply to unlock [FONT=trebuchet ms]here. [/FONT][FONT=arial]I had to wait for about two weeks before I got the nod to unlock a Redmi 5. The application will show you the number of hours the wait will take. After that, the links shared by @Deorro hapo juu should help you root the 5X (why 5X and not, say, Redmi Note 5 or Redmi S2?). If it weren’t for the said root-specific apps, I’d still recommend you give the latest MIUI 10 (beta) a try. I’m kinda finding it cool with lots of features that I have yet to exhaust over the few weeks I’ve had it. Shida ni 16GB of storage is bure kabisa![/FONT]