You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue in FiveM related to the Entity Owner and the deletion of entities. Even though I clearly remove vehicles on the server-side and the DoesEntityExist function reports that they no longer exist, these vehicles persist and do not get deleted. The vehicles are spawned in a different routing bucket (where the entity lockdown is set to "inactive").
Server-Side Script
Here is my server-side script in TypeScript, which sets the routing bucket and removes previous vehicles:
When I delete vehicles on the server-side, they should be removed entirely, and there should be no old vehicles persisting when new vehicles are spawned in a different routing bucket.
Actual Behavior
Old vehicles persist and do not get deleted even when the server-side logic indicates that they have been removed and DoesEntityExist reports that they no longer exist.
Problem
I'm facing an issue in FiveM related to the Entity Owner and the deletion of entities. Even though I clearly remove vehicles on the server-side and the
DoesEntityExistfunction reports that they no longer exist, these vehicles persist and do not get deleted. The vehicles are spawned in a different routing bucket (where the entity lockdown is set to "inactive").Server-Side Script
Here is my server-side script in TypeScript, which sets the routing bucket and removes previous vehicles:
Client-Side Code
This is my client-side code where I create the vehicle:
Issue Video
2023-10-29.02-53-12.mp4
2023-10-29.02-54-15.mp4
2023-10-29.11-22-28.mp4
Unbenannt.mp4
Expected Behavior
When I delete vehicles on the server-side, they should be removed entirely, and there should be no old vehicles persisting when new vehicles are spawned in a different routing bucket.
Actual Behavior
Old vehicles persist and do not get deleted even when the server-side logic indicates that they have been removed and
DoesEntityExistreports that they no longer exist.