NPC Cars get bugged and cant be removed

Hey in my server NPC Cars get bugged sometimes, you cannot sit inside them, you cannot kill the bot driving it (as if its invincible), it cannot be removed via deletevehicle, you cant towtruck it away, it just stays there. and even if you push it away with a phantom wedge or something it just teleports back into place as if stuck there

yesterday I found out that if All the players leave the area and come back it will be gone. but how can I prevent / make a removing script for this so that I dont force everyone to leave the area when an area gets bugged.

they way in which i delt with this was i found the net owner of the entity and triggered them to delete the entity and then triggered all other clients to delete the entitity then the vehicle goes poof and disappears as expected.

thank you, is there a native for calling the netowner of the entity?

^^ this should point you in the right direction