You first need to have TWRP installed.
To do this read my instructions
1. go into fastboot, put your TWRP.img and vbmeta.img into c drive not under any folder
fastboot --disable-verity --disable-verification flash vbmeta C:\vbmeta.img
fastboot flash recovery C:\TWRP.img
TWRP Unofficial for Redmi Note 9/Redmi 10X 4G This build only supports Chinese and English. This is one of wszx150's TWRP builds. And that's it,enjoy ;) This is an unofficial build and we cannot guarantee that this build can be used normally on...
first download this
The ultimate script that provides firmware packages for Xiaomi devices.
then extract it and find the vbmeta.img under the “images” folder