Distance Issue [QBCore]

Hmm, well I don’t know what made it suddenly not work, but you probably need to just fully migrate to onesync to fix it in the long run. OneSync also allows for better server-sided synchronization (state bags, creating objects on the server side) etc. So I would say it’s a worthwhile investment.

FiveM themselves also does not recommend using Legacy as stated here.
"Legacy: Compatibility mode for scripts that expect all players to exist on each client. Not recommended due to performance issues and graphical glitches."

There are also a bunch of onesync resources out there, here is one for police blips that you can either use instead of your current one or just see how they did it and modify yours.

Here is also a “How-To” on how to adapt your scripts to onesync.

And as far as I remember, the slot limit for legacy was 30/32?

Regardless I hope this gave you some more information.