My vehicle wiping system wipes the trailers to my advanced trucker job, what can I do to prevent this? Any help would be much appreciated
If your vehicle wipe system is server-side (as it should), use the GetVehicleType - FiveM Natives @ Cfx.re Docs check and see if the vehicle is a trailer. If it is, ignore it, I guess.
Alternatively, you should not delete vehicles just because they are not being driven. You should create a script that checks if:
- The entity is marked as not needed anymore
- The entity is not being loaded by any player
thank you, yes this is my car wipe config… pretty simple. These are the trailer types for the trucking job also.
The config won’t help you here. You need to modify the resource itself
Oh ok. Sorry I’m new to this, still learning.