i spent days on these, then i have done this. you only need ox_lib and one more lib written by me (added in the link). I have test both on qbcore and all are working fine without any problem
previews:
download:
previews: