Issue with Vehicles "Freezing" on Spawn and Getting Stuck on Server

Hello everyone,

I’m currently facing a frustrating issue with vehicles on my FiveM server, and I can’t seem to pinpoint the cause. Here’s the situation:

When I spawn a vehicle (whether it’s a vanilla or add-on vehicle), it often appears stuck in place. The engine is running, and the wheels can turn, but the vehicle won’t move forward or backward. Sometimes, the vehicles also appear slightly sunken into the ground, even though I’ve tried stabilizing them with commands like SetVehicleOnGroundProperly.

Here are some steps I’ve already tried to resolve this:

  1. Vehicle Control Scripts: I disabled certain garage and locking scripts, but the issue persists. Notably, I’m using scripts like lunar_garage, wasabi_carlock, and locationvoiture.
  2. Handling.meta Settings: I’ve checked global suspension values, but that didn’t seem to solve the problem.
  3. Vehicle Synchronization and Control: I added commands to force synchronization (NetworkRequestControlOfEntity) and stabilize vehicles, but with no lasting success.

Setup Details:

  • I’m running several ESX scripts, as well as external scripts like PolyZone, RageUI, and interaction menus (wasabi_carlock, locationvoiture, etc.).
  • The issue affects all vehicles, both vanilla and added.
  • I’ve also tried disabling anti-cheat systems to see if that would help, but it made no difference.

Questions:

  1. Has anyone encountered this kind of issue with vehicles getting stuck on spawn? Are there specific stabilization scripts or fixes that work for this?
  2. Could a handling.meta setting or a synchronization-related script be globally affecting all vehicles?
  3. Any advice on diagnosing exactly which scripts might be causing this problem?

Thank you in advance for any help or suggestions!

I’ve personally never seen this issue however some of my customers have encountered these problems with vehicles that have been spawned by my AdvancedParking resource. Spawning is handled server side using CreateVehicleServerSetter and then a call to SetEntityCoords and SetEntityRotation. However these problems don’t seem to occur on the initial spawn but rather “later” when players have been leaving and entering onesync range.

Though that’s really the only input I can give. Basically everyone I talked to has since upgraded their server (artifacts) version and the problems are gone or happen much less often than before.

I have not managed to reproduce the issue to write a conclusive report on it. Maybe we can find some other similarities. How are you spawning your vehicles?

This issue came when i updated my servers artifact to the latest and i use your resource.

Kill. Everything.

Stop every resource except for vMenu or whatever you’re using to spawn in cars.

Then spawn in cars.

Enable half your resources.

Try again

IF it works, enable half of the remaining half

Try again

If it doesn’t work disable the last half and enable the other half of your resources instead.

Handling will never control how a vehicle is spawned in, but rather how the vehicle handles. But if you disable everything, you’ll soon figure out the source of the issue…