The vehicles sank into the water and how to coding to make it back into the Depot?,pls help me guys,im new

I have no ideas with this,pls help me,thks for all guys :face_holding_back_tears:

Well, you need to detect if the vehicle is in the water first - there’s no specific native for this as far as I saw, so you’ll need to implement a shapetest to check for it - best have it triggered by the vehicle losing health or something, shapetests are pretty “expensive” performance-wise and should be used only when really needed; next, once the vehicle has been detected in the water, remove it and register it to a depot via whatever garage/impound script you’re using.

1 Like

Might work

Edit: Or even better

1 Like

I guess I’m not good at searching for natives lol


Ok thks u bro