Posts: 25
Threads: 10
Joined: Jan 2009
Reputation:
0
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.
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
AddStaticVehicleEx contains a respawn time. I'm unsure if it will work with trailers though, worth a try.
Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
The timer works, so use AddStaticTimerEx.
Posts: 25
Threads: 10
Joined: Jan 2009
Reputation:
0
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.