[HELP] trailers
#1

Hello how can I make to respawn ony free trailers if you know what I mean. Thanks
Reply
#2

You can use this function:
https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle
in your respawn command.
Reply
#3

how the code should look
Reply
#4

You can always check the Wiki for the examples.
I will post a code when I will be on my PC.
Reply
#5

anyone? Thanks
Reply
#6

Check if it's attached, if not:
https://sampwiki.blast.hk/wiki/SetVehicleToRespawn

Simple if-statement and that ^ inside the brackets. If you want this for a /respawn command it would be enough. If you want to make them respawn every x second, make two timers, one timer checking each second or less, the other being inside the if-statement if the trailer is NOT attached.

No I won't make the code for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)