Hello everyone, do you know why vehicles keep despawning ? I thought of blocking mysql who can cause some sort of de-sync but really I have no idea. Here is my code to spawn a vehicle :
local vehicle = CreateVehicle(vehicleModel, coords.x, coords.y, coords.z, 90.0, true, true)
SetVehicleHasBeenOwnedByPlayer(vehicle, true)
SetEntityAsMissionEntity(vehicle, true, true)
local id = NetworkGetNetworkIdFromEntity(vehicle)
SetNetworkIdCanMigrate(id, true)
Is anyone still having his issue because we’ve done everything we can to isolate the issue. We started fresh with essential 2.0 freeroam 1.3 ply_garages ply_prefeture and they still despawn
Player buys a car, drives it up the street to register and after that they drive down the road and poof gone…