SA-MP Forums Archive
Respawning trailers - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Respawning trailers (/showthread.php?tid=163549)



Respawning trailers - matejdro - 27.07.2010

Is there any way to make auto-respawn trailers just like cars?

So if trailer is not connected to any vehicle for X seconds, it will respawn.


Re: Respawning trailers - Conroy - 27.07.2010

AddStaticVehicleEx contains a respawn time. I'm unsure if it will work with trailers though, worth a try.


Re: Respawning trailers - GaGlets(R) - 28.07.2010

The timer works, so use AddStaticTimerEx.


Re: Respawning trailers - matejdro - 28.07.2010

Btw what is the difference between AddStaticVehicleEx and CreateVehicle?

Timer won't work with trailers and they are not worth making whole custom respawn system. I am looking for simple solution already integrated into SAMP, if there is any.

EDIT: triggering SetVehicleToRespawn manually works on the trailers, but auto timer won't.