Assigning Entity as mission entity doesn't provide persistence

  1. Client (production/canary) and FXServer version: Canary, 4394
  2. What you expected to happen: Persistence of entity on server
  3. What actually happens: Entity just destroying after owner disconnecting
  4. Category of bug (eg. client, server, weapons, peds, native): server
  5. Reproducible steps, preferably with example script(s):
  • Put on your ped in vehicle from traffic
  • Force your script to assign this vehicle as mission entity
  • Disconnect from server
  • Reconnect and discover that your vehicle disappeared
int vehHandle = GetVehiclePedIsIn(PlayerPedId(), false);
int vehNetId = VehToNet(vehHandle);

SetEntityAsMissionEntity(vehHandle, true, true);
NetworkSetEntityVisibleToNetwork(vehHandle, true);

SetNetworkIdCanMigrate(vehNetId, true);
SetNetworkIdExistsOnAllMachines(vehNetId, true);

Would be great to see server-side native for controlling persistence of client-owned entities.

1 Like

Are you even using onesync?

Sure.

Why do you want clients to be able to mark entities as ‘persistent, even when the client is gone’?