First,if your phone security patch is A.30 and up please downgrade your phone (A.17) specifically.
then install mtk-su from
https://github.com/JunioJsv/mtk-easy-su
in magisk click modules and install ADB & Fastboot for Android NDK by osmosis
(since oppo a5s have no fastboot and you have to install it manually)
and click reboot.
then on your pc download ADB & Fastboot in
https://androidmtk.com/download-minimal-adb-and-fastboot-tool
in terminal enter this:
adb reboot bootloader
fastboot flashing unlock
fastboot reboot
to check if your bootloader is already unlocked enter this:
fastboot getvar all
and done!